LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-10-2004, 05:03 PM   #1
Airwaves
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Rep: Reputation: 0
Howto setup MX record


Hi,


I have Postfix running on my LAN en I can send mail to the world.
But can't receive mail.

At the controlpanel of the company (not my ISP) who registerd my domain, I can setup MX and A records. What should my MX record be like?

My domain is: trango.nl. The name of my mailserver is: webserver (yeh I know...)

Should my mx record be: webserver.trango.nl?

Next: I can give the MX record some kind of ID. The default was number 5. What should I do with it? What is it's function?


Last thing: If I should change the MX record, should I change the main.cf ?

It is set to receive from trango.nl, 127.0.0.0/8


Cant figure it out.

Thanks Edwin.

Last edited by Airwaves; 12-10-2004 at 05:05 PM.
 
Old 12-10-2004, 05:16 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
MX records come in a form similar to this:
Code:
@               IN      MX      10      mail
The hostname is the last field, and in your case will be webserver.trango.nl. the number is the MX priority, and the lower numbers hove higher priority. In other words, if you have 2 MXs, one with 20 and one with 10, servers trying to send you mail will use 10 first and 20 second.

Lastly, yes, you will need to tell postfix what domain it's should receive mail for.

HTH
 
Old 12-11-2004, 06:05 AM   #3
Airwaves
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Original Poster
Rep: Reputation: 0
How can I test the inbound mail?

If I send a mail (from outsite my domain) Nothing happends. No change in /var/log/messages

Ans should I fil-in the mx record "webserver" or webserver.trango.nl ?


Edwin.
 
Old 12-11-2004, 09:31 AM   #4
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Gotta get the zone right first:
Code:
$ dig @orwell trango.nl MX
;; QUESTION SECTION:
;trango.nl.                     IN      MX

;; ANSWER SECTION:
trango.nl.              38312   IN      MX      7 webserver.trango.nl.
trango.nl.              38312   IN      MX      5 webserver.trango.nl.trango.nl.
trango.nl.              38312   IN      MX      6 trango.nl.trango.nl.
the MX with priority 7 is the only correct one (as you can see). I'm not sure what you have to put in your file without seeing all of it. As for how to check it, send mail from outside and look (most likely) in /var/log/maillog

Last edited by sigsegv; 12-11-2004 at 09:37 AM.
 
Old 12-12-2004, 08:58 AM   #5
Airwaves
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Original Poster
Rep: Reputation: 0
This is what my config looks like.

-------------------------------------------------------------------------------------------------------------------------------
Domainname: trango.nl
ID Record Type Info Target Change Remove
0 SOA 1086949294
6 @ MX (Mail eXchange) 5 webserver.trango.nl
7 www A (Address) 62.166.80.247
8 localhost A (Address) 127.0.0.1
9 mail A (Address) 62.166.80.247
10 @ MX (Mail eXchange) 6 trango.nl
11 @ MX (Mail eXchange) 7 webserver


Add Record
Record name:
Record type: A (Address) MX (Mail eXchange)CNAME (Canonical Name)AAAA (IPv6 Address)TXT (Text)
Info (MX only):
Target:


DNS/Domain Tools

-------------------------------------------------------------------------------------------------------------------------------
I removed record 6 and 10. What should I do with the other records?
 
Old 12-13-2004, 05:35 AM   #6
cidrolin
Member
 
Registered: Jul 2004
Distribution: Fedora c2
Posts: 89

Rep: Reputation: 15
fyi :

@ IN MX 10 name

when you create a record in a DNS zone, what is expected as _name_ is either a machine name (without any indication of domain) or a FQDN (fully qualified domain name) starting with az machine name and going all the way to the "." (dot) which is the root of the domain names system (above the TLD like .nl).

if you specify a name that does not end with a dot, the name server fills in with the zone name it is authority for, to get a FQDN : this explains why you get two ill-configured name and why the entry "webserver" is the only correct one.

Now to your problem : it seems the machine "webserver" is *not* defined; instead "mail" and "www" point to the ip address. So I think what you should have as mail exchanger line is either

@ MX 10 (or whatever) mail
or :
@ MX 10 www

Also, it is not very clean to have two "A" records on the same IP, usually one defines one A records and the other pointers are declared CNAME (aliases); this is controversial though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MX record setup at hn.org alfNtexas Linux - Networking 2 10-08-2005 10:19 PM
Unable to record mic-in with SoundBlaster Live! while able to record other sources max76230 Linux - Newbie 2 03-14-2005 04:31 AM
howto add filename to each record? kscott121 Programming 4 09-14-2004 10:13 AM
MX record howto setup kafnir Linux - Networking 3 06-16-2004 08:58 AM
Howto record streaming audio to hdd mohapi Linux - General 1 04-14-2004 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration