This tutorial is applicable to iRedMail-1.0 and later releases. If you're running an iRedMail-0.9.9 or earlier release, please follow this tutorial instead.
/etc/postfix/sender_access.pcre (Linux/OpenBSD) or
/usr/local/etc/postfix/sender_access.pcre (FreeBSD), append the user's email
address which you're going to allow to send email without smtp
authentication. We use email address
firstname.lastname@example.org for example here.
It's ok to use IP address instead like below if you want to allow all emails sent from this IP address:
/^192\.168\.1\.1$/ OK /^192\.168\.2\./ OK /^172\.16\./ OK
Now restart or reload postfix to make it work:
reject_sender_login_mismatch checks forged sender address.
If sender domain is hosted on your server, but email was sent without smtp
auth, it's considered as a forged email, and iRedAPD rejects this email
(with rejection message:
SMTP AUTH is required for users under this sender
To allow sending email without smtp authentication for user
email@example.com, please add parameter
iRedAPD config file
/opt/iredapd/settings.py like below. If this parameter
already exists, please append the user email address in the list.
You can find default value and detailed comment about this parameter
ALLOWED_FORGED_SENDERS = ['firstname.lastname@example.org']
192.168.1.0/24, please add setting in
MYNETWORKS = ['192.168.0.1', '192.168.1.0/24']
Restarting iRedAPD service is required if you updated