[SA-exim] SApermrejectsave to a variable directory?

Dave Lugo dlugo at etherboy.com
Sat Feb 12 14:04:31 PST 2005


On Sat, 12 Feb 2005, Marc MERLIN wrote:
>  
> Without playing tricks with sym or hard links, not easily. You see, the
> problem is that you can have multiple rcpt-to's in one mail, so it
> would have to be in multiple places.
>  

Yeah, there is that :)

I've been looking at the 'only one recipient per mail' options
mentioned here:

  http://www.timj.co.uk/linux/Exim-SpamAndVirusScanning.php

Since this is for a rather low-volume mailserver, for domains which 
don't attract (except for spam) a lot of identical items sent to 
multiple recips, it's not too bad.

>  
> Anyway, the idea behind saving rejected spam was twofold: 
> 1) debugging rules and scores for you and me
> 2) allowing users to read their rejected mail via mutt or some maildir
>    capable imap server
> 
> For #2, I would recommend the following approach:
> Exim puts this header in the mail
> X-SA-Exim-Rcpt-To: marc at merlins.org
> 
> You could run an hourly cron job that goes through the spool of rejected
> messages, and moves/hard links them to other directories where your users
> can only get to the ones that were sent to them.
> 

Oh, that's a thought I hadn't considered.  Thanks!


> If you write such a script please contribute it back so that I can include
> it in the main distro
> 

Will do.

Regards,

Dave

-- 
--------------------------------------------------------
Dave Lugo   dlugo at etherboy.com    LC Unit #260   TINLC
Have you hugged your firewall today?   No spam, thanks.
--------------------------------------------------------
Are you the police?  . . . .  No ma'am, we're sysadmins.



More information about the SA-Exim mailing list