procmail
[Top] [All Lists]

Re: Mail delivery and NIS

1995-12-28 12:23:38
Dave Brady <brady(_at_)husc(_dot_)harvard(_dot_)edu> wrote:
around with NIS between a couple of machines.  All was fine, UNTIL the 
master started a ypxfr.  During the transfer, some people could not login, 
and some mail would bounce, because the respective dbm entries had not 
yet been copied over.

Is this a valid concern, or does procmail have a method of detecting a 
ypxfr, and waiting for it to finish before doing a username lookup?

Actually, your C-library should take care of this.  getpwnam and friends
should stall if the database is not in sync.

As, for procmail, it doesn't do anything.  The program, if any, that
needs tweaking is sendmail (since that's the program that's doing the
bouncing most of the time).

In this case, the easiest way to prevent bounced mail due to temporarily
"unknown" users is to shoot down the sendmail daemon before starting the
NIS transfer, and restarting it afterward.
-- 
Sincerely,                                                          
srb(_at_)cuci(_dot_)nl
           Stephen R. van den Berg (AKA BuGless).

He did a quarter of the work in *half* the time!

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