Código:
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/webmail_access
smtpd_restriction_classes = from_webmail_host
from_webmail_host = check_client_access hash:/etc/postfix/webmail_hosts,
check_client_access regexp:/etc/postfix/reject_webmail,
reject
exemplo webmail_access
Código:
foobar.com from_webmail_host
exemplo webmail_hosts
exemplo reject_webmail
Código:
/./ 554 REJECT mail not sent from matching domain
reduziu bastante o numero de spams, pois fiz aquela lista sabiamente. mas esse esquema tende a brechas óbvias