Oliver Blasnik writes:
- my_pw=getpwnam(deliverymode); if (!my_pw) nouser();
If getpwnam fails, there could be just one reason:
- the user could not be retrieved (nonexistant)
Or the NIS server is down.
After this knowledge, the only reply has to be EX_NOUSER.
The NIS server could be
down, for example. Hence, the safest course to follow is to keep the
mail
queued up until someone notices and fixes the problem.
If the NIS is down and so get problems authenticating, this is a design
failure of the one who is using nis (no backups? no local copies?) and not
something you/maildrop has to worry about.
Of course it should worry about it. Instead of bouncing all mail until the
server goes back up, the mail will be nicely deferred, and redelivered when
things return to normal.