Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!uunet!apexepa!orac!pat From: pat@orac.pgh.pa.us (Pat Barron) Newsgroups: comp.mail.sendmail Subject: Re: Keeping mail in the queue when mail cannot be delivered Keywords: Specific mailers, queue, sendmail.cf Message-ID: <186@orac.pgh.pa.us> Date: 23 Jun 89 05:13:33 GMT References: <449.nlhp3@oracle.nl> Reply-To: pat@orac.pgh.pa.us (Pat Barron) Organization: Pat's 3b1 Lines: 20 In article <449.nlhp3@oracle.nl> bengsig@oracle.nl (Bjorn Engsig) writes: >How do I specify, that sendmail should keep the mail in the queue like it >does it with currently unreachble tcp machines. I do not want to change >sendmail itself, but only the sendmail.cf and the mailer program. >Any good solutions, less good ones, kludges, etc. are very welcome. Sendmail interprets exit codes from programs according to sysexits.h. If you've written your own mailer, it should either exit with a zero return code, or with one of the codes defined in sysexits.h. If you look in sysexits.h, you will see that there is a return code EX_TEMPFAIL defined to be use for temporary failures. If your mailer program calls "exit(EX_TEMPFAIL)" when it detects a temporary failure, the mail should be retried. --Pat. -- Pat Barron Internet: pat@orac.pgh.pa.us - or - orac!pat@gateway.sei.cmu.edu UUCP: ...!uunet!apexepa!sei!orac!pat - or - ...!pitt!darth!orac!pat