HOLD mail for certain recipients and do not process by MS
mrebsamen at unimatrix0.ch
Wed May 14 21:58:26 IST 2008
I've done something similar..
Since I use a Microsoft Exchange in my network, i wanted to use a Linux system
with MailScanner as a Relay.
I try to make it short. My users have a public folder in theyr outlook where
they can place not detected Spam Mails. My Linux Relay gets the mails from
there via IMAP with fetchmail and delivers them to the Spamassassin learner.
Since fetchmail delivers to the local MTA i hade to figure out a method to
not Scan those mails because the header would be changed and so on...
What i did is i addet an additional Rule to the "header_checks" file:
/for <user at localhost>/ REDIRECT user at localhost
this line stays befor the default MailScanner Rule.
Maybe this helps you ?
Am Mittwoch, 14. Mai 2008 13:22:12 schrieb Ronny T. Lampert:
> I'm in need of a very dirty hack (don't ask).
> I'm using postfix + MailScanner with the HOLD method for all incoming mail.
> Now I need to HOLD some recipients indefinately and NOT process them by
> MS at all. The queue files must sit around and nothing should be
> done to them.
> The 2 alternatives I see:
> 1) Can postfix be instructed to have another queue created (with
> behaviour as the hold queue, but with name "locked") where I can direct
> recipients to in their original queue file form?
> I was thinking of setting up a seperate postfix method (in master.cf)
> that will take care of those, but I'm a bit lost if that's even possible
> despite of all the special docs I have.
> 2) Can MailScanner be instructed to MOVE certain recipients as whole
> queue files to some directory?
> I was thinking of the Archive Mail functionality, but a quick test with
> a rule didn't succeed.
> $> mkdir /var/spool/MailScanner/LOCKED && chown postfix:postfix $_
> In MailScanner.conf:
> Archive Mail = %rules-dir%/archive.conf
> To: holdme at domain.com /var/spool/MailScanner/LOCKED
More information about the MailScanner