Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Exim - Restrict relay by domain

Discussion in 'General Discussion' started by sircodealot, Nov 21, 2006.

  1. sircodealot

    sircodealot Registered

    Feb 13, 2005
    Likes Received:
    Trophy Points:
    We use a centralized mail system in our setup, so the servers with Cpanel are really only used for outgoing e-mail generated by PHP, CGI, or other such scripts. What we are basically looking at doing is restricting the domains that are allowed to send out of the server to the ones listed in /etc/localdomains, or the hostname. For example, when someone tries to send out an e-mail using a PHP script, and they set the From: header to, it will get rejected, because the domain does not exist in /etc/localdomains. I've tried messing with some ACL and transport changes that haven't worked as I expected them to work (I'm not too experienced with the exim configuration). I've also looked at using antivirus.exim, but it doesn't look like it accepts a file list of domains. Can someone please point me in the right direction?


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice