From owner-freebsd-questions Thu Jan 15 11:46:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA03604 for questions-outgoing; Thu, 15 Jan 1998 11:46:28 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: (from jmb@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA03598; Thu, 15 Jan 1998 11:46:12 -0800 (PST) (envelope-from jmb) From: "Jonathan M. Bresler" Message-Id: <199801151946.LAA03598@hub.freebsd.org> Subject: Re: smtp restarting after changes to sendmail.* In-Reply-To: <19980115120917.43100@denver.net> from John-David Childs at "Jan 15, 98 12:09:17 pm" To: jdc@nterprise.net (John-David Childs) Date: Thu, 15 Jan 1998 11:46:12 -0800 (PST) Cc: jmb@FreeBSD.ORG, questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk John-David Childs wrote: > On Thursday January 15, 1998, Jonathan M. Bresler > had this to say about "Re: smtp restarting after changes to sendmail.*": > > > John-David Childs wrote: > > > 19428 > > > /usr/sbin/sendmail -bd -q30m > > > > > > > > > SO: I do the following: > > > > > > kill -9 `head -1 /var/run/sendmail.pid`;/usr/sbin/sendmail -bd -q30m > > > > ouch.....why kill sendmail dead and then restart it from scratch. > > sendmail will re-read /etc/sendmail.cf > > if 1. it was started with a full path name (like yours above) > > 2. you send it a HUP > > jmbn > > HUP's to sendmail work for changes to /etc/sendmail.cw and > /etc/sendmail.cf, but do not work for changes to the "database" files like > /etc/virtusertable, /etc/mailertable, /etc/genericstable, etc. Since I > end up changing those files more often than sendmail.cw or sendmail.cf, I > just got in the habit of sending a -9 instead of a -1 :-) ackkkk!!!!!! you dont need to HUP or kill -9 for tthose to take effect. i edit the /etc/mailertable and its automagically effective. makemap hash /etc/mailertable < /etc/mailertable ^ ^ | | | --- the ascii source file ---- the database, really /etc/mailertable.db so long as the inode number does not change (dont cp or mv it) it works like magic ;) jmb