Hi,

I am trying to block few / selected users from sending mails outside of
domain where as other users should be allowed to send mails anywhere. I have
followed postfix official documentation of " Restricting what users can send
mail to off-site destinations
<http://www.postfix.org/RESTRICTION_CLASS_README.html>  " but still postfix
is somehow bypassing restriction rules/classes and users are still able to
send mails to outside domain (gmail.com in this case). Can anyone please
help me in setting this up?

This is the snap from my main.cf :

virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf,
mysql:/etc/postfix/mysql_virtual_alias_domain_maps.cf
virtual_gid_maps = static:89
virtual_mailbox_base = /home/virtual_mail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 51200000
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 89
virtual_transport = virtual
virtual_uid_maps = static:89

smtpd_restriction_classes = localonly
localonly = check_recipient_access hash:/etc/postfix/localdomains, reject
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = check_sender_access
hash:/etc/postfix/restricted_senders,permit_mynetworks,permit_sasl_authenticated,check_client_access
mysql:/etc/postfix/mysql_popbsmtp_access_maps.cf,check_client_access
hash:/etc/postfix/relay,reject_unauth_destination
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot


restricted_senders file :
# cat restricted_senders
suraj@mymailsystem.local        localonly

locadomains file:
# cat localdomains
mymailsystem.local      OK

I already have postmapped restricted_senders and localdomains but still
postfix is not applying restriction rules over sender. 
Let me know for required additional details.

Thanks



--
View this message in context: 
http://postfix.1071664.n5.nabble.com/restricting-few-users-from-sending-mails-outside-domain-mymailsystem-com-tp61996.html
Sent from the Postfix Users mailing list archive at Nabble.com.

Reply via email to