Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-15-2010, 11:46 AM   #1
LQ Newbie
Registered: Jan 2010
Posts: 16

Rep: Reputation: 1
Reading mail with sendmail 8.13.8 on RHEL 5.1

Hello, i have running sendmail 8.13 on my red hat enterprise linux 5.1, but i have a problem. I can send a mail from my line command terminal to hotmail, gmail, yahoo and any of these, but i can't send mail to my own domain (, when i wrote a mail i get a reply from MAILER-DAEMON@localhost.localdomain that says that the message had pemanent fatal errors and shows as user unknown the mail was suposed to recive the message. For example, if i send one mail from to the user2 does not recive any mail, but that does not happens if user1 sends a mail to any hotmail address or gmail or any other. Besides i also can't recive on my server any mail to or (for example) comming from gmail, so please tell me what do i do to get the mail.
Old 01-15-2010, 04:05 PM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,189
Blog Entries: 1

Rep: Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051

You have to add your domain in /etc/mail/local-host-names and restart sendmail, in order to send/receive mails locally to your domain.

If you want your mailserver to accept mail from outside (like, you have to make sure that it's listed as the MX record of your domain in the name server that is authoritative for your domain. Running
dig mx
should tell you the mailserver that accepts mail for your domain. You have to contact the admin of the authoritative name server to change the MX record of your domain, so it points to your mailserver.

Old 01-17-2010, 07:25 PM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,378

Rep: Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755Reputation: 2755
Also, on RHEL, the sendmail default is to only listen on localhost ie If you want to recv mail from other systems, you'll have to comment out the following
dnl DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl
line as shown (in /etc/mail/ ), then restart sendmail. iirc, it will recompile to at restart.
Old 01-17-2010, 07:58 PM   #4
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
It (may) happen because your firewall (probably a dedicated box, I am wrong?) don't like you using the internet as a gateway for your own network, it is a security issue and a "deny rule" in most firewall default settings. Some firewall have "NAT reflexion" capability to proxy "local internet" traffic indoor. Like that, it will not be blocked, just forwarded.

I may be wrong, but if it work, it is better than an hidden config line in a deep server that nobody will remember tomorrow.


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
How to make Sendmail forward all incoming mail to localhost port 26 (Domino mail) speedgelb Linux - Software 3 09-27-2013 10:18 AM
RHEL-5 and Fedora related sendmail mail server sanjee Linux - Server 3 09-24-2009 11:16 PM
mail not reading file???? koutsane Linux - Software 1 07-18-2007 08:08 PM
Import Mail from /var/spool/mail (sendmail) to a MailDir Format in Postfix shawnbishop Linux - Software 0 04-06-2006 10:44 AM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:48 AM.

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