Re: [exim] Adding informative headers to bounce messages

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Ian Eiloart
Datum:  
To: Ed Singleton, exim users
Betreff: Re: [exim] Adding informative headers to bounce messages


--On 23 November 2009 12:25:45 +0000 Ed Singleton <singletoned@???>
wrote:

> On 17 Nov 2009, at 17:28, W B Hacker wrote:
>
>> Ed Singleton wrote:
>>> I'm trying to work out how to add useful headers to the bounce
>>> messages that Exim generates in order to assist automatic processing
>>> of error messages. I've googled quite a bit, and read through the
>>> Exim book, but can't find anything on it.
>>>
>>> Any information on how to add more information such as the error
>>> message or error code to the headers, would be greatly appreciated.
>>> Even if people can suggest terms to search for, that would be good.
>>>
>>> Thanks
>>>
>>> Ed
>>>
>>
>> go ogle PVRS/BATV and/or search this list archives for BATV.
>>
>> (Bounce Address Tag Verification)
>>
>> Here is a decent explanation from an external-to-exim source;
>>
>> http://www.ironport.com/company/pp_eweek_07-27-2006.html
>>
>> There are many threads in archives here as to how-to, pros, cons,
>> benefits,
>> complications, etc.
>
> Thanks for this. Sorry for my slow follow up; I have been away from
> the internet for a while.
>
> The BATV stuff seems to be about confirming that bounces are genuine.
> I'm looking more for trying to find out why things bounced. EG Is it
> a hard bounce or a soft bounce? Is the MTA that we were trying to
> deliver to claiming that the account doesn't exist?


Then, you need to be looking at error codes from the remote server when you
do the delivery. Check the RFCs for SMTP error codes. Most sites won't
generate bounce messages, they'll either trash your mail or reject it at
SMTP time.



> I understand that a lot of MTAs give false information, but I'm
> willing to work with that. We send out a lot of marketing emails and
> I want to automatically remove anyone who hard bounces. I'm not
> entirely sure what to do with soft bounces, particularly as that
> involves some negotiation with the marketing department.
>
> I'm currently looking to only deal with the bounce messages that are
> generated by the version of Exim under my control. Bounce messages
> generated by other MTAs I'll deal with later.


Chapter 46 and sections 14.22 and 14.23 of the exim docs may be helpful.

But, I can't see a way to access the SMTP return code, extended error code,
or message - except when they're the results of a callout failure, when you
have $acl_verify_message and $recipient_verify_failure
$sender_verify_failure



> AFAICT It will be easiest to parse the message body and try and
> extract the information that way. I've googled quite a bit but can't
> currently find anything that already tries to do this (I'm mainly
> looking for Python related stuff as that's what I'm most comfortable
> with). Lamson (http://lamsonproject.org/) has some useful stuff that
> parses the headers, but nothing that parses the bodies.
>
> Anyway, I guess I should have been clearer in my initial email, but
> I'm fumbling around in the dark quite a bit here.
>
> Thanks
>
> Ed




--
Ian Eiloart
IT Services, University of Sussex
01273-873148 x3148
For new support requests, see http://www.sussex.ac.uk/its/help/