Hi, how to sent mail to more then one email adress
here comes the part from /etc/aliases
# Person who should get root's mail root: david.hlacik@polarion.com, lubomir.brychta@polarion.com
which is not working.
Thanks in advance!
David
From: David Hláèik Sent: April 1, 2008 14:40
Hi, how to sent mail to more then one email adress
here comes the part from /etc/aliases
# Person who should get root's mail root: david.hlacik@polarion.com, lubomir.brychta@polarion.com
which is not working.
Your half way there. After editing the /etc/aliases file you must then run the "newaliases" command to populate the databases.
HTH
Regards, Hugh
-- Hugh E Cruickshank, Forward Software, www.forward-software.com
or just restart sendmail is enought?
thanks!
D.
On Tue, Apr 1, 2008 at 11:57 PM, Hugh E Cruickshank hugh@forsoft.com wrote:
From: David Hláèik Sent: April 1, 2008 14:40
Hi, how to sent mail to more then one email adress
here comes the part from /etc/aliases
# Person who should get root's mail root: david.hlacik@polarion.com, lubomir.brychta@polarion.com
which is not working.
Your half way there. After editing the /etc/aliases file you must then run the "newaliases" command to populate the databases.
HTH
Regards, Hugh
-- Hugh E Cruickshank, Forward Software, www.forward-software.com
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, 02 Apr 2008 01:00:15 +0200 David Hláčik david@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
From: Frank Cox Sent: April 1, 2008 16:03
On Wed, 02 Apr 2008 01:00:15 David Hláčik david@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
On Tue, 01 Apr 2008 16:11:21 -0700 Hugh E Cruickshank hugh@forsoft.com wrote:
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.
It is indeed overkill in many cases. But that script is useful whenever you make any change to any of the sendmail configuration files. One-stop shopping, as it were. Make change, run script, done deal. I find it handy, myself.
Frank Cox wrote:
On Wed, 02 Apr 2008 01:00:15 +0200 David Hláčik david@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
And the init script will repeat the newaliases and make... I'm not sure what version added them, though.
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.
Regards, Hugh
-- Hugh E Cruickshank, Payroll Guardian, www.PayrollGuardian.com
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.
Cheers Chris -- Chris Payne chris.payne@triumf.ca TRIUMF ATLAS Tier-1 System Administrator - Networking TRIUMF +1 604 222 7554 4004 Wesbrook Mall, Vancouver, BC, V6T2A3, CANADA
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