RE: [Exim] SMTP error code in bounce messages

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Hämäläinen Jori
Datum:  
To: exim-users
Betreff: RE: [Exim] SMTP error code in bounce messages
Hello,

Opinions and standards doesn't matter because it must be done.

The are more usages for MTAs than just Internet email relay and
these are 'software' communication over SMTP and those systems
need standard error codes in standard places. And those are
standardized also by other organizations than IETF and they
do not scan message body for error and doesn't understand
SMTP-error codes (not my fault..:)

I started thinking that I make custom transport/router for
bounce messages which scans original bounce for 5XX codes
and alter it with header_add -functions?

Any help for such filter/router/transport configuration?

error_template
--------------
Subject: blah blah blah
****
Cause of failure:
<errormsg>
****
(**** maybe need for additional section because 3rd is pipe transport error)
</errormsg>

So between <errormsg> and </errormsg> is the cause of failure which at least
in Perl would be easy to multilineregexp. But how about Exim regexp's and
filters?

Best regards, Jori Hämäläinen

> -----Original Message-----
> From: Simon Williams [mailto:simon@no-dns-yet.org.uk]
> Sent: 6. toukokuuta 2003 20:26
> To: Hämäläinen Jori
> Cc: exim-users@???
> Subject: Re: [Exim] SMTP error code in bounce messages
>
>
> * On Tue, May 06, 2003 at 05:34:54PM +0300, Hämäläinen Jori wrote:
> > I would like to generate custom fields in
> > bounce messages, based on remote mta smtp
> > response code.
> >
> > x-remote-error: if (smtperror == 552) { "remote mailer over quota" }
> >                     else { "unknown error" }

> >
> > So any hints if such thing can be tweaked into standard
> > exim?
>
> I'm not aware of any way of doing it in Exim, but, for what it's
> worth, I would recommend against it. It assumes that all remote MTAs
> follow the guidelines in RFC1893, which isn't the case, and even some
> of these are open to a certain amount of (mis-)interpretation. In my
> opinion, it's much better to return exactly what was returned by the
> remote MTA for human interpretation.
>
> Just my GBP0.02.
> --
>  Simon Williams <simon@???> **** GPG: F4A23C69
>  "We demand rigidly defined areas of doubt and uncertainty."
>                        - Douglas Adams

>
>