Operating System - Linux
1829263 Members
1617 Online
109988 Solutions
New Discussion

how to stop and start sendmail after i made changes to access.txt

 
SOLVED
Go to solution
Pando
Regular Advisor

how to stop and start sendmail after i made changes to access.txt

dear gurus,

I would like to ask how to stop and start sendmail (linux) after i made changes to access.txt file. what command should i invoke?
Max points to all correct answers. Thanks.
3 REPLIES 3
Alexander Chuzhoy
Honored Contributor
Solution

Re: how to stop and start sendmail after i made changes to access.txt

I think you mean the /etc/mail/access file.
anyway to restart the sendmail service, issue:
service sendmail restart
Pando
Regular Advisor

Re: how to stop and start sendmail after i made changes to access.txt

Thanks!
VK2COT
Honored Contributor

Re: how to stop and start sendmail after i made changes to access.txt

Hello,

There is no need to restart sendmail daemon
after making changes to the map
like access.txt. That is what they
were designed for.

As long as you regenerate your database
map (whatever format your access
map uses), sendmail will read
it immediately.

Depending on the type of your setup,
maybe access database map is generated
from the ascii file automatically
(that is what happens on my
own Fedora 6 server).

Or, you might need to do something like:

cd /etc/mail
makemap hash access < access.txt

Replace keyword "hash" with "btree"
if your sendmail is configured to use
B-Tree format maps.

One way or another, no need to
touch sendmail daemon.

Trust me, I have been managing and
designing small and large Sendmail, Exim, Qmail, and Postfix environments for many
years now (just one of the jobs I do).

VK2COT
VK2COT - Dusan Baljevic