LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-05-2003, 03:52 AM   #1
Bungo2000
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Redhat 9
Posts: 35

Rep: Reputation: 15
Unhappy Maddening sendmail problem -- cant send mail to remote hosts! HELP!


I have a problem sending e-mail from local users to remote addresses using sendmail 8.12 on an apache/sendmail server.

I am inside a LAN, with DSL (dynamic IP, static coming soon), and port forwarding for my server.

The server handles 3 domains (domain1.com, domain2.com, domain3.com)

When I try to send an e-mail to a remote address, mailq reports it Deferred: Connection timed out with remotemailserver.com

Here is what happens to a message from a local user (user@domain1.com) sent to a remote address (remote@hotmail.com), sent via another computer inside my network:

-- Mail-log: Sending message --
Jun 4 22:31:02 mail sendmail[4769]: h555V2vR004769: from=<user@domain1.com>,
size=1203, class=0, nrcpts=1, msgid=<000801c32b23$a5d6bfb0$0200a8c0>,
proto=SMTP, daemon=MTA, relay=[192.168.0.2]


-- Mail-log: Message Deferred --
Jun 4 22:41:09 mail sendmail[4771]: h555V2vR004769: to=<remote@hotmail.com>,
ctladdr=<user@domain1.com> (506/506), delay=00:10:07, xdelay=00:10:07,
mailer=esmtp, pri=30459, relay=mx3.hotmail.com. [65.54.254.140], dsn=4.0.0,
stat=Deferred: Connection timed out with mx3.hotmail.com.


-- Mail-Queue: Message status --
qfh555V2vR004769 Wed, 4 Jun 2003 22:31:00 -0700 "User's Name"
<user@domain1.com> <remote@hotmail.com> 1 kB Deferred: Connection timed out with mx3.hotmail.com.


I can think of three things:

