procmail
[Top] [All Lists]

Re: Exit codes

1997-05-17 05:58:00
Could someone explain the practice of assigning
exit codes.  

From what I've been able to see, assigning exitcodes tells sendmail how to
respond or how to react to emails after (attempting to) deliver emails.

I've noted that the suggested .forward seems to
return an exit code of 75, and that many spam
recipies use 77.

Is there an exit code that will cause sendmail
to treat the mail as undeliverable? (unknown
user/host/domain)

Here's the list of all the sendmail exitcodes I've been able to harvest...

# From the sendmail source code:
#
#       /* 64 USAGE */          " 500 Bad usage",
#       /* 65 DATAERR */        " 501 Data format error",
#       /* 66 NOINPUT */        ":550 Cannot open input",
#       /* 67 NOUSER */         " 550 User unknown",
#       /* 68 NOHOST */         " 550 Host unknown",
#       /* 69 UNAVAILABLE */    " 554 Service unavailable",
#       /* 70 SOFTWARE */       ":554 Internal error",
#       /* 71 OSERR */          ":451 Operating system error",
#       /* 72 OSFILE */         ":554 System file missing",
#       /* 73 CANTCREAT */      ":550 Can't create output",
#       /* 74 IOERR */          ":451 I/O error",
#       /* 75 TEMPFAIL */       " 250 Deferred",
#       /* 76 PROTOCOL */       " 554 Remote protocol error",
#       /* 77 NOPERM */         ":550 Insufficient permission",
#       /* 78 CONFIG */         " 554 Local configuration error",

Lates!
-------------------------------------------------------------------
Tim <bodysurf(_at_)pobox(_dot_)com>                  
mailto:bodysurf(_at_)pobox(_dot_)com
Finger "bodysurf(_at_)pobox(_dot_)com" for my PGP public key (KeyID 09DA5C49).
PGP Key FPrint:    4C 97 F1 FA 70 55 68 91  49 D1 AD F2 DD 63 0C 15
-----------------> Please PGP encrypt your email <-----------------

<Prev in Thread] Current Thread [Next in Thread>