Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
$ 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
-------------------------------------------------------------------------------------------------------------------------------
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.