From owner-freebsd-questions Tue Jun 25 23:12:29 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.gbronline.com (mail.gbronline.com [12.145.226.4]) by hub.freebsd.org (Postfix) with ESMTP id 038C737B4B3 for ; Tue, 25 Jun 2002 23:08:10 -0700 (PDT) Received: from daleco [12.145.236.48] by mail.gbronline.com (SMTPD32-7.10) id A9F12ABA0094; Wed, 26 Jun 2002 01:06:41 -0500 Message-ID: <03cf01c21cd7$c95a9b60$30ec910c@fbccarthage.com> From: "Kevin Kinsey, DaleCo, S.P." To: "Qingjia Zhu" , References: <20020626060235.88002.qmail@web14405.mail.yahoo.com> Subject: Re: sendmail refuse localhost? Date: Wed, 26 Jun 2002 01:07:43 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG What's in /etc/mail/relay-domains? KDK ----- Original Message ----- From: "Qingjia Zhu" To: 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