Sendmail connection refused
From: George Bell (masteroftimadim_at_netscape.net)
Date: 12/31/03
- Next message: Davide Bianchi: "Re: Sendmail connection refused"
- Previous message: mjt: "Re: Dual Boot Fedora and Mandrake"
- Next in thread: Davide Bianchi: "Re: Sendmail connection refused"
- Reply: Davide Bianchi: "Re: Sendmail connection refused"
- Reply: Neil W Rickert: "Re: Sendmail connection refused"
- Reply: James Thayer: "Re: Sendmail connection refused"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Dec 2003 09:54:21 -0500
Linux distro: SuSE 8.0
Sendmail: version 8.12.2
I've been unsuccessful connecting to sendmail on any interface other than
127.0.0.1 If I try to send a mail to the sendmail process running on this
host with sendmail(for testing purposes) with the following command:
/usr/sbin/sendmail -Cclient.cf -v -d user1
(this is an exercise in a book I've beem following: "sendmail" by
Costales/Allman)
user1... Connecting to host1.domain via hub...
makeconnection (host1.domain.net. [192.168.1.2].25 (2))
makeconnection:fd=6
Connect failed (Connection refused by host1.domain.)
openmailer: makeconnection => stat=75, errno=111
However it works just fine if I send a mail this way:
/usr/sbin/sendmail -v -d user1
user1... Connecting to localhost.domain. via relay...
makeconnection (localhost.domain). [127.0.0.1].25 (2))
makeconnection: fd=6
smtpinit ....
Furthermore, if I try to telnet:
$> telnet 192.168.1.2 25
Trying 192.168.1.2...
telnet: connect to address 192.168.1.2: Connection refused
But
$> telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1..
220 host1.domain ESMTP Sendmail 8.12.3/8.12.3/SuSE Linux 0.6; ...
Works
Also netstat -a gives :
tcp 0 0 localhost:smtp *:* LISTEN
as the only entry for smtp
I tried everything I could imagine to get sendmail to listen to interface
other than 127.0.0.1
In sendmail.cf I changed daemon port options to:
O DaemonPortOptions=Name=MTA,Addr=192.168.1.2
This has no effect! I even tried to change the port just to see if it would
change anything:
O DaemonPortOptions=Name=MTA,Port=26
The port didn't change at all!
(I did restart the server)
Furthermore I'm not running any firewalls and ifconfig confirms eth1
interface up configured with ip 192.168.1.2
Now I am quite confused. Am I missing something here?
I have googled extensively, read over the faq, and gone over the operating
maunal. Nothing seems to address my particular problem.
Thanks,
Happy New Year,
George
-- # #...
- Next message: Davide Bianchi: "Re: Sendmail connection refused"
- Previous message: mjt: "Re: Dual Boot Fedora and Mandrake"
- Next in thread: Davide Bianchi: "Re: Sendmail connection refused"
- Reply: Davide Bianchi: "Re: Sendmail connection refused"
- Reply: Neil W Rickert: "Re: Sendmail connection refused"
- Reply: James Thayer: "Re: Sendmail connection refused"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|