LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-21-2003, 07:50 PM   #1
vittibaby
LQ Newbie
 
Registered: Aug 2003
Posts: 19

Rep: Reputation: 0
Unhappy Problems with sendmail - can receive but not send


My problem with sendmail 8.11.6-15 is that I can receive mail but not send out. I tried sending out a mail to a hotmail account, but the connection to mx1.hotmail.com always timeout.

#host -t mx hotmail.com
hotmail.com mail is handled by 5 mx4.hotmail.com
hotmail.com mail is handled by 5 mx1.hotmail.com
hotmail.com mail is handled by 5 mx2.hotmail.com
hotmail.com mail is handled by 5 mx3.hotmail.com

but when i ping the mail servers:

#ping mx4.hotmail.com
PING mx4.hotmail.com (65.54.254.151) from 192.168.1.205 : 56(84) bytes of data

then i don't get any response. I can ping yahoo. I tried sending another mail to an @iname.com account. Again, that failed.

The mail log that I get is:
Aug 22 08:42:45 HelloKitty sendmail[30374]: h7M0Wj830371: to=violawong@iname.com, ctladdr=root (0/0), delay=00:10:00, xdelay=00:10:00, mailer=esmtp, pri=30079, relay=iname-com-bk.mr.outblaze.com. [205.158.62.72], dsn=4.0.0, stat=Deferred: Connection timed out with iname-com-bk.mr.outblaze.com.
Aug 22 08:43:09 HelloKitty sendmail[30454]: h7M0N6e30243: to=violawong@iname.com, ctladdr=viola (503/503), delay=00:20:03, xdelay=00:10:01, mailer=esmtp, pri=120057, relay=iname-com-bk.mr.outblaze.com. [205.158.62.24], dsn=4.0.0, stat=Deferred: Connection timed out with iname-com-bk.mr.outblaze.com.
Aug 22 08:43:10 HelloKitty sendmail[30454]: h7M0Wj830371: to=violawong@iname.com, ctladdr=root (0/0), delay=00:10:25, xdelay=00:00:00, mailer=esmtp, pri=120079, relay=iname-com-bk.mr.outblaze.com., dsn=4.0.0, stat=Deferred: Connection timed out with iname-com-bk.mr.outblaze.com.
Aug 22 08:44:42 HelloKitty sendmail[30476]: h7LGYns28929: to=<violayywong@hotmail.com>, ctladdr=<viola@wongz.com> (503/503), delay=08:09:53, xdelay=00:10:00, mailer=esmtp, pri=754652, relay=mx2.hotmail.com. [65.54.252.230], dsn=4.0.0, stat=Deferred: Connection timed out with mx2.hotmail.com.

My mail server setting:
#host -t mx wongz.com
wongz.com mail is handled by 5 mail.wongz.com

On the DNS server, mail.wongz.com is point to wongz.com

I'm not sure if it's a problem with my hostname setting. My hostname was HelloKitty. It always give me the error message that this is an unqualified domain name. Therefore, I changed the hostname by doing the following:

Type "hostname mail.wongz.com"
changed the hostname in "/etc/hosts"
changed the hostname in "/etc/sysconfig/network"

I obtain my IP via dhcp. Is that all I need to do to change the hostname? After changing the hostname, I got the following results.

#hostname
mail.wongz.com

#domainname
(none)

Is the above correct?

Finally, I need to add my ISP domain name in access.db as a RELAY in order to send mail. Why is that the case? If I'm connecting to mail.wongz.com to send mail directly, it shouldn't be acting as a RELAY AGENT? Please kindly explain the functino of th relay.

many many thanks!
 
Old 08-21-2003, 08:56 PM   #2
harrygraham
Member
 
Registered: Apr 2001
Location: Ottawa, Canada
Distribution: Mint Cinnamon AMD64
Posts: 155

Rep: Reputation: 18
Exclamation A difficult lesson

The Sendmail program only sends mail. I have been through this exercise of trying to configure Sendmail for a dial-up ppp account and it is a little tricky. I'll bet the configuration file that you're using now is for networked computers that have real addresses. So when Sendmail sends out your messages it will look like it's coming from a phony address, so will be rejected by the other mail transfer programs out there on the Internet. The Sendmail.cf file has to be customized to make it work right.

Since the sendmail.cf file is very complicated they have graciously provided another program to generate this file but it's still not a cake-walk. You edit the sendmail.mc file instead.

