Sendmail connection refused

From: George Bell (masteroftimadim_at_netscape.net)
Date: 12/31/03


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

-- 
#
#...


Relevant Pages

  • Re: how do I see security logs without turning on sendmail? (Minor correction ...)
    ... On Wednesday 13 December 2006 13:33, Lane wrote: ... user@xxxxxxxxxxxxxxxxxxx Connecting to localhost.my.domain. ... Also searched about sendmail in the BSD FAQ, Handbook, if we should ... Which file needs to be modified in /etc/mail to allow the server to ...
    (freebsd-questions)
  • Re: how do I see security logs without turning on sendmail?
    ... user@xxxxxxxxxxxxxxxxxxx Connecting to localhost.my.domain. ... Also searched about sendmail in the BSD FAQ, Handbook, if we should change ... Which file needs to be modified in /etc/mail to allow the server to ... FreeBSD 6.x do like other hosts under your influence, ...
    (freebsd-questions)
  • SUMMARY: Solaris 10 Sendmail problem
    ... The main problem was that I upgraded from Solaris 8 to Solaris 10:) ... I had to fix permissions on the various folders used by sendmail to update ... connecting to host localhost, port 25 ...
    (SunManagers)
  • Re: how do I see security logs without turning on sendmail?
    ... without launching sendmail as daemon. ... user@xxxxxxxxxxxxxxxxxxx Connecting to localhost.my.domain. ... Also searched about sendmail in the BSD FAQ, Handbook, if we should change ...
    (freebsd-questions)
  • Re: transparent printer with pc
    ... Connecting to Internet thru DSL line with a dynamic ip. ... Dumb terminal with serial printer attached connecting now thru dial up line to server's modem connected to Equinox SST multiport board. ... Get rid of dumb terminal and attach printer to Workstation and use Internet connection to telnet to server and use the printer as a transparent or pass thru printer. ... to an installed printer on the unix box. ...
    (comp.unix.sco.misc)