Bernd Wurst writes:

Hi there.

My courier installation is running for a long time now.
Some times, unreproducable, when local "sendmail" wrapper should submit a message, it is rejected with the following error message

  sendmail: ERR: submitclient: EOF from submit.
  432 Service temporarily unavailable.
  sendmail: Unable to submit message.

The log file contains only one entry at this timestamp:

  submit: No such file or directory


The machine is not very loaded. My setup uses a custom courierfilter that seemed not to get involved before the error comes up. Authdaemon uses mysql backend and authpam for authentication.

When I retry immediately, no error is given.

Can you give me a hint, which part of courier could lead to this error? I don't even know where to start looking for a problem.

The submit process is aborting, for some reason. This is very difficult to track down. Trying to chase this down won't be easy.

Given that the existing submit binary is /usr/lib/courier/libexec/courier/submit:

1) Stop all mail delivery

2) Rename submit to submit.orig

3) Install the following shell script in place of the submit binary, making sure that the script's permissions are set to execute

#! /bin/sh

strace -s 256 -o /tmp/submit.`whoami`.$$.log \
    /usr/lib/courier/libexec/courier/submit.orig "$@" && \
    rm -f /tmp/submit.`whoami`.$$.log && exit 0
rc=$?
mv /tmp/submit.`whoami`.$$.log /tmp/submit.`whoami`.log.save
exit $?

4) Start everything up, and do some basic sanity checks by sending a test message. If everything's ok, leave it running. Hopefully, the next time it barfs, a useful strace will be saved.

This is off the top of my head, not tested, but this should work.


Attachment: pgpdPxOmpLfnt.pgp
Description: PGP signature

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to