Hello.
I am testing a postfix configuration with telnet and mailx.
Current test is : “Postfix on hosts without a real Internet hostname”
If I send a mail locally between linux user with a bad password, postfix logs show that the authentication failed but the mail is delivered.
Until I add :
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
to master.cf :
smtp inet n - n - - smtpd
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
Here part of my main.cf
smtpd_helo_required = yes
#
smtpd_sasl_auth_enable = yes
#
smtpd_sasl_security_options = noanonymous
#
smtpd_sasl_local_domain =
#
smtp_sasl_auth_enable = no
#
broken_sasl_auth_clients = yes
#
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks,
reject_unknown_recipient_domain,
reject_unauth_destination
#
smtp_sender_dependent_authentication = yes
changing
smtp_sasl_auth_enable = no
to
smtp_sasl_auth_enable = yes
make no difference.
Any help is welcome.