Postings by Stefan Bauer

custom reject message for reject_sender_login_mismatch



smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch
smtpd_sender_login_maps = hash:/etc/postfix/login_maps

rejects user with invalid mail from domain with

< ... at b dot c>: Sender address rejected: not owned by user abc; from=< ... at b dot c>
to=< ... at remote dot tld> proto=ESMTP helo=<[]>

How can i customize this reject message?

Thank you.


check rcpt to, from and destination in one session - nested smtpd_restriction_classes?


postfix is configured as relay server. Other systems relay with postfix.
Here i want to allow for a specific group of hosts, when they use a
specific mail from address only a few specific destination domains. Other
hosts should not be bothered.