Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spam Assassin - Multiple Domains

Status
Not open for further replies.

NetworkGhost

IS-IT--Management
Apr 12, 2005
1,324
US
Hello,

Anyone using Spam Assassin for multipe domains? Is it possible to set this box up as a Spam filter that filters for multiple domains and forwards to the correct mail server by domain?


 
To accomplish this you need to set-up within each users directory.

.procmailrc
Code:
MAILDIR=/var/mail
ORGMAIL=/var/mail/[i]user[/i]

# Spam level 1.0-5.9: write to mail
:0
* ^X-Spam-Flag: YES
* ^X-Spam-Level: \*\*\*\*\*\* [i]user[/i]

.forward
Code:
"|IFS=' ' && exec /usr/local/bin/procmail || exit 75 #[i]user[/i]"
Adjust paths where necessary

M. Brooks
 
Is that for user or Domain. I want to be able to receive mail for xyz.com and abc.com, filter it, then forward to the appropriate mail servers
 
Not sure 100% about the Spam Assassin side of things but part of the configuration will actually depend on the mailserver. In Sendmail it would be done with something like mailertables. Set up the DNS MX entries to point to your mailserver, and then in the mailertable define esmtp:real.mailserver.forthatdomain for the domains you're receiving mail for.

Hope this helps.

Isaac Orr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top