Re: [exim] reactive filtering to log files with exim possibl…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Warren Baker
Date:  
À: jeffrey.starin
CC: Exim-Users Mailing List
Sujet: Re: [exim] reactive filtering to log files with exim possible?
On Wed, Mar 7, 2012 at 12:15 AM, Jeffrey Starin <jeffrey.starin@???>wrote:

> On 3/6/2012 12:26 PM, Warren Baker wrote:
>
>>
>> With a bit of external help you could get Exim to do the same thing. Have
>> a log file monitor that 'watches' (tails) the log file for a specific
>> pattern and when it encounters a pattern, have it execute Exim with an
>> alternate configuration file for the relevant message(s).
>>
>> thank you Warren. Do you think simply "kill -HUP `cat
> /var/spool/exim/exim-daemon.**pid`" then restarting exim with reference
> to a separate config file would suffice?
>
> What happens to the messages already in the queues and what kind of hiccup
> could we expect?
>
> Thank you




You can run a separate instance of Exim with an alternate config file which
could be configured to only handle the delayed Yahoo messages. This way,
the separate instance wouldn't touch the other mails in the queue and you
don't need to HUP anything.

There are a number of ways you could do this, for example have the external
helper freeze the message and then have the other instance unthaw and then
attempt to deliver it or based upon some file existing (the is created by
the external helper) have the secondary exim instance deliver the message.
The primary exim instance wouldn't touch the messages destined for yahoo,
until the file was removed.

There are a number of ways to do this but just about anything possible.


--
.warren