LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Thread Tools
Old 11-11-2008, 10:56 PM   #1
Shinigami101
LQ Newbie
 
Registered: Nov 2008
Posts: 7
Thanked: 0
Sendmail, spam redirection to different account


[Log in to get rid of this advertisement]
This is more then likely a simple thing to do but hey i haven't found anything so i thought you guys might be able to help.

What i am trying to do is redirect anything that has been marked as spam (this is marked by an ironport, it adds "X-IronPort-SPAM: = (SPAM)" to the extended email header) from the user it was being sent to, to another account such as "fwdspam@example.com". I am wanting to do this by getting sendmail to look at the subject of the email and pass it onto that address(being "fwdspam@example.com").

Example;

Email sent to "foo.bar@example.com" -> IronPort

IronPort marks as spam adding "X-IronPort-SPAM: = (SPAM)" to extended header -> Sendmail

Sendmail sees "X-IronPort-SPAM: = (SPAM)" and redirects email to "fwdspam@example.com"

The reason why I am trying to do it in sendmail and not the IronPort is because i do not have control over the IronPort so it is the easiest way(i hope... if it is even possible).

Many Thanks for any ideas or help

I shall also keep on looking.
Shinigami101 is offline     Reply With Quote
Old 11-13-2008, 05:36 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 16,668
Blog Entries: 30
Thanked: 274
IronPort > MTA > LDA (Procmail), in which a procmail recipe can act on '* ? (formail -x X-IronPort-SPAM:' or '* ^X-IronPort-SPAM:.*'? That's to say, I don't know how to do it the Milter way :-]
unSpawn is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Weird LQ DNS / Redirection -> Spam ?? WTF? tredegar LQ Suggestions & Feedback 26 07-15-2007 01:02 PM
how to find out what account sent spam? izghitu Linux - Newbie 3 01-13-2006 05:53 PM


All times are GMT -5. The time now is 10:06 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration