[email protected] wrote: > James Commons wrote: >> >> What I don't understand is why the message is sent correctly when I have >> my OpenBSD box set to DHCP, but not sent when it is set with a static IP >> address. > >Is it possible that you rely on DHCP to give you a default route, so there >is none when using a static IP address ? ("man mygate" may be your friend) >
There is definitely a gateway defined despite the static IP: $ cat /etc/mygate 192.168.123.254 (And "route show" lists the same gateway on both static IP and DHCP configurations.) I was able to get mail to forward properly by changing the hostname on the machine with the static IP (/etc/myname and /etc/hosts) from myserver.mydomain.net (which is a CNAME to a DynDNS hostname) to myserver.my.domain (which isn't a real domain and can't be resolved). $ ping myserver.mydomain.net PING myhost.dyndns.org (XX.XX.XX.XX): 56 data bytes 64 bytes from XX.XX.XX.XX: icmp_seq=0 ttl=64 time=0.454 ms 64 bytes from XX.XX.XX.XX: icmp_seq=1 ttl=64 time=0.290 ms $ ping myhost.my.domain ping: unknown host: myhost.my.domain It looks like sendmail is doing some type of "smart" lookups. When my machine name can be resolved back to an IP address, it tries to use that IP address to send the message (and fails), but when my machine name doesn't resolve sendmail defaults to its local MTA to send the message which works. Changing the hostname is a workaround -- now I need to figure out how to change the sendmail configuration to not do these "smart" lookups. James

