HOLD mail for certain recipients and do not process by MS

Julian Field MailScanner at ecs.soton.ac.uk
Thu May 15 15:11:58 IST 2008



Ronny T. Lampert wrote:
> Hi,
>
> 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?
Create a SA rule to catch them and use SpamAssassin Rule Actions to 
store them in your archive. That's one way of doing it, I'm sure there 
are others.
>
> 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
>
> /etc/MailScanner/rules/archive.conf:
>
> To:    holdme at domain.com    /var/spool/MailScanner/LOCKED
>
>
>
> Thanks,
> Ronny

Jules

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

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key: http://www.jules.fm/julesfm.asc


-- 
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