Re: [exim] Second class Email

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Chris Lightfoot
Fecha:  
A: Russell Wilton
Cc: exim-users
Asunto: Re: [exim] Second class Email
On Fri, Nov 10, 2006 at 10:16:41AM -0700, Russell Wilton wrote:
> I am running RedHat Linux and Exim 4.52 on a box in my DMZ. It acts as
> a spam/virus scanner and smart host relay for an Exchange box inside my
> firewall. The Exchange users insist that their 'Out-of-Office'
> autoreply messages need to be sent to external addresses as well as
> internal. We haven't found a way to prevent Exchange from sending
> 'Out-of-Office' messages in reply to spam, so the smart host gets a lot
> of Autoreplys addressed to invalid addresses. When it can't deliver
> them it sends a bounce message back to the Exchange users, so for every
> spam they also get a non-delivery notice for the 'Out-of-Office' message.
>
> These 'Out-of-Office' messages are easily identifiable by their subject
> line, and I would like to treat them similar to the way bounce messages
> are treated: try to deliver them for a short period of time, and if they
> are non-deliverable, just delete them. I know from experience that Exim
> is incredibly flexible, but I haven't been able to figure out how to
> make it do this. Any thoughts or pointers would be much appreciated.


I've done something similar to the last bit you want by
using a system filter to detect the bounce messages
generated when such a delivery fails (by recognising the
text or headers of the message that bounced, in your case
the out-of-office mail, when it is quoted in the bounce).
This is pretty simple to implement (test for
`$sender_address is ""' and `$message_body matches "..."',
and increase message_body_visible so that enough of the
body of each bounce is visible to the filter), but I'd be
interested to know if there's a better way.

--
``I'm not saying we should bomb Iraq. But we've got to bomb somewhere!''
(http://themanwhofellasleep.com/gossip2.html)