Sendmail hosed after hostname changed

Charles Howse chowse at charter.net
Sun Oct 12 14:31:38 PDT 2003


> >Hi,
> >I've changed my hostname from larry.howse.no-ip.org to
> >larry.howse.homeunix.net.
> >I'm no longer getting my daily reports, or any mail from 
> this machine on
> >my home network.
> >I have "sendmail_enable="NO" in my rc.conf, not running an 
> external mail
> >server, only need local mail.
> >I *think* I need to tell sendmail to use localhost as the 
> relay, because
> >howse.homeunix.net is just a record in the dynamic dns server that I
> >use: dynDNS.org
> >
> >I know very little about sendmail, can anyone help correct 
> this problem?
> >Output of tail /var/log/maillog:
> >
> >[charles at larry ~]$ tail /var/log/maillog
> >Oct 12 13:19:06 larry sm-mta[1725]: h9CIIso1001722:
> >to=<charles at larry.howse.homeunix.net>, delay=00:00:12, 
> xdelay=00:00:00,
> >mailer=esmtp, pri=120370, relay=howse.homeunix.net. [66.168.145.25],
> >dsn=4.0.0, stat=Deferred: Connection refused by howse.homeunix.net.
> >Oct 12 13:19:06 larry sm-mta[1725]: h9CCJ6o3001436:
> >to=<root at larry.howse.homeunix.net>, delay=06:00:00, xdelay=00:00:00,
> >mailer=esmtp, pri=1111992, relay=howse.homeunix.net., dsn=4.0.0,
> >stat=Deferred: Connection refused by howse.homeunix.net.
> >Oct 12 13:19:06 larry sm-mta[1725]: h9CCJ6o2001436:
> >to=<root at larry.howse.homeunix.net>, delay=06:00:00, xdelay=00:00:00,
> >mailer=esmtp, pri=1114308, relay=howse.homeunix.net., dsn=4.0.0,
> >stat=Deferred: Connection refused by howse.homeunix.net.
> >Oct 12 13:19:06 larry sm-mta[1725]: h9C9J5o2001281:
> >to=<root at larry.howse.homeunix.net>, delay=09:00:00, xdelay=00:00:00,
> >mailer=esmtp, pri=1657639, relay=howse.homeunix.net., dsn=4.0.0,
> >stat=Deferred: Connection refused by howse.homeunix.net.
> >Oct 12 13:19:06 larry sm-mta[1725]: h9C9J5o3001281:
> >to=<root at larry.howse.homeunix.net>, delay=09:00:00, xdelay=00:00:00,
> >mailer=esmtp, pri=1665654, relay=howse.homeunix.net., dsn=4.0.0,
> >stat=Deferred: Connection refused by howse.homeunix.net.
> >Oct 12 13:19:06 larry sm-mta[1725]: h9C83to1001214:
> >to=<root at larry.howse.homeunix.net>, delay=10:15:11, xdelay=00:00:00,
> >mailer=esmtp, pri=1920401, relay=howse.homeunix.net., dsn=4.0.0,
> >stat=Deferred: Connection refused by howse.homeunix.net.
> >Oct 12 13:19:06 larry sm-mta[1725]: h9C83ao1001150:
> >to=<root at larry.howse.homeunix.net>, delay=10:15:29, xdelay=00:00:00,
> >mailer=esmtp, pri=1920404, relay=howse.homeunix.net., dsn=4.0.0,
> >stat=Deferred: Connection refused by howse.homeunix.net.
> >Oct 12 13:19:06 larry sm-mta[1725]: h9C82Ho1000954:
> >to=<charles at larry.howse.homeunix.net>, delay=10:16:49, 
> xdelay=00:00:00,
> >mailer=esmtp, pri=2118398, relay=howse.homeunix.net., dsn=4.0.0,
> >stat=Deferred: Connection refused by howse.homeunix.net.
> >Oct 12 13:19:06 larry sm-mta[1725]: h9C4w1o1000696:
> >to=<charles at larry.howse.homeunix.net>, delay=13:21:04, 
> xdelay=00:00:00,
> >mailer=esmtp, pri=2550389, relay=howse.homeunix.net., dsn=4.0.0,
> >stat=Deferred: Connection refused by howse.homeunix.net.
> >Oct 12 13:19:06 larry sm-mta[1725]: h9C4x1o1000716:
> >to=<charles at larry.howse.homeunix.net>, delay=13:20:05, 
> xdelay=00:00:00,
> >mailer=esmtp, pri=2550418, relay=howse.homeunix.net., dsn=4.0.0,
> >stat=Deferred: Connection refused by howse.homeunix.net.
> >
> >
> >  
> >
> Did you update /etc/mail/relay-domains and /etc/mail/local-host-names?

