From owner-freebsd-questions Tue Jun 25 23:22:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from matrix.zssm.zp.ua (matrix.zssm.zp.ua [212.8.32.10]) by hub.freebsd.org (Postfix) with ESMTP id D684037B429 for ; Tue, 25 Jun 2002 23:21:27 -0700 (PDT) Received: from server.hermes-comp.zp.ua (germes-comp.zssm.zp.ua [212.8.32.132] (may be forged)) by matrix.zssm.zp.ua (8.11.3/8.11.3) with ESMTP id g5Q6FBo81715; Wed, 26 Jun 2002 09:15:18 +0300 (EEST) (envelope-from stalker@hermes-comp.zp.ua) Received: from localhost (localhost [127.0.0.1]) by server.hermes-comp.zp.ua (Postfix) with ESMTP id 7F28538302; Wed, 26 Jun 2002 09:22:28 +0300 (EEST) Date: Wed, 26 Jun 2002 09:22:28 +0300 (EEST) From: Alexander V Zubchenko To: Qingjia Zhu Cc: Subject: Re: sendmail refuse localhost? In-Reply-To: <20020626060235.88002.qmail@web14405.mail.yahoo.com> Message-ID: <20020626091818.K10703-100000@server.hermes-comp.zp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Greetings! On Tue, 25 Jun 2002, Qingjia Zhu wrote: > 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 > Check Your /etc/mail/sendmail.cf for: Cw #This is your main name under which mail is going Cw #Obvious Fw-o/etc/mail/local-host-names #Exact filename may b other. Last line set path to file, consisting of names of Your mailserver, known to sendmail. One name per line. i hope this help and if You have some more questions or something is not clear, mail me... With best wishes, Alexander V Zubchenko, E-Mail: stalker@hermes-comp.zp.ua System Administrator, WWW: http://www.hermes-comp.zp.ua/ Hermes-comp, Ukraine, Zaporizhzhya, Geroev Stalingrada 50 phone/fax: +380 612 64-19-72 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message