Check your DNS Settings
A DNS server takes care of translating domain names to ip addresses. In order to receive mail using Jsmtpd, you need to setup your DNS Server. It can be provided by your company, or hosting service where you bought your domain name, or whatever. Special DNS entries are used to indicate the mail servers, called mail exchangers (MX records). A DNS service can provide mutltiple MX records, ordered by priority to setup multiple mail server (smpt).
Nslookup
Under win32 or unixes platforms, your system provides a command line tool nslookup. This tool can manually query a DNS server to check domain to ip addresses. To check your settings, first start the nslookup utility
nslookup
and press return. A ">" character indicates you'r in the nslookup shell. Tell it we're interested in mx records, by typing :
>set q=MX
Then, ask for your domain name. It this example, we're querying the domain jsmtpd.org :
>jsmtpd.org
The response looks like :
Non-authoritative answer: jsmtpd.org mail exchanger = 1 taldius.jsmtpd.org. jsmtpd.org mail exchanger = 5 smtp-back.jsmtpd.org. Authoritative answers can be found from: jsmtpd.org nameserver = ns.ovh.net. jsmtpd.org nameserver = dns.ovh.net. taldius.jsmtpd.org internet address = 62.212.97.80 smtp-back.jsmtpd.org internet address = 62.212.97.80 ns.ovh.net internet address = 212.27.32.132 dns.ovh.net internet address = 213.186.33.102
You can see that the domain has two mail exchangers : taldius.jsmtpd.org (main, priority=1) and smtp-back.jsmtpd.org (secondary, priority=5). Aditionnaly, the nslookup utility converted theses two names to ip addresses : taldius.jsmtpd.org internet address = 62.212.97.80.
To receive mail, your domain should have at least one mail exchanger set, and the dns server must be able to convert the mail exchanger's name to an ip address.
Links
A commonly used DNS server, bind
