Deliver SPAM too IMAP folder

Julian Field MailScanner at ecs.soton.ac.uk
Mon Feb 5 19:24:19 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Alex Broens wrote:
> On 2/5/2007 2:39 PM, uxbod wrote:
>> Hi All,
>>
>> How easy would it be add additional code to MailScanner to be able to
>> deliver email direct to users IMAP folders, instead of injecting back
>> into the MTA queue?
>>
>> Cheers,
>
> Julian started writing a custom function to do this some time ago.
> It never really worked and required a MS hack so I dropped its use.
>
> If he reads this he might pickup where he stopped and make it usable
I've got no recollection of that at all, which doesn't surprise me.
What did it do and how far did I get?

I like someone's suggestion of using default Sieve scripts. One of the 
guys who works for me is currently writing a Sieve script generator and 
installer in PHP, as apparently the protocol used to install Sieve 
scripts is trivial.

For all the users who don't have a Sieve script (or are using one you 
didn't generate), you generate and install a script that looks for the 
X-Spam-Status: header and moves the mail into a Junk folder. Using that 
header means you are doing the same that SpamAssassin would do if called 
by spamc/spamd. Always a good idea to use something someone else already 
does, no point in reinventing the wheel.

I like Cyrus more every time I use it :-)

If you are going to have to use procmail then you will need to be using 
a mail-base architecture that procmail understands, which I believe are 
mbox and maildir.



Jules

- -- 
Julian Field MEng CITP
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
For all your IT requirements visit www.transtec.co.uk



-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.5.3 (Build 5003)
Comment: Fetch my public key foot-print from www.mailscanner.info
Charset: ISO-8859-1

wj8DBQFFx3bfEfZZRxQVtlQRAoJCAKCx5QX/o9IHgZt+btcRO2Mt9uk6GwCg32KY
Z0K+Y+uDd6v9N6dS7WI/zf0=
=5uWY
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk



More information about the MailScanner mailing list