[TriLUG] YaST redefined

Aaron S. Joyner aaron at joyner.ws
Mon Aug 30 12:22:21 EDT 2004


Jeff Groves wrote:

> Brian Henning wrote:
>
>> Should I have to restart sendmail for changes to /etc/aliases to take
>> effect?  I didn't think it was necessary, but there's circumstantial
>> evidence suggesting otherwise..
>>  
>>
> I have tried not restarting and restarting sendmail on an /etc/aliases 
> change (followed by a "make" in that directory), and have had 
> contradictory results.  Sometimes it picks it up... other times no.
> As a result,  I always restart.
>
> Jeff G.

Running "make" in the /etc/mail directory is likely to run `newaliases` 
for you on most modern distributions.  It also takes care of rebuilding 
the /etc/mail/virtusertable.db and other .db files in that directory 
(via makemap hash <file>.db < <file>).  It's a simple definition in a 
Makefile, located at /etc/mail/Makefile - there fore you must be in the 
/etc/mail directory, not just in the /etc directory, for the 'make' 
command to pick up on that Makefile.  Makefiles are very useful for this 
type of system maintenance task - wholly above and beyond what they were 
ever intended for, but that's what often comes out of making a flexible 
language to perform a certain task, it ends up doing things you never 
thought of.  :)

Aaron S. Joyner



More information about the TriLUG mailing list