Restarting sendmail after config change ?
Richard Curtis
richard at CROSSWIRED.CO.UK
Wed Nov 24 19:13:01 GMT 2004
[ The following text is in the "iso-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
I considered this, but it doesnt work for local-host-names which isnt a
hash.
I think the best idea so far as been from Chris Conn:
make -C /etc/mail
kill -HUP 'head -1 /var/run/sendmail.in.pid`
Thanks for all the quick responses.
It looks like this option works for me :)
Rich
> Within RedHat you will use the MAKEMAP command to reload and database
> into memory without restarting Sendmail/Mailscanner.
>
> Example:
> Cli->makemap hash /etc/mail/access < /etc/mail/access
> Would reload the access table after any changes. This would be based on
> a hash database.
>
> Something similar would be used for the virtusertable depending on the
> type of database.
>
> Hope that helps..
>
> -----Original Message-----
> From: Chris Conn [mailto:cconn at ABACOM.COM]
> Sent: Wednesday, November 24, 2004 12: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!
>
> --
> This message has been scanned for viruses and
> dangerous content by Athens Hyperion Scanner, and is
> believed to be clean.
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by Athens Hyperion Scanner, and is
> believed to be clean.
>
> ------------------------ 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