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 <g...@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!
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to