?
Solved

DNS MX records (need seperate sub domain MX record to route mail differently)

Posted on 2007-07-27
7
Medium Priority
?
7,179 Views
Last Modified: 2013-12-06
I'm having trouble configuring my DNS MX records...

I'm using google aps for the primary mail and have all of their MX records added per their specification and that works fine.

However, I have mailman mailing lists on my server under this same domain, and I need mail sent to the lists to still go to the server and get processed by mailman.

What I did was create an additional A record for mx.domain.com that points to the server IP.
Then I created a new MX record for mx.domain.com that points to domain.com.

The other google MX records are all for domain.com and point to the google mail servers.

So, when I send mail to whatever@mx.domain.com I'm getting this error:
   ----- The following addresses had permanent fatal errors -----
<whatever@mx.domain.com>
    (reason: 553 sorry, that domain isn't in my list of allowed rcpthosts; no valid cert for gatewaying (#5.7.1))

   ----- Transcript of session follows -----
... while talking to domain.com.:
>>> DATA
<<< 553 sorry, that domain isn't in my list of allowed rcpthosts; no valid cert for gatewaying (#5.7.1)
550 5.1.1 <whatever@mx.domain.com>... User unknown
<<< 503 RCPT first (#5.5.1)

Am I going about this the right way or is there another way...  I need some way to differentiate my list mail from normal mail and I was thinking an additional mx record that uses a subdomain that doesn't go to google would work... Maybe I was wrong... ???

I'm running on a FC 9 server with qmail and managing DNS via Plesk.
0
Comment
Question by:jasonsbytes
  • 4
  • 3
7 Comments
 
LVL 9

Accepted Solution

by:
nightmare2 earned 1000 total points
ID: 19585607
Obviously the problem is not your MX record but your qmail configuration.
Just add your mx.domain.com in the rcpthosts.
Read this article: http://www.palomine.net/qmail/relaying.html
0
 
LVL 17

Author Comment

by:jasonsbytes
ID: 19585909
hi, thanks for the reply.  I actually had found something on that and already did that, and it did eliminate the error message, but now I get a NEW error message...  I think this one actually is an DNS issue:

------------------------------------------------------------------------------------------------
Hi. This is the qmail-send program at ip-xxx-xxx-xxx-xx.ip.secureserver.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<whatever@mx.domain.com>:
Sorry. Although I'm listed as a best-preference MX or A for that host,
it isn't in my control/locals file, so I don't treat it as local. (#5.4.6)
0
 
LVL 17

Author Comment

by:jasonsbytes
ID: 19585930
hmm, in another attempt, I also got this failure message:

<whatever@mx.domain.com>:
xxx.xxx.xxx.xx failed after I sent the message.
Remote host said: 554 too many hops, this message is looping (#5.4.6)
0
 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

 
LVL 17

Author Comment

by:jasonsbytes
ID: 19585993
I added mx.domain.com to /var/qmail/control/locals

now I just get this (no explaination):
Hi. This is the qmail-send program at ip-xxx-xxx-xxx-xx.ip.secureserver.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<whatever@mx.domain.com>:

and the qmail log:
in.com/"
Jul 28 15:31:47 ip-xxx-xxx-xxx-xx qmail: 1185654707.820073 new msg 7798953
Jul 28 15:31:47 ip-xxx-xxx-xxx-xx qmail: 1185654707.820161 info msg 7798953: bytes 1560 from <me@someotherdomain.com> qp 21482 uid 2020
Jul 28 15:31:47 ip-xxx-xxx-xxx-xx qmail: 1185654707.829706 starting delivery 10: msg 7798953 to local emotivenewsletter@mx.emotivefitness.com
Jul 28 15:31:47 ip-xxx-xxx-xxx-xx qmail: 1185654707.829773 status: local 1/10 remote 0/20
Jul 28 15:31:47 ip-xxx-xxx-xxx-xx qmail: 1185654707.848209 delivery 10: failure:
Jul 28 15:31:47 ip-xxx-xxx-xxx-xx qmail: 1185654707.848288 status: local 0/10 remote 0/20
Jul 28 15:31:47 ip-xxx-xxx-xxx-xx qmail: 1185654707.931526 bounce msg 7798953 qp 21485
Jul 28 15:31:47 ip-xxx-xxx-xxx-xx qmail: 1185654707.931605 end msg 7798953
Jul 28 15:31:47 ip-xxx-xxx-xxx-xx qmail: 1185654707.932741 new msg 7800210
Jul 28 15:31:47 ip-xxx-xxx-xxx-xx qmail: 1185654707.932802 info msg 7800210: bytes 2118 from <> qp 21487 uid 2522
Jul 28 15:31:47 ip-xxx-xxx-xxx-xx qmail: 1185654707.941596 starting delivery 11: msg 7800210 to remote me@someotherdomain.com
Jul 28 15:31:47 ip-xxx-xxx-xxx-xx qmail: 1185654707.941657 status: local 0/10 remote 1/20
0
 
LVL 9

Expert Comment

by:nightmare2
ID: 19586154
I'm lost there.
The question was about DNS and it seems to be set up correctly.
I found this tutorial about qmail / mailman to which you might want to have a look: http://www.kroon.co.za/howto.php?howto=qmail_mailman
0
 
LVL 17

Author Comment

by:jasonsbytes
ID: 19586302
Thanks for your help... I've decided to try a different route...  I"m going to have my server handle all mail and then relay everything that should go to the other mail host...  Of course that isn't working either, so I've posted a related question here:

http://www.experts-exchange.com/OS/Linux/Distributions/Fedora/Q_22726744.html
0
 
LVL 9

Expert Comment

by:nightmare2
ID: 19586304
Ok. Good luck ;)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question