LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Mails are being received on host.domain.com but not on domain.com (http://www.linuxquestions.org/questions/linux-server-73/mails-are-being-received-on-host-domain-com-but-not-on-domain-com-771344/)

WhisperiN 11-24-2009 07:48 PM

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

JivanAmara 11-24-2009 08:14 PM

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.

WhisperiN 11-24-2009 11:45 PM

Quote:

Originally Posted by JivanAmara (Post 3768584)
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..

WhisperiN 11-25-2009 03:48 PM

Any suggestions?

:)

910 11-26-2009 04:40 AM

Quote:

Originally Posted by WhisperiN (Post 3768751)
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.

WhisperiN 11-26-2009 10:59 PM

Quote:

Originally Posted by 910 (Post 3770172)
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 :)


All times are GMT -5. The time now is 01:43 AM.