[exim] Return code when using -bS

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Lars Timmann
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] Return code when using -bS
Hi all,
we just ran into a double entendre of the return code of exim wher using
the option -bS .

The manual says:
-bS
...
If any error is encountered, reports are written to the standard output
and error streams, and Exim gives up immediately. The return code is 0
if no error was detected; it is 1 if one or more messages were accepted
before the error was detected; otherwise it is 2.
...

But if there is an error in the config we get return code 1, too:

exim -C /tmp/exim.conf -bS ; echo "return code: "$?
2008-03-19 18:03:19 Exim configuration error in line 7
of /tmp/exim.conf:
main option "bla" unknown
return code: 1

We have a temp_errors=2 in the config but a config error forced mails to
bounce exept of deferring them.

Shouldn't config errors be mapped to 2 when -bS is used?

Greetings
    Lars
-- 
Lars Timmann
(Technical Consultant)


=================================================
MCS MOORBEK COMPUTER SYSTEME GmbH
Essener Bogen 17 - 22419 Hamburg - Germany
Tel: +49 (0)40 53773 0 - Fax: +49 (0)40 53773 200
E-Mail: Lars.Timmann@???
Web: http://www.mcs.de
Eingetragen im Handelsregister Hamburg B62933
Geschäftsführer: Kai Brandes & Eckard Kabel
=================================================
GPG fingerprint:
70B4 7F29 E004 112A 4BD0 F41A 8341 8950 B17B 58AD
Privat: L@???