LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-23-2002, 06:32 PM   #1
linuxturtle
Member
 
Registered: Apr 2002
Posts: 36

Rep: Reputation: 15
Exclamation Sendmail Problems!


I am having a real hard time with sendmail and it is frustrating the hell out of me. I have installed and configured sendmail before and never had a problem. I cant figure out what I am doing wrong this time. As you all know there is alot of different files and settings to configure so I am not going to list all my configurations. If I "telnet localhost 25 " i get this:

[root@gw /root]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 gw.ultra-net.biz ESMTP Sendmail 8.11.2/8.11.2; Wed, 24 Apr 2002 09:13:51 +1000

So the service itself looks ok.....but if I try to send e-mail thru sendmail remotely like using outlook on a windows machine I get smtp socket 25 ssl errors(the windows machine is not behind a firewall) but if I use something like mail2web.com to check a mail acount on my linux box I can send but not receive mail. If any one knows of a really good how to with a good troubleshooting section it would help me out alot. If anyone requires more info from me on the configurations I am using let me know.




 
Old 04-24-2002, 12:19 AM   #2
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Suspecting two problems.

1. Check sendmail is listening only on localhost ??

netstat -an

if it is listening only on localhost then remove Addr part in the sendmail.cf file

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

The line should be like this.

O DaemonPortOptions=Port=smtp Name=MTA


Enable relay for the respective client IP address.



Second problem:

In mail2web u are able to send mails not able to receive mails.

check imap and po3 is installed and enabled..

netstat -an



Siddiqu.T


 
Old 04-24-2002, 01:03 AM   #3
linuxturtle
Member
 
Registered: Apr 2002
Posts: 36

Original Poster
Rep: Reputation: 15
I have changed The line in sendmail.cf to look like your line and I have installed pop3 (qpopper) and it apears to be working fine, but when I netstat -an as you can see below it still apears to be listening to 127.0.0.1 (localhost)

[root@gw mail]# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
tcp 0 48 203.45.24.37:22 203.44.107.93:6528 ESTABLISHED
udp 0 0 0.0.0.0:32768 0.0.0.0:*
udp 0 0 0.0.0.0:32769 0.0.0.0:*
udp 0 0 0.0.0.0:10000 0.0.0.0:*
udp 0 0 0.0.0.0:680 0.0.0.0:*
udp 0 0 0.0.0.0:111 0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 1402 /dev/gpmctl
unix 11 [ ] DGRAM 1041 /dev/log
unix 2 [ ACC ] STREAM LISTENING 1536 /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 1452 /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 717 /var/run/pump.sock
unix 3 [ ] STREAM CONNECTED 1561 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 1560
unix 3 [ ] STREAM CONNECTED 1552 /tmp/.font-unix/fs7100
unix 3 [ ] STREAM CONNECTED 1551
unix 3 [ ] STREAM CONNECTED 1553 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 1548
unix 2 [ ] DGRAM 1455
unix 2 [ ] DGRAM 1421
unix 2 [ ] DGRAM 1376
unix 2 [ ] DGRAM 1320
unix 2 [ ] DGRAM 1270
unix 2 [ ] DGRAM 1227
unix 2 [ ] DGRAM 1193
unix 2 [ ] DGRAM 1084
unix 2 [ ] DGRAM 1050
unix 2 [ ] STREAM CONNECTED 535
[root@gw mail]#

My relay_domains file looks like this:

192.168.1
optusnet.com.au

Any other ideas?
 
Old 04-24-2002, 01:06 AM   #4
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Hi..

U are correct.

have u restarted sendmail after removing the line ???


Siddiqu.T

 
Old 04-24-2002, 01:51 AM   #5
linuxturtle
Member
 
Registered: Apr 2002
Posts: 36

Original Poster
Rep: Reputation: 15
I rebooted the whole machine....... still the same
 
Old 04-24-2002, 02:06 AM   #6
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Can u post ur sendmail file Options configurations (Daemon option). and status of netstat.

Have u enabled any firewall rules ??


Siddiqu.T
 
Old 04-24-2002, 08:13 AM   #7
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
Wink will this help ?

Hi ,

In above mentioned thread someone said that the line should read as

O DaemonPortOptions=Port=smtp Name=MTA

i disagree .... it should be

O DaemonPortOptions=Port=smtp,Addr=x.x.x.x, Name=MTA

substitute x.x.x.x with ur IP address .

Regards,
Xanthium.


 
Old 04-24-2002, 11:35 AM   #8
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
i'll throw in my 2 cents here, though i could be way off.

i would try installing an imap server and making sure that port 143 is open on your machine. if you're able to send mail, but unable to receive it using an outside client, that's usually pretty indicitive of something being wrong with pop3/imap.

try and imap server and see what that does.
 
Old 04-25-2002, 02:06 AM   #9
linuxturtle
Member
 
Registered: Apr 2002
Posts: 36

Original Poster
Rep: Reputation: 15
xanthium your a legand man.... ypu were spot on everything is working great. Thanks alot man.


 
  


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 problems stouffej Red Hat 4 02-04-2005 10:39 PM
Problems with sendmail... @ngelot Linux - Software 4 11-17-2004 03:06 AM
sendmail problems bdoster Linux - Networking 2 10-29-2004 01:24 PM
problems with sendmail baczer Slackware 0 07-23-2004 01:20 PM
problems with sendmail JLDixon Linux - Software 8 03-13-2004 01:57 PM

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

All times are GMT -5. The time now is 03:14 AM.

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