Re: [Exim] spam review per virt domain

Top Page
Delete this message
Reply to this message
Author: Nigel Wade
Date:  
CC: Exim-Users
Subject: Re: [Exim] spam review per virt domain
Mark Seamans wrote:
> --
> [ Picked text/plain from multipart/alternative ]
>
>>I do this on a per-user basis using Exiscan/SpamAssassin. It's really pretty
>>straightforward.
>
>
> I am running Exiscan/Exim with SpamAssassin. And
> yes...straightforward...sounds like an exact fit.
>
>
>
>>SA is run by Exiscan and an ACL variable is set if it's spam. At local
>>delivery time this variable is tested, and if it's set the mail is deliverd
>>to the Spam mailbox rather than the Inbox.
>
>
>
> Yep. Exactly. How might this work with entire domain relay..ie: I
> relay/queue mail for several domains sending their mail to their own
> servers. I guess it would pickup that route before it hits the acl, so
> it would be routed to their server, not even hitting the acl that would
> try to deliver it to a "spam" maibox. (Correct me if I am wrong)


I hadn't realized you were relaying the mail to separate servers for each
domain. My method only works for final delivery.

However, the same principle might be applicable. Having multipe routers for
the same domain, with the router chosen based on whether the message is spam
or ham, might still work. Where your solution needs to differ is in what the
transport for spam does, and whether the final mail delivery agent can be
configured to handle it.

If you want all spam to go to a single mailbox for each domain, and you are
relaying the mail, I think that would require rewriting the recipient. I
don't have a clue whether that's even possible. Also, you'd need to keep the
original recipient list intact incase the review showed it not to be spam.

>>A cron process runs once per day and removes messages from the Spam
>>mailboxes which are older than 28 days (this is trivial if mailboxes are
>>stored in maildir format).
>
>
>
>
> What is cron....just kidding.
>
> Maildir...yep. I figured that a script would run checking for old files
> (mail) and purging them.


That's only any use on the server which actually contains the users
mailboxes. If your system is simply a relay then, presumably, it won't have
access to the filesystem to remove those old files.

>
> I am a bit weak (but learning) on exim acl's. Any chance I can get you
> to share some sections of your config with me? Sorry for the hassle. I
> have been researching this for awhile, where I have seen people doing
> it....none have shown examples. You know how it is...production
> box...you hate to screw anything up...
>



--
Nigel Wade, System Administrator, Space Plasma Physics Group,
             University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@???
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555