Discussion:
postfix SASL auth exception
(too old to reply)
b***@gmail.com
2015-09-30 13:08:29 UTC
Permalink
Hi all,

i'm struggling to get this (maybe easy) configuration.

currently i have this in my main.cf

mynetworks = 172.22.0.0/18
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination, permit_mynetworks

SASL authentication works fine for mynetworks.

Now i want a client (172.22.0.100) to be able to send email without authentication. To achieve this i use:

smtpd_sasl_exceptions_networks = 172.22.0.100

When i try to send and email via telnet using the following commands:

EHLO mydomain
MAIL FROM: ***@test.com
RCPT TO: ***@test.com

i get this error

554 5.7.1 <***@test.com>: Relay access denied


do you guys have any suggestion?

Thank you in advance
b***@gmail.com
2015-09-30 15:02:09 UTC
Permalink
Post by b***@gmail.com
Hi all,
i'm struggling to get this (maybe easy) configuration.
currently i have this in my main.cf
mynetworks = 172.22.0.0/18
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination, permit_mynetworks
SASL authentication works fine for mynetworks.
smtpd_sasl_exceptions_networks = 172.22.0.100
EHLO mydomain
i get this error
do you guys have any suggestion?
Thank you in advance
For posterity: i found the solution by reading the documentation

mynetworks = 172.22.0.100

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

these two lines have the effect desired. All hosts can send emails after authentication and host 172.22.0.100 can send email without authentication.
Loading...