Those files did not exist.  
I couldn't find anything about the format of those files, so...
I touched them, and added larry.howse.homeunix.net to local-host-names,
and howse.homeunix.net to relay-domains.
Then I rebooted, and sent an email from root to charles (on larry).
Then I checked charles' mail - no mail

[charles at larry ~]$ tail /var/log/maillog
Oct 12 15:52:11 larry sm-mta[122]: h9C9J5o3001281:
to=<root at larry.howse.homeunix.net>, delay=11:33:05, xdelay=00:00:00,
mailer=esmtp, pri=2205654, relay=howse.homeunix.net., dsn=4.0.0,
stat=Deferred: Connection refused by howse.homeunix.net.
Oct 12 15:52:11 larry sm-mta[122]: h9C83to1001214:
to=<root at larry.howse.homeunix.net>, delay=12:48:16, xdelay=00:00:00,
mailer=esmtp, pri=2460401, relay=howse.homeunix.net., dsn=4.0.0,
stat=Deferred: Connection refused by howse.homeunix.net.
Oct 12 15:52:11 larry sm-mta[122]: h9C83ao1001150:
to=<root at larry.howse.homeunix.net>, delay=12:48:34, xdelay=00:00:00,
mailer=esmtp, pri=2460404, relay=howse.homeunix.net., dsn=4.0.0,
stat=Deferred: Connection refused by howse.homeunix.net.
Oct 12 15:52:11 larry sm-mta[122]: h9C82Ho1000954:
to=<charles at larry.howse.homeunix.net>, delay=12:49:54, xdelay=00:00:00,
mailer=esmtp, pri=2658398, relay=howse.homeunix.net., dsn=4.0.0,
stat=Deferred: Connection refused by howse.homeunix.net.
Oct 12 15:52:11 larry sm-mta[122]: h9C4w1o1000696:
to=<charles at larry.howse.homeunix.net>, delay=15:54:09, xdelay=00:00:00,
mailer=esmtp, pri=3090389, relay=howse.homeunix.net., dsn=4.0.0,
stat=Deferred: Connection refused by howse.homeunix.net.
Oct 12 15:52:11 larry sm-mta[122]: h9C4x1o1000716:
to=<charles at larry.howse.homeunix.net>, delay=15:53:10, xdelay=00:00:00,
mailer=esmtp, pri=3090418, relay=howse.homeunix.net., dsn=4.0.0,
stat=Deferred: Connection refused by howse.homeunix.net.
Oct 12 15:52:54 larry sendmail[182]: h9CKqsWb000182: from=root, size=31,
class=0, nrcpts=1,
msgid=<200310122052.h9CKqsWb000182 at larry.howse.homeunix.net>,
relay=root at localhost
Oct 12 15:52:54 larry sm-mta[183]: h9CKqsAs000183:
from=<root at larry.howse.homeunix.net>, size=374, class=0, nrcpts=1,
msgid=<200310122052.h9CKqsWb000182 at larry.howse.homeunix.net>,
proto=ESMTP, daemon=Daemon0, relay=localhost.howse.homeunix.net
[127.0.0.1]
Oct 12 15:52:54 larry sendmail[182]: h9CKqsWb000182: to=charles,
ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=30027, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
(h9CKqsAs000183 Message accepted for delivery)
Oct 12 15:52:54 larry sm-mta[185]: h9CKqsAs000183:
to=<charles at larry.howse.homeunix.net>, delay=00:00:00, xdelay=00:00:00,
mailer=esmtp, pri=30370, relay=howse.homeunix.net. [66.168.145.25],
dsn=4.0.0, stat=Deferred: Connection refused by howse.homeunix.net.





More information about the freebsd-questions mailing list