I agree with you. But I would really prefer some macro based system, we can 
tell the user that we failed to deliver a message, but the user still 
doesn't know WHAT message.

If we could use a shell script (or other external application), like the 
filters (pass rcpt-to and from addresses, original message filename, xmail 
log filename as command line arguments), we could do anything we want.
Just 'echo' any text, include plain text files using 'cat' ('type' on 
windows), on unix/linux: use 'grep' to include the original subject in the 
error message, add date/time/whatever.

This may also be easier to implement than a template/macro parser.

Ivo

----- Original Message ----- 
From: "CLEMENT Francis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 15, 2007 6:22 PM
Subject: [xmail] Re: Delivery failure report and passwords in log files


>
> Keep in mind not all final users are :
> - english speaking :)
> - use a 'isp' as they 'postmaster', and large isp rarely take time to
> explain any error, at least free of charge.
>
> A simple way to 'personalize' the bounces/ndr/... could be :
> Each time Xmail have to send a bounce/ndr/... it searchs for a text file 
> in
> a subdir (<mailroot>/errors/ ?) :
> - if it found a EEE.txt file with EEE = error code, use its content as 
> start
> of the mail/error report
> - if not, find a more generic file EE.txt (like 55.txt for 55x errors) and
> if found , use its content as start of the mail/error report
> - if not, find a more generic file E.txt (like 5.txt for 5xx errors) and 
> if
> found , use its content as start of the mail/error report
> - if none is found, use a generic.txt file if exist as start of the
> mail/error report
> - if none found, use none :)
> Finally append 'standard xmail' infos at bottom.
>
> Simple and fast no ?
>
> Enhancements could then be use of macros in the text files to insert
> original infos, like sender, receiver, real final, send host name or ip, 
> ...
> (use same macros as filters ? so little code to write ?)
>
> Its just a suggestion :)
> Francis
>
> -----Message d'origine-----
> De: [EMAIL PROTECTED]
> A: [EMAIL PROTECTED]
> Date: 13/04/07 20:42
> Objet: [xmail] Re: Delivery failure report and passwords in log files
>
> On Fri, 13 Apr 2007, Ivo Smits wrote:
>
>> Davide (and all other list members ofcourse),
>>
>> Is it possible to change the "Delivery failed" email?
>> I really like all those details (return codes, timestamps), but the
> average
>> end user probably had no idea what the mail is about.
>> It would be nice if I could change at least the first part of the
> message,
>> best would be to use some template with special tags to include
> from/to
>> addresses.
>> If that is difficult, why not make XMail run a simple shell script
> with some
>> arguments that creates a failure report? :)
>>
>> By the way, does XMail still show plain passwords in POP3 and CTRL
> logs? and
>> is it possible to only show the encrypted/no password at all in the
> logs?
>
> A delivery failure report is only partially for the user. It is supposed
>
> to give the more info as possible to the postmaster when the user ping
> them about the error.
>
>
>
> - Davide
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe xmail" in
> the body of a message to [EMAIL PROTECTED]
> For general help: send the line "help" in the body of a message to
> [EMAIL PROTECTED]
> 

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to