Restarting sendmail after config change ?

Alex Neuman van der Hans alex at nkpanama.com
Wed Nov 24 19:23:50 GMT 2004


I usually do a killall -HUP sendmail; it's ugly but works like a charm... :)


-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf
Of Chris Conn
Sent: Wednesday, November 24, 2004 1:41 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: Restarting sendmail after config change ?

Richard Curtis wrote:
> I am writing a script for adding hosted domains to our server.
> When I add a hosted domain, I need to add it to the sendmails
> virtusertable and local-host-names.
>
> I have tried to use /etc/init.d/MailScanner reload but this does not
> rebuild the virtusertable.db file.
>
> What is the correct way to do this ?
>
on my redhats, I have a script that does this:

make -C /etc/mail
kill -HUP `head -1 /var/run/sendmail.in.pid`

------------------------ MailScanner list ------------------------ To
unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and the
archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list