Tired of seeing your mail queue fill up with bounce messages to non-existant spammer email addresses? By default, if an email comes into your server addressed to an invalid recipient, Exim will accept the message from the delivering agent, and then generate a return email to them explaining that the address is invalid. With this little tweak, you can make exim tell the delivering agent that that address is invalid at the time the message is being delivered, meaning no more spam returns cluttering up your queue! Can I get an Amen!? Read on!
This is curtesy of cyberspirit in the cpanel forums. Original thread is loacted here.
Method 1) 1. Open WHM and click on Exim Configuration Editor
2. Click on the Switch to Advanced Mode button.
3. Scroll down until you see the section on ACL's. You'll see three boxes. In the middle box, locate the section that reads - See Section A:
Method 2) Recommended
1. Login into SSH and su to root
2.pico /etc/exim.conf
Article provided by WebHostGear.com
3.Ctrl + W and type in: accept domains Notice the two spaces. Look for something like this below.
Get professional help with your configuration, script installation or server issue. Learn how we can help you with any server problem and make your server run like new. Professional staff will contact you, after submitting a quote request, by phone or email.
Discuss this article with others in our new hosting forums
Comments / Feedback
Martin
So this only accepts emails for domains based on your server, which is brillant, but what about separate email accounts?
E.g. if asdjlkjdlsajlk@usersdomain.com is sent mail can we auto reject that? Would the above script do that? If so, how would it handle catch-all email addresses, setup by default in cpanel?
calvin
is it work with new version cpanel + exim?
paul
i think this needs some updates
RICK CHRONISTER
my email keep say invalid email when i sign in any on the web thank u
Our site offers free hosting tutorials, cpanel tutorial, web hosting news, shell commands, running a web hosting business, dedicated guides, linux tutorial, apache install, home web server, web server guide, ssh commands, dedicated servers, DNS nameservers, chkrootkit, apf firewall, exim configuration, server compromised, cron backup solution, ftp backup script
So this only accepts emails for domains based on your server, which is brillant, but what about separate email accounts? E.g. if asdjlkjdlsajlk@usersdomain.com is sent mail can we auto reject that? Would the above script do that? If so, how would it handle catch-all email addresses, setup by default in cpanel?