LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-24-2009, 07:48 PM   #1
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Rep: Reputation: 17
Mails are being received on host.domain.com but not on domain.com


Hello Fellows,

Few months ago, I did setup a mail server and I faced a problem.
Simply, I could receive emails sent to xxx@hostname.website.com but I couldn't get them when they are pointed to xxx@website.com.
After long googling (several days) I could solve that problem.
(Then why you are here?)

Alright, the same problem is going on, but on another setup, another box.
And, to be honest, I'd like to be pointed to where should I look to solve this out, so I can solve it quickly if I faced it any time in the future.

====== The System ======
  • Slackware - current.
  • mailx-12.4-i486-1
  • sendmail-8.14.3-i486-2
  • sendmail-cf-8.14.3-noarch-2
  • procmail-3.22-i486-2
  • popa3d-1.0.2-i486-2
  • bind-9.4.3_P3-i486-1

And question is welcome
Thanks in advance..
 
Old 11-24-2009, 08:14 PM   #2
JivanAmara
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Rep: Reputation: 1
The first two things to check...

...are your DNS setup, and your mail server's setup. For the problem you describe, it could reside in either, but is most likely in the second. Find the documentation for your mail server and read how to set up different domains.
 
Old 11-24-2009, 11:45 PM   #3
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by JivanAmara View Post
Find the documentation for your mail server and read how to set up different domains.
It's only one domain..


By the way, when I send to root@domain.com, I get bounce message:

<root@domain.com>: host mail.domain.com[xx.xx.xx.xx] said: 550 5.7.1
<root@domain.com>... Relaying denied. IP name possibly forged
[zz.zz.zz.zz] (in reply to RCPT TO command)

While, I don't get it and I receive the mail when I send to root@mail.domain.com

Regards..
 
Old 11-25-2009, 03:48 PM   #4
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Original Poster
Rep: Reputation: 17
Any suggestions?

 
Old 11-26-2009, 04:40 AM   #5
910
LQ Newbie
 
Registered: Aug 2009
Posts: 9

Rep: Reputation: 1
Quote:
Originally Posted by WhisperiN View Post
It's only one domain..
Well, not really. Your mail server is probably set to only accept mail destined to (sub)domain mail.domain.com. What you need to do is configure it to receive mail destined to domain.com as well.

I'm not sure exactly how to do this in sendmail but if I recall correctly, you need to add the line "domain.com" to local-host-names file.

You're getting the error message because your server doesn't understand it is supposed to accept mail to domain.com. It's trying to relay the message to a domain it considers external and relaying is denied by default.
 
Old 11-26-2009, 10:59 PM   #6
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by 910 View Post
I'm not sure exactly how to do this in sendmail but if I recall correctly, you need to add the line "domain.com" to local-host-names file.
Well, Bingo on you..!!

In fact, I was heading to mark this topic as [SOLVED] after I was finally able to solve it..!! and so I found your reply..

Yup, that was the sort-out for that problem..
Lol, how easy but affective..

Thanks Buddy
 
  


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
change domain name of mails uks Linux - Server 3 03-19-2009 08:31 AM
DHCPD is updating BIND with <host>.<domain>.<domain>. diabelek Linux - Networking 15 10-11-2007 05:58 AM
Allow only local domain mails reject other mails sikkalgopal Linux - Server 0 04-03-2007 12:51 AM
Virtual host www.domain.com work, domain.com don't work stormrider_may Linux - Networking 4 05-03-2006 09:52 PM
Sendmail sending as host.domain.com, i want it to be from just domain.com. PlatinumRik Linux - Software 5 10-07-2004 04:32 PM


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