Koozali.org: home of the SME Server

E-mail Question, MX Record Confusion

Offline arnoldob

  • *
  • 183
  • +0/-0
E-mail Question, MX Record Confusion
« on: February 08, 2007, 04:06:26 PM »
I host 4 domains. I thought I should  get mail at admin@domain1.com and admin@domain2.com in the same admin inbox. I asked someone outside my network to send a message to admin on one of the virtual domains at it was bounced:

Code: [Select]
----- The following addresses had permanent fatal errors -----
<admin@politicalbloviation.com>
    (reason: 550 Relaying denied (#5.7.1))

   ----- Transcript of session follows -----
... while talking to www.bertoncini.net.:

>>>>>> DATA

<<< 550 Relaying denied (#5.7.1)
550 5.1.1 <admin@politicalbloviation.com>... User unknown
<<< 503 RCPT first


It appears to not recognize politicalbloviation.com as a virtual domain. SME is hosting a website on that domain. I thought this was supposed to work? Is there some configuration needed? I poked around in the forums, but didn't see a post about an outside sender getting the relaying denied sending inbound to SME, just outbound. Also why the unknown user message?

Thanks
Tampa, FL USA

Offline arnoldob

  • *
  • 183
  • +0/-0
E-mail Question, MX Record Confusion
« Reply #1 on: February 08, 2007, 04:19:59 PM »
Might this be related to:
http://bugs.contribs.org/show_bug.cgi?id=1290
??

In the first post it shows the foreign mailserver talking to www.bertoncini.net. My reading of the bugzilla item would seem to indicate that SME will not accept mail.domain.tld or www.domain.tld as vaild e-mail destinations. Is this correct?

The original message was addressed to admin@politicalbloviation.com, but I was thinking that the MX record for that domain goes to www.bertoncini.net which makes the mailserver reject it.
Tampa, FL USA

Offline arnoldob

  • *
  • 183
  • +0/-0
E-mail Question, MX Record Confusion
« Reply #2 on: February 08, 2007, 04:43:04 PM »
A quick modification of the MX record for politicalbloviation.com to change the CNAME record from www.bertoncini.net to bertoncini.net seems to have done the trick. I sent a test message to admin@politicalbloviation.com and it worked as designed.

I had the virtual domains CNAME'd to the primary domain to get the dynamic DNS from yi.org to work for the virtual domains. I've since switched to a static IP so I suppose it would be best to modify the DNS records for all my domains to point directly at the static address, it's less confusing. So I'll add an "A record" with wildcard for each virtual domain to the static IP. For the MX records for each domain, should they point to the static IP, domain.tld or mail.domain.tld?
Tampa, FL USA

Offline arnoldob

  • *
  • 183
  • +0/-0
E-mail Question, MX Record Confusion
« Reply #3 on: February 08, 2007, 06:56:50 PM »
I figured it out, I just pointed an A record with a wildcard for each of my virtual domains to the static IP and an MX record to domain name with a trailing period, i.e.,

politicalbloviation.com.

SME won't handle it with mail appended to any on the virtual domains, but it does work for the primary. I tested and all seems well, an e-mail to admin@politicalbloviation ends up in the admin user acct on SME as it should.
Tampa, FL USA