Restrict Outbound Mail
Hello,
We have a situation here...
One of our clients wants to restrict all outbound emails and let his staffs use their email deliveries only within the specific domain...
What can be done in this regard...please help, As I am new to this forum and don't know how to post a new thread. Please help :-)
--
Best Regards,
Budhaditya Mukherjee
-
Hi, First, in root SSH, run these commands: Create a file to add the domain list which you want to restrict. vi /etc/restrictdomains Add the domains names to which you need to stop the outgoing emails. In WHM > Exim Configuration Editor > Advanced Editor, add the following. You can use the following acl in exim.conf acl_smtp_rcpt = acl_check_rcpt deny condition = ${lookup{$sender_address}nwildlsearch{/etc/restrictdomains} {yes}} domains = !+local_domains acl_check_rcpt: deny message = The $sender_address is prohibited to send mail to the $domain domains = lsearch;/etc/restrictdomains Thanks, 0 -
Hello, The steps on the previous post should help. Let us know if you have any additional questions. Thank you. 0
Please sign in to leave a comment.
Comments
2 comments