Date: Wed, 26 Jun 2002 01:07:43 -0500 From: "Kevin Kinsey, DaleCo, S.P." <kdk@daleco.biz> To: "Qingjia Zhu" <ie_qjzhu@yahoo.ie>, <freebsd-questions@FreeBSD.ORG> Subject: Re: sendmail refuse localhost? Message-ID: <03cf01c21cd7$c95a9b60$30ec910c@fbccarthage.com> References: <20020626060235.88002.qmail@web14405.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
What's in /etc/mail/relay-domains? KDK ----- Original Message ----- From: "Qingjia Zhu" <ie_qjzhu@yahoo.ie> To: <freebsd-questions@FreeBSD.ORG> Sent: Wednesday, June 26, 2002 1:02 AM Subject: sendmail refuse localhost? > Hello, > > I'm running a freshly installed FreeBSD 4.6 release, and I have problem > sending mail. My FreeBSD box isn't connected to the internet. > My HOSTNAME is set to qjzhu.headsun.net and /etc/hosts contains > 127.0.0.1 localhost localhost.headsun.net > > I do can send mail step by step, for example > [root@qjzhu root]# telnet localhost smtp > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > 220 qjzhu.headsun.net ESMTP Sendmail 8.12.3/8.12.3; Wed, 26 Jun 2002 > 13:29:28 +0 800 (CST) > helo localhost > 250 qjzhu.headsun.net Hello localhost [127.0.0.1], pleased to meet you > mail from: root@localhost > 250 2.1.0 root@localhost... Sender ok > rcpt to: qjzhu > 250 2.1.5 qjzhu... Recipient ok > data > 354 Enter mail, end with "." on a line by itself > a test mail > . > 250 2.0.0 g5Q5TSxM000184 Message accepted for delivery > quit > 221 2.0.0 qjzhu.headsun.net closing connection > Connection closed by foreign host. > > and /var/log/maillog logs > Jun 26 13:30:11 qjzhu sm-mta[184]: g5Q5TSxM000184: from=root@localhost, > size=12, class=0, nrcpts=1, msgid=<200206260529.g5Q5TSxM000184@qjzhu.h > eadsun.net>, proto=SMTP, daemon=MTA, relay=localhost [127.0.0.1] > Jun 26 13:30:11 qjzhu sm-mta[188]: g5Q5TSxM000184: to=qjzhu, ctladdr=root@ > localhost (0/0), delay=00:00:15, xdelay=00:00:00, mailer=local, pri=30444, > relay=local, dsn=2.0.0, stat=Sent > > It's fine, but I can't send mail through 'mail' MUA, for example > [root@qjzhu root]# mail qjzhu > Subject: test > a test mail > . > EOT > [root@qjzhu root]# > and /var/log/maillog logs > Jun 26 13:38:04 qjzhu sendmail[140]: g5Q5c4pI000140: from=root, size=37, > class=0, nrcpts=1, msgid=<200206260538.g5Q5c4pI000140@qjzhu.headsun.net>, > relay=root@localhost > Jun 26 13:38:04 qjzhu sendmail[140]: g5Q5c4pI000140: to=qjzhu, ctladdr=root > (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30025, relay=loca > lhost.heasun.net., dsn=4.0.0, stat=Deferred: Connection refused by localhost. > headsun.net > . > > Why connection refused? I'm really unfamiliar with sendmail. > Thank you very much. > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03cf01c21cd7$c95a9b60$30ec910c>