Re: [CentOS] sendmail aliases
Actually it *IS* a source change. The `confAUTO_REBUILD' option has been deleted from the sendmail source files for some time now. One can put that option in the sendmail.mc configuration file, but it will not be used because it isn't in the source any more. I've double checked this and have looked at the source. Now, I suppose if one isn't using a current version of sendmail, then this option may still be in the version you are using. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sendmail aliases
Brent L. Bates wrote: Sendmail used to automatically compare creation dates of the text and database aliases files and when the text one was newer than the database one, sendmail would automatically update the database file at a convenient time. This made a lot of sense. However, the powers that be decided to break this great feature and removed it. I copied it back into to source we use. This isn't exactly a source change. Just uncomment the line: dnl define(`confAUTO_REBUILD')dnl (by removing the leading dnl) in /etc/mail/sendmail.mc and restart sendmail. -- Les Mikesell [EMAIL PROTECTED] ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sendmail aliases
Sendmail used to automatically compare creation dates of the text and database aliases files and when the text one was newer than the database one, sendmail would automatically update the database file at a convenient time. This made a lot of sense. However, the powers that be decided to break this great feature and removed it. I copied it back into to source we use. -- Brent L. Bates (UNIX Sys. Admin.) M.S. 912 Phone:(757) 865-1400, x204 NASA Langley Research CenterFAX:(757) 865-8177 Hampton, Virginia 23681-0001 Email: [EMAIL PROTECTED] http://www.vigyan.com/~blbates/ ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sendmail aliases
Frank Cox wrote: On Wed, 02 Apr 2008 01:00:15 +0200 David Hláčik <[EMAIL PROTECTED]> 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. -- Les Mikesell [EMAIL PROTECTED] ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] sendmail aliases
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) 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 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sendmail aliases
On Tue, 01 Apr 2008 16:11:21 -0700 Hugh E Cruickshank <[EMAIL PROTECTED]> 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. -- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sendmail aliases
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 [EMAIL PROTECTED] TRIUMF ATLAS Tier-1 System Administrator - Networking TRIUMF +1 604 222 7554 4004 Wesbrook Mall, Vancouver, BC, V6T2A3, CANADA ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] sendmail aliases
From: Frank Cox Sent: April 1, 2008 16:03 > > On Wed, 02 Apr 2008 01:00:15 David Hláčik <[EMAIL PROTECTED]> 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 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] sendmail aliases
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 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sendmail aliases
On Wed, 02 Apr 2008 01:00:15 +0200 David Hláčik <[EMAIL PROTECTED]> 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 -- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] sendmail aliases
or just restart sendmail is enought? thanks! D. On Tue, Apr 1, 2008 at 11:57 PM, Hugh E Cruickshank <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED], [EMAIL PROTECTED] > > > > 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 > ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
RE: [CentOS] sendmail aliases
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: [EMAIL PROTECTED], [EMAIL PROTECTED] > > 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