Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Failure sending mail within the same network

Status
Not open for further replies.

tarn

Technical User
Aug 19, 2001
534
GB
Hi,
I have (lets say) 2 Linux servers [box1, box2] on the same piece of network (but both have more than one interface), I am trying to send mail FROM box1 TO user1@box2, with sendmail -v user1@box2 I get:

user1@box2... Connecting to box2. via esmtp...
user1@box2... Deferred: Connection refused by box2.

And in the mailq I get:

[root@box1 etc]# mailq
/var/spool/mqueue (1 request)
----Q-ID---- --Size-- -----Q-Time----- ------------Sender/Recipient------------
g5Q9oDR26051 4 Wed Jun 26 10:50 ausername
(Deferred: Connection refused by box2.)
ausername@box2

Any idea where I'm going wrong ?
box2 is listining but apears to be on 127.0.0.1 not eth0

netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:32768 *:* LISTEN
tcp 0 0 *:pop3s *:* LISTEN
tcp 0 0 *:pop3 *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 *:http *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 localhost.localdom:smtp *:* LISTEN
udp 0 0 *:32768 *:*
udp 0 0 *:npmp-local *:*
udp 0 0 *:sunrpc *:*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 1386 /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 1333 /dev/gpmctl

 
Problem solved ......

Just changed the following option in sendmail.cf

FROM
O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA

TO
O DaemonPortOptions=Port=smtp,Addr=192.168.1.2, Name=MTA

Now all works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top