I'd like to have any daily reports and system-generated mail from my OpenBSD machine forwarded to my personal email address. (I have a fresh 4.6 install, generic kernel, default sendmail configuration.) I can only get this to work with my machine set to DHCP -- messages are not forwarded when I have it set to a static IP address.
$ cat .forward [email protected] If I have my machine configured with DHCP, the following works (the message is sent and forwarded correctly). $ mail -s 'test' commons test message EOT If I have my machine configured with a static IP address, that same command does *not* work. The message is never delivered. $ cat /var/log/maillog Oct 27 10:35:50 myserver sendmail[29253]: n9RFZosO029253: from=commons, size=41, class=0, nrcpts=1, msgid=<[email protected]>, relay=comm...@localhost Oct 27 10:35:51 myserver sm-mta[31537]: n9RFZolK031537: from=<[email protected]>, size=387, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1] Oct 27 10:35:51 myserver sendmail[29253]: n9RFZosO029253: to=commons, ctladdr=commons (1000/10), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30041, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (n9RFZolK031537 Message accepted for delivery) Oct 27 10:37:06 myserver sm-mta[3435]: n9RFZolK031537: to=<[email protected]>, delay=00:01:15, xdelay=00:01:15, mailer=esmtp, pri=30387, relay=myname.dyndns.org., dsn=4.0.0, stat=Deferred: Connection timed out with myname.dyndns.org. myserver.mydomainname.net is a CNAME to myname.dyndns.org The machine is behind a NAT router and is assigned a local network IP address. It looks like sendmail is autodetecting myname.dyndns.org based on the external IP address of the server. 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. James

