| |||||||||||||||||||||||||||||||
|
>Dear postfix-users > >My Postfix server allows relaying by authenticated remote SMTP >clients, because main.cf has: > >smtpd_recipient_restrictions=permit_mynetworks, >permit_sasl_authenticated, reject_unauth_destination >smtpd_sasl_auth_enable=yes >smtpd_sasl_security_options=noanonymous > >This way all of the users (virtual mailbox owners) can set their MUA >to use my system as their outgoing server (if they supply a username >and password). > >What should I do if I would like to restrict this relaying access to >only a few users on the system? The simple way would be to replace "permit_sasl_authenticated" with a check_sender_access map. # main.cf smtpd_recipient_restrictions = permit_mynetworks check_sender_access hash:/etc/postfix/allowed_sasl_senders reject_unauth_destination # allowed_sasl_senders user1 permit_sasl_authenticated user2 permit_sasl_authenticated You may want to also restrict which authenticated users can use which login ID by using smtpd_sender_login_maps and reject_sender_login_mismatch. This would prevent user3 from sending mail claiming to be from user2. This may or may not be needed in your environment. -- Noel Jones
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com