On Wed, 2006-08-09 at 11:22 +1000, Jobst Schmalenbach wrote: > On Wed, Aug 09, 2006 at 08:14:40AM +1000, Peter Miller ([EMAIL PROTECTED]) > wrote: > > Is there any elegant way to have a laptop DHCP client have its sendmail > > configured properly? In all the cases I have to deal with, my laptop is > > a DHCP client is behind a NAT firewall. > > in sendmail.mc: > > define(`SMART_HOST',`YOUR_ISP_UPSTREAM_MAILSERVER') > > then do a make in /etc/mail and restart sendmail
I'm not getting it, this morning. In my case, the value of YOUR_ISP_UPSTREAM_MAILSERVER depends on which firewall I'm behind, since all the ISPs in question gate client connections as being from their own customers' IP addresses, not the whole Internet. So one size definitely doesn't fit all. Are you suggesting I need to edit sendmail.mc every time I boot the machine? Is there a way to automagically have the DHCP client daemon run a script to do it, instead? Has this already been done, in a Debian package? How does the script get the right value for YOUR_ISP_UPSTREAM_MAILSERVER from the DHCP server? -- Regards Peter Miller <[EMAIL PROTECTED]> /\/\* http://www.canb.auug.org.au/~millerp/ PGP public key ID: 1024D/D0EDB64D fingerprint = AD0A C5DF C426 4F03 5D53 2BDB 18D8 A4E2 D0ED B64D See http://www.keyserver.net or any PGP keyserver for public key.
signature.asc
Description: This is a digitally signed message part
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
