This error is caused by restriction rule reject_sender_login_mismatch
in
Postfix parameter smtpd_recipient_restrictions
, in file /etc/postfix/main.cf
:
smtpd_recipient_restrictions =
...
reject_sender_login_mismatch,
...
It will reject the request when $smtpd_sender_login_maps specifies an owner for the MAIL FROM address, but the client is not (SASL) logged in as that MAIL FROM address owner; or when the client is (SASL) logged in, but the client login name doesn't own the MAIL FROM address according to $smtpd_sender_login_maps. Check manual page of Postfix configuration file for more details.
Removing reject_sender_login_mismatch
and restarting Postfix service fixes
this issue.
If you want to allow some users to send as other users, or allow all users to send as their alias addresses, or allow member of mail list/alias to send as mail list/alias, you should try iRedAPD plugin
reject_sender_login_mismatch
instead (requires iRedAPD-1.4.4 or later releases).Read comments in file
/opt/iredapd/plugins/reject_sender_login_mismatch.py
, then enable it in iRedAPD config file/opt/iredapd/settings.py
(plugins =
), restart iRedAPD service. That's all.
This error means Amavisd service is not running, please try to start it first.
# service amavisd restart
# service amavis restart
After restarted amavisd service, please check its log file to make sure it's running.
Notes:
Document published under a CC BY-ND 3.0 license. If you found something wrong, please do contact us to fix it.