Restarting sendmail after config change ?
James R. Stevens
jstevens at ATHENSDISTRIBUTING.COM
Wed Nov 24 19:00:34 GMT 2004
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!
More information about the MailScanner
mailing list