> Chris Kloiber wrote:
>> 
>> On Wed, 10 Oct 2001, Andrew Smith wrote:
>> 
>> > Quick question:
>> > Anyone know how I get sendmail to re-read access.db? (If I change
>> > it) Do I need to tell it I have changed it or is it automatic?
>> 
>> You can't change the access.db file directly, but I assume you know
>> that.
>> 
>> cd into /etc/mail, modify the access file as needed. Then assuming you
>> have the make utility installed, run 'make clean ; make' This updates
>> all the .db files there. I can't swear that the changes are picked up
>> automatically, nor is this the only way to force them to be reloaded,
>> but I just use 'service sendmail restart'. It's easier for me to
>> remember and works just fine.
>> 
> ---
> I could be wrong (and I would love to know if I am) but I have to
> believe that all you really need to do is re-hash the db...
> 
> makemap hash /etc/mail/access.db < /etc/mail/access
> 
> no service restart - no make/make clean necessary
> 
> Craig

My original question was what I needed to do after I changed "access.db"

I do this by editing "access" in a script and then "cd /etc/mail ; make"

I prefer to use make since it contains tha makemap command and if it ever
changes I don't need to know
make clean is unnecessary since I know I have changed "access" and just
want to rebuild "access.db"

I have found that the answer from Brain Curtis is correct -
sendmail does automatically notice "access.db" has changed.
(I didn't put any "service restart" or "/etc/rc.d/init.d/sendmail restart"
in the "sudo" script and it worked first time for the user)

> From:  Brian Curtis <[EMAIL PROTECTED]>   
>
> Hello Andrew,
>
> Wednesday, October 10, 2001, 2:46:09 AM, you wrote:
>
> AS> OK,
> AS> I'll be a bit more specific.
> AS> Is there a specific interrupt or command to get sendmail to JUST
> AS> reread the access.db file (or does sendmail notice when the file
> AS> changes and thus you don't need to do anything)
>
> [...]
>
> Sendmail will automatically read the re-hashed *.db files.  No need to
> restart it.
>
> AS> P.S. you can also type "cd /etc/mail ; make" to rebuild access.db :-)
>
> As of RHL 6.x, you could "cd /etc/mail; make clean; make".  I don't
> see why it would have changed for 7.x, but I've since switched to
> an alternative MTA.
>
>
> -- 
> Best regards,
>  Brian Curtis

-Cheers
-Andrew
--
MS ... if only he hadn't been hang gliding!



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to