Three ideas come to mind:
1) announce a different public name than the local machine name.
A) EG: machine name:donttellanyone.theservername.com public (DNS) name: www.theservername.com
B) Then set up virtusertable entry routing root@donttellanyone.theservername.come to your email address.
C) edit /etc/aliases so that "root: | /dev/null "
2) start using greylisting! Milter-greylist works well w/sendmail for light- medium load machines. =)
3) Turn off inbound email on port 25, if you can.
On Wednesday 15 April 2009 18:57:57 Neil Aggarwal wrote:
Hello:
On a CentOS5 machine I set up for a client, in /etc/aliases, I set root's mail to forward to my email address so I can get notices from cron, etc.
Unfortunately, I am now getting a lot of spam which is sent to root@theservername.com
How can I tell sendmail to not accept external email to root?
I searched the Internet and found some horribly convoluted solutions. There has to be a simple way to do this, like putting a line in sendmail.mc or something.
Anyone know a good solution?
Thanks Neil
-- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.