Tested and working perfect with these 3 lines:
smtpd_sender_login_maps = mysql:/etc/postfix/smtpd_sender_login_maps.cf
smtpd_sender_restrictions = reject_sender_login_mismatch
smtpd_reject_unlisted_sender = yes

/etc/postfix/smtpd_sender_login_maps.cf:
query = SELECT username FROM mailbox WHERE username='%s' and active='1'

Now I'm reading about SPF.

Thanks a lot!

indio wrote:
Thanks! Now it's clearer. I'll test that + smtpd_reject_unlisted_sender. I'll post my results.

mouss wrote:
indio a écrit :
Hi all!
    With the config lines below, all clients from inside my network MUST
authenticate to deliver a message. But all connections from the Internet
where "mail from" is @mydomain.com can deliver mail to local users
without authenticate. What should I do to force authentication to ALL
us...@mydomain.com?

smtpd_sasl_authenticated_header = yes
broken_sasl_auth_client = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions =
permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination

http://www.postfix.org/postconf.5.html#smtpd_sender_login_maps
http://www.postfix.org/postconf.5.html#reject_sender_login_mismatch


Reply via email to