This tutorial is available in other languages. Help translate more

Italiano / 简体中文 /

Allow user to send email without smtp authentication


Create a plain text file: /etc/postfix/accepted_unauth_senders, list all users' email addresses which are allowed to send email without smtp authentication. We use user email address for example: OK

It's ok to use IP address instead like below:

For more allowed sender format, please check Postfix manual page: access(5). OK
192.168.2   OK
172.16      OK

Create hash db file with postmap command:

# postmap hash:/etc/postfix/accepted_unauth_senders

Modify Postfix config file /etc/postfix/ to use this text file:

smtpd_sender_restrictions = 
    check_sender_access hash:/etc/postfix/accepted_unauth_senders,

Restart/reload postfix to make it work:

# /etc/init.d/postfix restart


iRedAPD plugin reject_sender_login_mismatch will check forged sender address. If sender domain is hosted on your server, but no smtp auth, it will be considered as a forged email. In this case, iRedAPD will reject this email (with rejection message: Policy rejection not logged in), so we need to bypass either sender email address. If email is sent by an internal network device like printer, fax, we can also its IP address directly.


Restarting iRedAPD service is required if you updated /opt/iredapd/