Note that this should be the exit value of all the programs that sendmail runs when they
succeed without errors. The following C-language code, for example, returns a random
value:
main( )
{
?†? need a "return 0" or exit(0) here
}
6.5.5 EX_OSERR
A system resource error sendmail exit value
The EX_OSERR exit code (value 71) results from various operating system errors. In general,
this exit value is accompanied by an error message describing the problem.
6.5.6 EX_OSFILE
A critical system file failure sendmail exit value
The EX_OSFILE exit code (value 72) results when certain system files could not be opened
and when certain system programs could not be executed.
6.5.7 EX_SOFTWARE
An internal software error sendmail exit value
The EX_SOFTWARE exit code (value 70) indicates that a software error occurred. For example,
when figuring out whether to speak SMTP, sendmail looks to see whether the $u sendmail
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
230 | Chapter 6: The sendmail Command Line
macro is present in the A= equate for the selected delivery agent (?§20.5.2.3 on page 740). If
$u is absent, sendmail will speak SMTP. If sendmail was compiled without SMTP support
(?§3.4.57 on page 144), the fork(2)??™d child prints an error and exits with an EX_SOFTWARE exit
code.
Pages:
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432