On 1/19/2012 3:24 PM, Nikolaos Milas wrote:
> On 19/1/2012 7:06 μμ, Noel Jones wrote:
> 
>> or define the restriction in main.cf and refer to it
>> ...
>> (or make up your own macro names)
> 
> Thank you all for your valuable suggestions.
> 
> These "macro names" seem really interesting. Can we use them in
> main.cf too (to define sets of restrictions) and how?
> 
> Thanks again,
> Nick

You can use them in main.cf, but I think they're more interesting in
master.cf.

An example to eliminate repetition:
# main.cf
mymap = hash:/etc/postfix/maps
smtpd_recipient_restrictions =
  permit_mynetworks
  reject_unauth_destination
  check_client_access $mymap/client_whitelist
  check_client_access $mymap/client_access
  check_sender_access $mymap/sender_access
  ...

documentation is at the top here:
http://www.postfix.org/postconf.5.html


If you're looking for a feature to do per-user restrictions, read up
on restriction classes
http://www.postfix.org/RESTRICTION_CLASS_README.html



  -- Noel Jones

Reply via email to