Dag & Dank Wietse,

Can I do perl regex, e.g.

outmail\d\d\d.snc\d.facebook.com        permit

or globbing like

outmail*.snc4*.facebook.com

And secondly, I also get mail I want to leave through where the sender is an 
operation like messagelabs, but I want to accept only certain senders using 
messagelabs, e.g. apg.nl or apg-am.nl. So not so much the client but the from, 
e.g.

@apg.nl permit

how do I do that?

G

On 2 Feb 2013, at 17:48, Wietse Venema wrote:

> Gerben Wierda:
>> smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks  
>> reject_unauth_destination check_policy_service unix:private/policy permit
>> 
> 
> To exclude some site from greylist checks, use an access table
> *after* reject_unauth_destination and before the check_policy_service.
> 
> /etc/postfix/main.cf:
>    smtpd_recipient_restrictions = 
>       ...
>       reject_unauth_destination
>       check_client_access hash:/etc/postfix/client_access
>       check_policy_service unix:private/policy
> 
> /etc/postfix/client_access:
>    amazon.com permit
>    ...
> 
> The reason for having the whitelist after reject_unauth_destination
> is that it is safe to use "permit" without becoming an open relay
> (to avoid the latter problem, Postfix 2.10 recomments using
> smtpd_relay_restrictions for the mail relay policy, and
> smtpd_recipient_restrictions for the spam policy).
> 
>       Wietse

Reply via email to