Redirecting after spam/virus scan

Julian Field MailScanner at ecs.soton.ac.uk
Fri Aug 13 12:16:32 IST 2010



On 12/08/2010 20:31, Thom Jones wrote:
> Running MailScanner with sendmail on a CentOS 4 box.  I currently have an
> alias file set up with sendmail that works great in redirecting email either
> to external recipients or as an email group (webmaster goes to multiple people
> for example).
> The problem with this setup, obviously, is that all mail gets redirected, spam
> and all.
> I've been trying to find a way to use a ruleset to do this.  And I am
> 99.99995% sure that it can be done via that method - I just can't wrap my head
> around it enough to figure it out. Nor could I find a good clue in the mailing
> list archives.
>
> In MailScanner.conf, I have a ruleset specified for:
> Non Spam Actions = %rules-dir%/nospam.action.rules
>
> And in the nospam.action.rules file, I have a entries similar to:
> To:     me at d1.com              forward me at d2.com header "X-Spam-Status: No"
> To:     default                       deliver
>
> I would think this should function to redirect email to me and simply deliver
> as normal to everyone else.  But, instead, it seems to take any email to me
> and /dev/null it
> Any ideas or direction?
>    
Not sure why it would do that. Have you tried with other addresses in 
place of "me at d2.com"?
You might also want to add a "not-deliver" onto the long line in that 
ruleset too, or else it will still try to deliver to me at d1.com as well. 
Your "To: default deliver" line should be "FromOrTo: default deliver" as 
well.

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM and twitter.com/MailScanner


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list