LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2006, 09:00 AM   #1
vanden
LQ Newbie
 
Registered: Dec 2005
Location: Devon, England
Distribution: Redhat 9
Posts: 5

Rep: Reputation: 0
Amavisd multiple spam fowards


Hi all,

I'm not sure if this is possible but I have set up my spam server for a single domain using postfix, amavisd and spamassassin. when a spam mail has been detected it forwards it on the the spam@domain1.com account.

I would like to be able to set this system up for multiple domains but the problem I'm having is that I would like it so if a spam e-mail has come through the spamfilter for someone@domain1.com it forwards the mail to spam@domain1.com but if the spam mail has come through the spam box to someone@domain2.com it will forward the spam mail to spam@domain2.com.

Does this make sense and is it possible. I think i did see somewhere that it is possible in spamassassin but I'm not sure how this will work with amavisd installed.

Can anyone help on this one.

Thanks
 
Old 04-12-2006, 07:52 AM   #2
vanden
LQ Newbie
 
Registered: Dec 2005
Location: Devon, England
Distribution: Redhat 9
Posts: 5

Original Poster
Rep: Reputation: 0
Well no one has got back to me on this one but after a bit more digging around I have found the answer. If anyone else has the same issue here is the code to use;


@spam_quarantine_to_maps = ( # per-recip multiple quarantines
new_RE(
[qr"^(.*)\@domain1\.com$"i => "spam\@domain1.com"],
[qr"^(.*)\@domain2\.com$"i => "spam\@domain2.com"],
[qr"^(.*)\@domain3\.com$"i => "spam\@domain3.com"] ),
$spam_quarantine_to, # the usual default
);


I hope this helps someone else.

And thanks to gary V on sourceforge.net for the answer, he doesn't know it yet but he saved he a lot of time and effort.
(http://sourceforge.net/mailarchive/m...sg_id=12062482)

Cheers

Last edited by vanden; 04-12-2006 at 07:53 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
amavisd unused ?? Wynand1 SUSE / openSUSE 0 09-22-2005 07:50 AM
procmail and spam -- do not send out of office auto replay to spam draix Linux - Software 0 12-30-2004 08:35 AM
amavisd-new does not start Ateo Linux - Networking 1 12-28-2004 02:39 AM
Postfix - amavisd (?) localhost.com joseph_1970 Linux - Software 1 02-13-2004 05:42 PM
What other anti-spam for Linux that can be used, other than Spam assassin? johnportiz Linux - Software 6 01-27-2004 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration