postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: SMTPD Policy to Restrict Senders to a known set o

SMTPD Policy to Restrict Senders to a known set of IPs

From: Kevin Coveney <kevin_at_nospam>
Date: Sat Oct 30 2010 - 16:43:15 GMT
To: <>

I have been asked by my client to setup postfix to enforce a policy that
will restrict certain list of domains to a predetermined list of IPs for the
domain. However if the sender domain is not on the list then we would simply
skip this check.
I was going to manage the sender IP list using separate CIDR: files for each
domain and reject if not in the list.
However, what is the best way to tie the domain to the list?
I was thinking about using smtpd_restriction_classes but I'm not sure if
this is the best or how to best put it all together.
Your advice will be much appreciated
Kevin Coveney