Skip to main content

Restrict Outbound Mail

Comments

2 comments

  • NOC_Serverpoint
    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
  • cPanelMichael
    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.