In the end I just gave up. That's why I'm the oldest newbie on the list. Good luck to you.
 
Old 08-22-2003, 02:24 AM   #3
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 49
Please check whether your port 25 OUT is being blocked - either by your own firewall or by your ISP.

Try

# telnet <somemailserver> 25

This would help you understand what is going on.

If you get some response like

Connected to <somemailserver>
Escape character is '^]'.
220 blah blah...

this means you are able to initiate connections to mailservers on port 25.
If you indeed get connected, you can type QUIT to terminate the connection.
 
Old 08-22-2003, 03:06 AM   #4
vittibaby
LQ Newbie
 
Registered: Aug 2003
Posts: 19

Original Poster
Rep: Reputation: 0
I can connect to port 25 no problem:

[root@mail root]# telnet wongz.com 25
Trying 218.102.127.104...
Connected to wongz.com.
Escape character is '^]'.
220 HelloKitty ESMTP Sendmail 8.11.6/8.11.6; Fri, 22 Aug 2003 16:09:36 +0800

I have also used it to send mail locally and that's no problem. Only problem is I can send mail to external email accounts on the net. Please help! Thanks!
 
Old 08-22-2003, 03:23 AM   #5
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 49
can you connect to, say

# telnet mx4.hotmail.com 25

for example
 
Old 08-22-2003, 03:49 AM   #6
vittibaby
LQ Newbie
 
Registered: Aug 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Hi ppuru,

I cannot telnet to mx4.hotmail.com 25. Could it be a firewall issue on my Linux server? Could some filter be enabled by default? I'm running Red Hat 7.

Also, is my hostname setting correct? What do I need to do if I need to change the hostname?

Finally, could you please give me some tips on setting on the access file, ie. the RELAYS!

thanks a lot!
 
Old 08-22-2003, 04:25 AM   #7
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 49
Check whether you have any filters that are blocking the smtp traffic

check with

iptables -nvL

OR

ipchains -nL

To turn off the firewall (filters)

# service ipchains stop

OR

# service iptables stop

After stopping the firewall (not a good idea), you can try connecting to one of the external mail servers.
 
Old 08-22-2003, 09:23 AM   #8
harrygraham
Member
 
Registered: Apr 2001
Location: Ottawa, Canada
Distribution: Mint Cinnamon AMD64
Posts: 155

Rep: Reputation: 18
Exclamation Mail headers

Check out this HowTo

http://www.sendmail.org/~ca/email/offline_mailing.html

Last edited by harrygraham; 08-22-2003 at 09:32 AM.
 
Old 08-22-2003, 11:07 PM   #9
vittibaby
LQ Newbie
 
Registered: Aug 2003
Posts: 19

Original Poster
Rep: Reputation: 0
Hi ppuru,

I have tried turning off the ip filters but still can't connect to mx4.hotmail.com. I found out sth strange...

If I telnet to mx4.hotmail.com (default port 23), it connects to 65.54.253.230. However, if I telnet to port 25, it connects to a different IP... 65.54.254.151. Is this normal?

Any other suggestions?

Hi harrygraham,

Thanks for the doc, however, I'm not using dial up, but using DSL. I'm connected to the internet all the time. Thanks!

Vittibaby
 
Old 08-23-2003, 12:38 AM   #10
harrygraham
Member
 
Registered: Apr 2001
Location: Ottawa, Canada
Distribution: Mint Cinnamon AMD64
Posts: 155

Rep: Reputation: 18
Red face same problem

You may be connected to the Internet all the time, but unless you have a bona fide host name, your header files still need to be rewritten. Red Hat caters to the Big Boys who are using Sendmail to manage hundreds of E-mail accounts on a fully qualified domain. If your mail goes from your home computer looking like jsmith@localhost.localdomain then it won't get through. Sendmail is not an easy, intuitive program. It may be better to download the latest Mozilla Mail which will do the rewriting of the header files for you without all the reconfiguring. If Mozilla Mail works, then you will know that it's not your firewall, ports etc.

Harry
 
  


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 can send not receive abettertomorrow Slackware 6 01-22-2005 01:54 PM
Sendmail: Can receive but can't send. Hendon Linux - Networking 3 12-30-2004 09:41 AM
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
Sendmail allows receive but not send rob19 Linux - Software 8 06-17-2003 11:02 AM


All times are GMT -5. The time now is 10:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration