aemaething wrote:
Should I add or remove "reject_sender_login_mismatch"
from "smtpd_sender_restrictions" of postfix main.cf?
With the removed setting every user seems to be allowed to manipulate sender address.
*) You should remove it from Postfix, that's why you need this plugin for per-user restriction.
*) Did you send a test email with different From and SASL username? And what's the log in iRedAPD log file?
*) Did you set allowed senders in plugin "sender_login_mismatch" (file /opt/iredapd/plugins/sender_login_mismatch.py)? For example:
# Allow sender login mismatch for below senders.
ALLOWED_SENDERS = ['sender01@mydomain.com', 'sender02@mydomain.com', 'sender03@mydomain.com', ]