Mauro Sanna wrote:
Almost. You should probably still have at least one domain listed, that is used for the right-hand-side of aliases where the target should be a local delivery. One approach is to use:main.cf: mydestination = local.invalidsmtpd_sender_restrictions = check_sender_access regexp:/etc/postfix/reject_invalidcheck_recipient_access regexp:/etc/postfix/reject_invalidI put all checks in smtpd_recipient_restrictions.
put them under smtpd_sender_restrictions, as suggested. for safety, only use smtpd_recipient_restrictions for spam related checks, unless you know what you are doing.
Is it the same?
Not really. an OK in smtpd_sender_restrictions does not skip smtpd_recipient_restrictions. In particular, it doesn't make you an open relay.
