Re: [Exim] Manual resubmit of emails

Top Page
Delete this message
Reply to this message
Author: Alberto Tablado
Date:  
To: exim-users
Subject: Re: [Exim] Manual resubmit of emails
El jue, 12-02-2004 a las 15:25, Paul Furness escribió:
>
> A. How do I make the mail do different things at all these different
> spam thresholds?
>
> I thought it might be solvable with ACLs in the form:
>
> warn message = Above threshold 1 ($spam_score)
>      spam = nobody:true
>      condition = ${if > {$spam_score_int}{50}{1}{0}}

>
> warn message = Above threshold 2 ($spam_score)
>      spam = nobody:true
>      condition = ${if > {$spam_score_int}{80}{1}{0}}

>
> warn message = Above threshold 3 ($spam_score)
>      spam = nobody:true
>      condition = ${if > {$spam_score_int}{100}{1}{0}}

>
>
> which (I think) will _detect_ whether the message is above each
> threshold, but I have no idea how to make this do anything to the mail.
>
> Perhaps I should be using system filters, but I'm not clear on what to
> do with the messages - which brings me neatly to:


I think that's better to use acl variables
(http://www.exim.org/exim-html-4.30/doc/html/spec_toc.html#TOC129).
m-variables lasts for the live of the message. so you can set an m
variable to the kind of spam (1-4) and test it in routers. For 1), run a
normal route and delivery. For 2), performs the rewrite you want,
removing and adding headers. For 3) run a special router which sends the
message to the postmaster. And for 4), send the message to the obvilion.

>
>
> B. How do I deal with mails which I want to quarantine?
>
> I want to store them in a format that is easy to resubmit to exim. This
> means that putting them in a maildir folder somewhere doesn't work
> ideally (incidentally, I'm using maildir for all the local deliveries).
>
> As far as I can tell, messages in exim's queue are in the form of ID-H
> and ID-D files in the 'input' folder. It would be ideal if I could just
> move those -H and -D files to another folder, and possibly put the
> complete email (including the spam report) in there with them (called
> 'ID-report', for example). Then, I can look at the mails and decide what
> to keep, and all I need do to resubmit it is move those two files back
> into exim's 'input' directory.
>


I advise you not to touch jornal files. Better to perform a normal
delivery to the postmaster, perhaps in an special mailbox. Then, using
"exim -bm" you can resubmit the messages (those messages pass by
not_smtp_acl, so it won't be scanned again).

>
> So what am I missing? I get the feeling that I just need one little
> piece of knowledge and it'll all fit together, but fairly busy searching
> of the exim docs and this list's archive haven't yet given me the clue I
> need - this could be because I don't basically know what I want to look
> for.
>
> Any and all thoughts deeply appreciated.
>
> Thanks
>
> Paul.
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>