LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-15-2010, 11:46 AM   #1
Rocktron
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 (mydomain.com), 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 user1@mydomain.com to user2@mydomain.com 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 user1@mydomain.com or user2@mydomain.com (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
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Hi,

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 gmail.com), 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
Code:
dig mx mydomain.com
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.

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

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Also, on RHEL, the sendmail default is to only listen on localhost ie 127.0.0.1. If you want to recv mail from other systems, you'll have to comment out the following
Quote:
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
line as shown (in /etc/mail/sendmail.mc ), then restart sendmail. iirc, it will recompile to sendmail.cf at restart.
 
Old 01-17-2010, 07:58 PM   #4
Elv13
Member
 
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.
 
  


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
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 sendmail.cf 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:13 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