| |||||||||||||||||||||||||||||||
|
I will try it Tonio Le mercredi 30 mai 2007 à 19:59 +0200, mouss a écrit : > tonio wrote: > > Hello, > > i'm trying to set a restriction on senders in my network: > > they have to use exclusively our domains in their mailfrom. > > > > for this purpose i've set this restriction, found on Ralf > > Hildebrandt's website: > > > > main.cf : > > > > mynetworks = 127.0.0.0/8 > > > > smtpd_restriction_classes = > > has_our_domain_as_sender > > > > has_our_domain_as_sender = > > check_sender_access hash:/etc/postfix/our_domain_as_sender reject > > > > smtpd_recipient_restrictions = > > check_client_access hash:/etc/postfix/internal_networks > > check_sender_access hash:/etc/postfix/not_our_domain_as_sender > > permit_sasl_authenticated > > permit_mynetworks > > reject_unauth_destination > > .... > > ... other spam checks ... > > permit > > > > > > > > /etc/postfix/internal_networks : > > > > 192.168.1 has_our_domain_as_sender > > > > > > /etc/postfix/our_domain_as_sender : > > domaine.com OK > > <> OK > > > > > > /etc/postfix/not_our_domain_as_sender : > > > > domaine.com 554 You are not from here > > > > > > > > It's working for internal clients, but i've a problem with external > > users authentified by SASL: they CANT send a message with our domain > > in the mailfrom. > > > > so i've tried to set something like this: > > > > smtpd_recipient_restrictions = > > check_client_access hash:/etc/postfix/internal_networks, > > permit_sasl_authenticated, > > check_sender_access hash:/etc/postfix/not_our_domain_as_sender, > > permit_mynetworks > > reject_unauth_destination > > .... > > ... other spam checks ... > > permit > > > > > > Now SASL users can send a message with our domain in the mailfrom, but > > they can also send one with any domain into ! (so the restriction is > > bypassed) > > > > I understand why but i cant found a way to solve this problem. > > > > How can i check the mailfrom from internal AND sasl clients ? > > > http://www.postfix.org/postconf.5.html#reject_authenticated_sender_login_mismatc h >
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com