procmail
[Top] [All Lists]

Re: Custom error message

2010-05-27 12:00:32
On Thu, May 27, 2010 at 1:55 AM, Olivier Nicole
<Olivier(_dot_)Nicole(_at_)cs(_dot_)ait(_dot_)ac(_dot_)th> wrote:
 <st109811(_at_)cs(_dot_)ait(_dot_)ac(_dot_)th>: can't create user output 
file. Command output:
     procmail: [49636] Wed May 26 17:18:05 2010 procmail: Assigning
     "HOME=/home/corse/st109811" procmail: Assigning
     "ORGMAIL=/home/corse/st109811/Maildir/" procmail: Assigning
     "DEFAULT=/home/corse/st109811/Maildir/" procmail: Assigning
     "LOGFILE=/var/log/procmail" procmail: Opening "/var/log/procmail"

I believe the first part if from postfix, while the second part is the
error returned by procmail (it includes procmail variables, that is
why I think it is generated by procmail).

This is just the entire standard error (and also possibly standard
output) written by procmail, which postfix captures and inserts into
the bounce message.  You're seeing variable assignments because
verbose logging is enabled.  This is a potential security issue.

To change the output, you need to turn off (by unsetting VERBOSE), or
redirect elsewhere (by assigning to LOGFILE), the verbose logging; and
then emit the output that you do want in its place.  Unfortunately
procmail does not have an easy mechanism for restoring the original
standard error after it has been redirected, so you may need to settle
for disabling VERBOSE and assigning your desired error message to the
LOG variable.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>