Like any other program under Unix, sendmail can return meaningful values to the environment and thus to you. All the possible exit values are documented in <sysexits.h>, along with the values assigned to each name. Here, we provide a bit more explanation about the most commonly used names.
The relationship between each exit value and its corresponding DSN detail is shown in Table 20-4 in error. That table also summarizes the values described here.