Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Dec 16, 2007 6:02 pm 
Offline
Senior Newbie

Joined: Thu Sep 06, 2007 3:22 pm
Posts: 11
Hi

I have had my linode up for a while now (http://www.engoi.com), and mail works fine for *most* destinations. I use postfix, and I used pretty much the default "internet" install.

Each week though I get a few of these in my logs:

<snip>
mxlibero1.libero.it[212.52.84.83] said: 553 Domain of sender address <daniel@engoi.com> does not exist. For further information contact your provider. If you are the provider, mailto:support@postmaster.libero.it?subject=Code 553 (in reply to MAIL FROM command))
</snip>


But (from a completely different machine):

daniel@roomatthetop:~$ dig -t MX engoi.com

; <<>> DiG 9.4.1-P1 <<>> -t MX engoi.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50953
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;engoi.com. IN MX

;; ANSWER SECTION:
engoi.com. 84087 IN MX 10 mail.engoi.com.

;; Query time: 9 msec
;; SERVER: 195.238.2.21#53(195.238.2.21)
;; WHEN: Sun Dec 16 22:56:42 2007
;; MSG SIZE rcvd: 48

Does anyone here have any clue as to what the problem might be, and how I might go about fixing it?

By the way, I don't actually know even *how* I have an MX record. All I have done to set up DNS for this site has been to point the DNS servers where I bought the domain to ns1.linode.com and ns2.linode.com ... after that, everything just seemed to work. (Yes, I agree that that might not *quite* be enough ... :-)

Daniel


Top
   
 Post subject:
PostPosted: Sun Dec 16, 2007 6:21 pm 
Offline
Senior Newbie

Joined: Thu Sep 06, 2007 3:22 pm
Posts: 11
Hmmmm, it all comes back. I took a look at my DNS setup in the linode config panel, and setup reverse DNS for engoi.com. I just did a retry but I get the same result. Maybe rDNS takes a few hours to work, or maybe that isn't the problem.

I have tried emailing the destination support address, but who knows if or when I'll get a response.


Top
   
 Post subject:
PostPosted: Sun Dec 16, 2007 6:50 pm 
Offline
Junior Member

Joined: Fri Sep 12, 2003 10:10 am
Posts: 33
engoi.com has an MX entry of mail.engoi.com, that's great!

However, mail.engoi.com does not resolve to anything. Perhaps you should fix that :)


Top
   
 Post subject:
PostPosted: Mon Dec 17, 2007 4:01 am 
Offline
Senior Newbie

Joined: Thu Sep 06, 2007 3:22 pm
Posts: 11
thanks Aaron.

At the moment, in my DNS manager I have one MX record :

mail.engoi.com

and A/AAAA records for

engoi.com
www.engoi.com

and so on

I thought the MX was enough - does mail.engoi.com need it's own A record? Can you explain what's going on?

Many thanks!


Top
   
 Post subject: Yes it does.
PostPosted: Mon Dec 17, 2007 4:15 am 
Offline
Linode Staff
User avatar

Joined: Sat Jun 21, 2003 2:21 pm
Posts: 160
Location: Absecon, NJ
Yes, the address you specify for the MX needs to resolve to an IP address. Also, some sites check that forward and reverse DNS match on an MX record. Assuming the forward and reverse of your IP match, you can just point the MX at that name and you should be fine.

Don't forget that the default TTL for Linode's DNS Manager is one day, so sites which have your DNS cached may take up to a day to pick up your changes.

--James


Edit:
If you need some help, hit me up on IRC.


Top
   
 Post subject:
PostPosted: Mon Dec 17, 2007 5:14 pm 
Offline
Senior Newbie

Joined: Thu Sep 06, 2007 3:22 pm
Posts: 11
thanks guys. I needed to read up on DNS a bit ... but I think I have it covered now.

MX = mail
A = IP

duh (ice cream => forehead)

8)


Top
   
 Post subject:
PostPosted: Mon Dec 17, 2007 5:20 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
danmcb wrote:
thanks guys. I needed to read up on DNS a bit ... but I think I have it covered now.

MX = mail
A = IP

duh (ice cream => forehead)

8)


Not quite. An "MX" record means "send mail for this address to machine blah". You also need to tell people what the address is for "blah" and that's why you need an A record.

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject: Re: Yes it does.
PostPosted: Mon Dec 17, 2007 5:25 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
irgeek wrote:
Yes, the address you specify for the MX needs to resolve to an IP address. Also, some sites check that forward and reverse DNS match on an MX record. Assuming the forward and reverse of your IP match, you can just point the MX at that name and you should be fine.


Then those sites are broken. MX records can only point to A records (not CNAMEs) and so will frequently not match the relevant PTR record.

For incoming messages checking the IP address matches forwards and backwards is fine (so if I send from 1.2.3.4 and the PTR for that is blahblah.example.invalid then the A records for blahblah.example.invalid must include 1.2.3.4), but for outgoing messages? No, that's wrong.

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
 Post subject: Re: Yes it does.
PostPosted: Thu Dec 20, 2007 6:13 pm 
Offline

Joined: Thu Dec 20, 2007 4:51 pm
Posts: 1
AOL: toba82irc
I had a related problem, which I think may be relevant to users here.

RFC974 wrote:
There is one other special case. If the response contains an answer
which is a CNAME RR, it indicates that REMOTE is actually an alias
for some other domain name. The query should be repeated with the
canonical domain name.


Let's say that I was trying to recieve email on user@sub.example.com.

The remote mailserver was lookup up sub.example.com, and as I had CNAMED it to example.com, the remote mailserver was eventually checking hte MX record on example.com and then trying to deliver the email to user@example.com.

Now, I have this setup, which seems to work:

Code:
A
example.com          ip
sub.example.com      ip

CNAME
imap                 example.com
smtp                 example.com

MX
10  example.com      smtp.example.com
10  sub.example.com  smtp.example.com


Have I done anything wrong here that could result in misdirected mail?

_________________
The final word in stapler upholstery.


Top
   
 Post subject:
PostPosted: Thu Dec 20, 2007 7:14 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Yes, smtp.example.com should be an A record pointing to an IP address.

It may seem to work as is, but there will be people who mysteriously won't be able to send you mail, and it won't be their fault.


Top
   
 Post subject:
PostPosted: Fri Dec 21, 2007 11:24 am 
Offline
Senior Member

Joined: Sat Jun 05, 2004 12:49 am
Posts: 333
http://member.dnsstuff.com/pages/dnsreport.php

;)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group