Delivering spam into a folder
Mark Vevers
mark at vevers.net
Thu Oct 3 11:23:50 IST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 03 Oct 2002 10:23, you wrote:
> One feature which management is requesting (and it seems reasonable) is
> the ability to divert spam (probably above a certain SA 'score') into a
> user's folder (of fixed name). For a user 'userid' whose mail would
> normally be delivered via Mlocal to 'userid':
> Mlocal P=/usr/sbin/tmail ... A=tmail $u
>
> instead deliver it to 'userid+spamfolder':
> Mlocal P=/usr/sbin/tmail ... A=tmail $u+$h
>
> It is sendmail's ruleset 5 which handles the "+" syntax glue here.
>
>
> But I'm stuck. Given a message, which SA (aided by MS) determines to be
> spam of high enough score, how can the envelope "userid" be persauded,
> under these circumstances, to become "userid+spamfolder" by the time it
> reaches sendmail's ruleset 5?
The easiest way of handling this is to use either a procmail recipe or use
Maildrop (part of the Courier MTA but can also be used as a sendmail delivery
agent). The nice thing about maildrop is you can then create a default
delivery 'filter' and then let users override that if they wish.
I actually use SendMail + MailScanner + MailDrop + LDAP (virtual mail users) +
Courier IMAP - creating the delivery DIR and shoving the user into LDAP and
hey presto new mail user with no entry in /etc/passwd.
- --
Mark Vevers. mark at ifl.net / mark at vevers.net
Principal Internet Engineer, Internet for Learning,
Research Machines Plc. (AS5503)
- --
GPG Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB08F3CA3
Fingerprint: 85BA 30C4 9EC8 1792 4C8C C31E 58B5 3D1C B08F 3CA3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9nBq3WLU9HLCPPKMRAh2mAJwL0y0aUWFlr1rDfk9fN2E4wFTBlgCfYe9B
/k148CFCUSTAnxRHpYyYLHk=
=3efL
-----END PGP SIGNATURE-----
More information about the MailScanner
mailing list