LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-27-2004, 06:47 AM   #1
Hendon
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Rep: Reputation: 0
Sendmail: Can receive but can't send.


Error from outlook express.

"The connection to the server has failed. Account: 'terrapin', Server: 'terrapin', Protocol: POP3, Port: 110, Secure(SSL): No, Socket Error: 10061, Error Number: 0x800CCC0E"

**Tried to telnet from my linux server(IP:192.168.1.100) (Port:25)**
[root@gateway /]# telnet 192.168.1.100 25
Trying 192.168.1.100...
telnet: connect to address 192.168.1.100: Connection refused

**This is a log of what services are running. I noted that 127.0.0.1 is listed
for port 25. Does it mean anything?**[root@gateway /]# netstat -an | grep tcp |
grep 110tcp 0 0 0.0.0.0:110 0.0.0.0:*
LISTEN[root@gateway /]# netstat -an | grep tcp | grep 143
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
[root@gateway /]# netstat -an | grep tcp | grep 25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN

**This is a list of the ifconfig**
[root@gateway /]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:95:1C:02:F0
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:811 errors:0 dropped:0 overruns:0 frame:0
TX packets:820 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:95093 (92.8 Kb) TX bytes:76420 (74.6 Kb)
Interrupt:11 Base address:0x1000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:86832 errors:0 dropped:0 overruns:0 frame:0
TX packets:86832 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6274114 (5.9 Mb) TX bytes:6274114 (5.9 Mb)

**Showing version of sendmail and the packages installed.**
[root@gateway /]# /usr/sbin/sendmail -d0.1 -bt < /dev/null
Version 8.12.8
Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
NETUNIX NEWDB NIS PIPELINING SASL SCANF STARTTLS TCPWRAPPERS
USERDB USE_LDAP_INIT

============ SYSTEM IDENTITY (after readcf) ============
(short domain name) $w = gateway
(canonical domain name) $j = gateway.mycompany.com
(subdomain name) $m = mycompany.com
(node name) $k = gateway
========================================================

ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> [root@gateway /]#
[root@gateway /]#

**Telnetted into port 143. Success**
[root@gateway /]# telnet 192.168.1.100 143
Trying 192.168.1.100...
Connected to 192.168.1.100.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN]
gateway.mycompany.com IMAP4rev1 2001.315rh at Mon, 27 Dec 2004 16:13:04 +0800
(SGT). logout* BYE gateway.mycompany.com IMAP4rev1 server terminating connection
. OK LOGOUT completed
Connection closed by foreign host

**Telnetted into port 110. Success**
[root@gateway /]# telnet 192.168.1.100 110
Trying 192.168.1.100...
Connected to 192.168.1.100.
Escape character is '^]'.
+OK POP3 gateway.mycompany.com v2001.78rh server ready
quit
+OK Sayonara
Connection closed by foreign host.
[root@gateway /]#

**Telnetted into port 25 once again. Connection refused**
[root@gateway /]# telnet 192.168.1.100 25
Trying 192.168.1.100...
telnet: connect to address 192.168.1.100: Connection refused

**Telnetted into localhost and succeeded. Could there be a link between this and
the netstat -an listing 127.0.0.1 for my port 25?**
[root@gateway /]# telnet
localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 gateway.mycompany.com ESMTP Sendmail 8.12.8/8.12.8; Mon, 27 Dec 2004
16:18:39 +0800

=====================================
Any ideas you all can guess from here? I've done everything the setup guide wants.
 
Old 12-27-2004, 05:44 PM   #2
Butt-Ugly
Member
 
Registered: Nov 2004
Location: Brisbane, Australia
Distribution: Fedora Core 5
Posts: 89

Rep: Reputation: 15
Edit your /etc/mail/sendmail.mc

Change this: DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Into this: DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl

Then do: make -C /etc/mail
Then: service sendmail restart

Now test.

Miles.
 
Old 12-28-2004, 10:36 AM   #3
Hendon
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Butt-Ugly
Edit your /etc/mail/sendmail.mc

Change this: DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
Into this: DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl

Then do: make -C /etc/mail
Then: service sendmail restart

Now test.

Miles.
Thanks man, I'll test that out.
 
Old 12-30-2004, 09:41 AM   #4
Hendon
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Original Poster
Rep: Reputation: 0
That bloody did the trick. Thanks a lot Miles.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail can send not receive abettertomorrow Slackware 6 01-22-2005 01:54 PM
sendmail - group-based send/receive-handling nuxv Linux - Newbie 0 04-18-2004 03:36 PM
sendmail can send mail but not receive exper Linux - Software 0 12-02-2003 04:45 AM
Problems with sendmail - can receive but not send vittibaby Linux - Software 9 08-23-2003 12:38 AM
Sendmail allows receive but not send rob19 Linux - Software 8 06-17-2003 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration