Monday, February 22, 2010

Postfix restricting users to send mails to certain domains or their own domain

Follow the steps suggested in postfix wiki will be able to restrict a list of users for sending emails to limited domains.
http://postfix.wiki.xs4all.nl/index.php?title=Client_sender_recipient_restrictions

To add on on the wiki , we can replace the ip address with the user email address. For example :

Instead of

#/etc/postfix/restricted_clients
#Add the list of IP addresses which cannot send emails outside
192.168.0.11 local_only
192.168.0.12 local_only

change it to

#/etc/postfix/restricted_clients
user@yourdomain.com local_only
user2@yourdomain.com local_only

The rest is the same , just try to restrict by user account instead of ip address.

Zimbra is using postfix as it smtp daemon , so these two guides might help us to have better understanding :

http://wiki.zimbra.com/index.php?title=Restrict_users_to_certain_domain
http://wiki.zimbra.com/index.php?title=Restrict_sending_to_certain_domains



---

No comments:

Post a Comment

Feel free to leave your question or comment here, we will reply you as soon as possible.