[exim] Spamtrap routers and stuff

Inizio della pagina
Delete this message
Reply to this message
Autore: Kjetil Kjernsmo
Data:  
To: exim-users
Oggetto: [exim] Spamtrap routers and stuff
Hi all!

Now that Debian Sarge has been released, it is time to set up that
once-and-for-all config... :-)

I'm almost there, I think, the only real problem are my spamtraps. I
think I have understood the concepts, the roles that routers and
transports play, but the details are still sufficiently blurry to make
it hard to do this.... :-)

Here's the problem: I have a list of spamtraps, and I'd like to hand
messages there to spamassassin -r, but only after having checked
several things about them. They will only contain messages I don't want
to see, but not necessarily messages I would want to train on.

1) A message containing both a spamtrap address and a valid address must
be denied. AFAIK, one cannot accept a message for some recipients only,
and I get enough spam anyway. This should be done in RCPT TO ACL.

2) Any bounce messages should be deleted automatically. I'm not sure how
to detect them, or if it can be done reliably in RCPT TO or DATA.

3) Any message larger than 65 kB should be denied. First thing to happen
in DATA ACL (ok, that one's easy).

I then pass the message to clamav (as I think spam and viruses are
orthogonal issues). It'll make Exim reject any viruses it finds at this
point.

4) Then, what comes through to here should be learned on. However, I
haven't a big iron for this, should it should be run with the least
possible priority, and not slow the delivery of other messages down
significantly. Is there a good way to use Exim to ensure this? Would it
be an idea to just append the message to a file and have a frequent
cron-job niced down to do it?

Just another small thing: Debian (I presume) has lots of macros defined
to assist configuration, but I haven't seen where one is supposed to
set them. I've created a
file /etc/exim4/conf.d/main/01_exim4-config_localmacros for it. Is this
fine?

Happy for all help!

Cheers,

Kjetil
-- 
Kjetil Kjernsmo
Programmer/Astrophysicist/Skeptic/Ski-orienteer/Orienteer/Mountaineer
kjetil@???  webmaster@???  editor@???
Homepage: http://www.kjetil.kjernsmo.net/        OpenPGP KeyID: 6A6A0BBC