1. Sendmail is configured incorrectly (I've been through it very carefully and can't see any problems. I've read all the docs, HOWTOs, etc.)

2. hostname/hosts file is set incorrectly. I am still a bit confused about what exaclty goes there, so this may be causing a problem. My hostname is set to mail.domain1.com, and I have listings in /etc/hosts for 127.0.0.1 which points to localhost.localdomain and localhost, and also for my internal IP and public IP (at the time of sending) that both point to: mail, mail.domain1.com, domain1.com, www.domain1.com, mail.domain2.com, domain2.com, www.domain2.com, and the same for domain 3.

3. A strange but plausible explanation: something is blocking access to port 25 on its way. If I telnet to mx3.hotmail.com from the server, the IP address is resolved, but the connection to it times out. I have also had trouble recently sending mail from other computers on the LAN through remote e-mail servers that always worked before, and should provide access for my account. I have to send my normal mail via web interfaces!

Note that I set my server up as a DMZ server with my router, and the same problem occured with outgoing email. I also had iptables stopped.

Also note that I can recieve mail to my sendmail server from both local and remote addresses without any problem, and it correctly handles all 3 domains.

If anyone has any ideas as to whats going wrong, I'd really appreciate it. I've been trying to get this working for 3 days straight (literally) and finally resorted to asking here!

If anyone would like me to provide more information about my configuration/network or show more logs, I'd be happy to.

Thanks a lot!
 
Old 06-05-2003, 03:57 AM   #2
Robert0380
Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
man we have the EXACT oposite problem, i can send all the mail out i want but cant recieve mail. mine is on a rh 7.3 box, all i did to get it working was edit my sendmail.mc file, i changed the domain name part to my domain name and then ran the m4 command on it, restarted the server and it worked. but like i said...i cant recieve an email to save my life.
 
Old 06-05-2003, 08:50 AM   #3
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Rep: Reputation: 30
Robert, your problem is different than Bungo's. It's the exact opposite. Robert, I think your problem is with MX records in DNS. Is your mail server also running a DNS server? If it is, setup MX records properly. If not, tell MX records where to point for your name resolution.

Bungo, hmmmmmmmmmm..... This is a strange one... I'm not quite sure, so let me research it and I'll let you know what I find out. Check back later.

Chris
 
Old 06-07-2003, 03:33 PM   #4
Bungo2000
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Redhat 9
Posts: 35

Original Poster
Rep: Reputation: 15
Question Anything?

Anyone got any ideas? Still struggling here... can't make any sense out of it.

ANYTHING will help!
 
Old 06-07-2003, 03:57 PM   #5
Robert0380
Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
mine was a setup issue, i had it listening on the default setup IP of 127.0.0.1 instead of 192.168.1.200 (used webmin to catch that).

post your sendmail.mc file here so we can see your configuration (if u dont mind).
 
Old 06-07-2003, 05:00 PM   #6
Bungo2000
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Redhat 9
Posts: 35

Original Poster
Rep: Reputation: 15
Yeah i know, but as you correctly pointed out, you had the opposite problem to mine, so there really is no correlation between your problem and mine.

Thanks though
 
Old 06-09-2003, 03:22 PM   #7
Robert0380
Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
recieving mail just fine, that eliminates DNS problems.

you said in the 1st post that the mail was sent through your box and not from
your box.....have you tried sending it from the box itself? Also,
have you tried sending to something other than a hotmail account, it atleast
doest seem to be trying to get out so I assmue you set it up to allow relaying
from the internal hosts.

i telneted to mx3.hotmail.com and it works for me:

Code:
[bigPimp@decatur imp]# telnet mx3.hotmail.com 25
Trying 65.54.253.99...
Connected to mc7.law1.hotmail.com (65.54.253.99).
Escape character is '^]'.
220 mc7-f2.law1.hotmail.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.5600 ready at  Mon, 9 Jun 2003 12:20:01 -0700 
quit
221 mc7-f2.law1.hotmail.com Service closing transmission channel
Connection closed by foreign host.
when u tried to telnet, did u specify port 25? if you do that and it still
doesnt work, then like u said before...something could be blocking outgoing
on port 25, i thin som ISPs do that to prevent open mail relay problems (spam).
 
Old 06-09-2003, 03:26 PM   #8
Bungo2000
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Redhat 9
Posts: 35

Original Poster
Rep: Reputation: 15
Yes of course I've tried all those things. I've set up mail servers before, I still believe its a problem with either my router or my ISP (should be contacting my ISP today, and i'll try another router too).
 
Old 06-09-2003, 03:26 PM   #9
emence
Member
 
Registered: Jun 2003
Location: Springfield, MO
Distribution: RedHat/Slackware
Posts: 81

Rep: Reputation: 15
This sounds like an issue with iptables/chains are you running iptables or chains on that box??? If so are you blocking or port re-directing 25 to another box somewhere
 
Old 06-09-2003, 03:43 PM   #10
Bungo2000
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Redhat 9
Posts: 35

Original Poster
Rep: Reputation: 15
Angry

No, it's nothing to do with IPtables, as I said (I don't know if you read the post), IP tables was disabled. As I also said, I cant send any mail out from any computer on the LAN going through port 25 outside the LAN, nor can i telnet to any server on port 25.
 
Old 06-09-2003, 03:47 PM   #11
Robert0380
Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
yea man, your server is set up fine then....sorry if you were frustrated
by my asking you did you try stuff u have already tried....i know how it is.

but...since u cant telnet to mx3.hotmail.com port 25, and i can just fine....
i'd go ahead and contact the ISP. Good luck with it.
 
Old 06-09-2003, 04:33 PM   #12
Bungo2000
Member
 
Registered: Mar 2002
Location: San Francisco, CA
Distribution: Redhat 9
Posts: 35

Original Poster
Rep: Reputation: 15
Talking

Yep, I'll have to. Thanks for your input. Now if only they would pick up the damn phone. . . .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 - will not send mail ekrumm Linux - Software 1 08-15-2005 12:23 PM
Sendmail problem on Fedora, Send mail twice sdsouza Fedora 0 02-15-2005 05:54 PM
Sendmail doesnt actually send mail ipcn Red Hat 5 12-29-2004 12:59 PM
Can't send mail with Sendmail familyman Linux - Software 3 09-15-2004 11:30 AM
sendmail can send mail but not receive exper Linux - Software 0 12-02-2003 05:45 AM


All times are GMT -5. The time now is 05:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration