Raymond Jette a écrit :
> 
> Good morning,
> I get messages from some senders that i would like to block. Would the
> following solution work to block mail from senders?
> 
> /etc/postfix/main.cf
> 
> smtpd_sender_restrictions =
> ...
>    check_sender_access hash:/etc/postfix/sender_access
>    permit
> 
> /etc/postfix/sender_access
>   [EMAIL PROTECTED]     reject
> 

yes.

> 
> Would this work the correct way? Is there a better way to do it?

Depends on why you want to block these. It is generally better to block
clients IPs (or at least hostnames, but this is subject to DNS
resolution). A sender BL/WL requires more maintenance (the sender can
forge whatever address he wants. so if you block one, he'll use another
one. The sender acn't forge his IP).

Reply via email to