Raymond Jette пишет:
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
This way you're blocking sending a mail, which contain
'[EMAIL PROTECTED]' as sender address (envelope from), through
your server. But, you're not blocking anyone.
There are two ways to block someone:
- as is has been alredy said, block an IP address of the machine (so,
nobody can send mail from that machine)
- use SASL: allow sending only for authenticated users, and restrict
sending addresses with reject_sender_login_mismatch and
smtpd_sender_login_maps.
Would this work the correct way? Is there a better way to do it?
Thanks.