[CentOS] sendmail aliases

Tue Apr 1 23:11:21 UTC 2008
Hugh E Cruickshank <hugh at forsoft.com>

From: Frank Cox Sent: April 1, 2008 16:03
> 
> On Wed, 02 Apr 2008 01:00:15 David Hláčik <david at hlacik.eu> wrote:
> 
> > or just restart sendmail is enought?
> 
> No.
> 
> I run this short bash script every time I make a change in my sendmail
> configuration:
> 
> #!/bin/bash
> cd /etc/mail
> make
> newaliases
> /etc/init.d/sendmail restart
> 

While that will work it is really overkill. All you need to do is
edit the /etc/aliases file and issue the newaliases command. sendmail
will use the updated databases immediately.

Regards, Hugh

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