Date: Tue, 14 Sep 2010 19:56:09 +0200 From: Matthias Apitz <guru@unixarea.de> To: Terrence Koeman <root@mediamonks.net> Cc: tomasz dereszynski <tomaszd@paraklet.net>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: sendmail && resolv.conf changes Message-ID: <20100914175608.GA1060@tiny.Sisis.de> In-Reply-To: <254c61d2cccd564d8fd93ae56635d6c0@mediamonks.com> References: <a5d6ccd9138943cd5da379a1b534acec.squirrel@paraklet.net> <254c61d2cccd564d8fd93ae56635d6c0@mediamonks.com>
index | next in thread | previous in thread | raw e-mail
El día Tuesday, September 14, 2010 a las 05:49:07PM +0200, Terrence Koeman escribió:
> > > What I wanted to say: sendmail runs and DHCP changes in certain
> > > situations the IP, routing and DNS, and sendmail does not adopt on
> > these
> > > changes.
> >
> >
> It might be an idea to (mis)use the "script" option in dhclient.conf to restart sendmail (/etc/rc.d/sendmail restart) after a lease has been aquired. See 'man dhclient.conf'.
Actually I'm using hooks in devd(8) like:
$ cat /usr/local/etc/devd/tun6.conf
notify 0 {
match "system" "IFNET";
match "subsystem" "tun6";
match "type" "LINK_UP";
action "/usr/local/etc/devd/tun6.sh $subsystem $type";
};
$ cat /usr/local/etc/devd/tun6.sh
#!/bin/sh
#
echo `date`: $0 $* >> /tmp/devd.out
(
sleep 30 ;
echo Doing: /etc/rc.d/sendmail onerestart >> /tmp/devd.out ;
/etc/rc.d/sendmail onerestart ;
)
exit 0
for each interface which might come up; but I was thinking that
there must be a more general solution in sendmail or DNS itself;
in any case, thanks for your idea;
> ...
> Please quote all replies in correspondence.
No. See netiquette RFC: http://www.faqs.org/rfcs/rfc1855.html
matthias
--
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru@unixarea.de> - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel? Not in my name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100914175608.GA1060>
