My qmail smtp server successfully receives mail from domain.com. It can't receive mail from sub.domain.com which is expected behaviour, since that subdomain does not exist in DNS system. But I have a need to receive mails from that specific domain! How to tell qmail to not to reject mails from that specific domain? I've already tried with /etc/hosts, it didn't work.

link|improve this question

75% accept rate
What do you mean you cannot receive email? Someone from outside is sending email with address of the form mail@sub.domain.com the Qmail is rejecting to deliver it locally ? – thanosk Feb 8 at 12:30
That's right... "Someone from outside" is nagios on a server with a hostname sub.domain.com – Boban P. Feb 8 at 12:38
Well it all depends what kinds of checks you have when receiving emails from other domains. The usual ones are that it has a reverse DNS record, it has a valid SPF, it is not on some blacklist if you are using those.. Just to make clear. Nagios is sending from xyz@sub.domain.com to an email xyc@domain2.com where domain2.com is served by your QMail server. – thanosk Feb 8 at 13:02
Exactly. I think that checking reverse DNS issue here, but I don't know where to exclude this domain before that check is done. I now that postfix can do that, but I'm not so familiar with qmail. – Boban P. Feb 8 at 13:36
To be frank I don't think you can exclude it. Much much easier just to add a reverse DNS entry for that other server. – thanosk Feb 8 at 16:29
show 2 more comments
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.