Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2002 09:22:28 +0300 (EEST)
From:      Alexander V Zubchenko <stalker@hermes-comp.zp.ua>
To:        Qingjia Zhu <ie_qjzhu@yahoo.ie>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: sendmail refuse localhost?
Message-ID:  <20020626091818.K10703-100000@server.hermes-comp.zp.ua>
In-Reply-To: <20020626060235.88002.qmail@web14405.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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<some_dns_name> #This is your main name under which mail is going
Cw <alias> <real_name>#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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020626091818.K10703-100000>