[CentOS] sendmail aliases

Hugh E Cruickshank hugh at forsoft.com
Tue Apr 1 23:29:37 UTC 2008


From: Chris Payne Sent: April 1, 2008 16:15
>
> On Tue, Apr 01, 2008 at 04:07:33PM -0700, Hugh E Cruickshank wrote:
> > From: David Hláèik Sent: April 1, 2008 16:00
> > >
> > > or just restart sendmail is enought?
> > >
> > I do not believe that that will work. The databases are normally
> > only updated on demand when you issue the newaliases command.
> > restarting sendmail will just use the exiting database without
> > the changes you did to the /etc/aliases file.
>
> If you use the init scripts, the newaliases command is run as part
> of the
> "start" or "reload" functions:
>
> > grep newaliases /etc/init.d/sendmail
> 		/usr/bin/newaliases > /dev/null 2>&1
> 		/usr/bin/newaliases > /dev/null 2>&1
> >
>
> A "make" in /etc/mail is also included.
>

I stand corrected (no surprise there<g>) but I still feel it is over
kill when just doing the newaliases command will achieve the desired
change.

Regards, Hugh

--
Hugh E Cruickshank, Forward Software, www.forward-software.com




More information about the CentOS mailing list