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.

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

Instead of

#Add the list of IP addresses which cannot send emails outside local_only local_only

change it to

#/etc/postfix/restricted_clients local_only 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 :



Popular posts from this blog

Setup mail server with ldap authentication in docker

How to allow non root user to execute hping command ?

Boot Acronis from PXE