ANS Documentation

Improve This Doc
  • Cloud
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
  • Security
  • Email
    • Basics of mail
    • Legitimate Mail Being Blocked
    • What to do if your emails get listed
    • EXIM mail transfer agent
    • hMailServer - Anti-spam Setup
    • Postfix mail transfer agent
    • DomainKeys Identified Mail (DKIM) on Web Host Manager/cPanel or Plesk
    • Sender Policy Framework (SPF) records
    • Testing Mail
  • Monitoring and usage management
  • Networking
  • Operating systems
  • Webcelerator
  • MyUKFast
  • Home >
  • Email >
  • Basics of mail

Basics of mail¶

Mail is complicated and requires careful attention during set up to get right. Getting it wrong can mean lots of pain in the future. The aim of this guide is to provide you an overview of how to set up your mail server the right way.

Requirements¶

A mail server requires you to setup DNS records for other mail servers to interact with, to verify that your mail server is sending mail legitimately from your domain (otherwise anyone could send mail on your “behalf” by spoofing your email addresses).

A mail server requires the following types of records:

  • A

  • MX

  • rDNS

  • SPF (TXT)

DNS Explained¶

Type

Description

Example

A

Points a domain to an IP

mail.ukfast.co.uk -> 37.220.91.195

MX

Points mail servers to the correct A record which receives mail

ukfast.co.uk -> mail.ukfast.co.uk

rDNS

Points an IP to a corresponding A record

37.220.91.195 -> mail.ukfast.co.uk

SPF (TXT)

Tells mail servers which IP addresses they should expect mail to arrive from

v=spf1 mx a ~all

In the above examples you would be able to send an email to example@ukfast.co.uk because there is an MX records in place for the domain. Here’s how it works:

  1. The MX record points to the A record mail.ukfast.co.uk, which points to the IP 37.220.91.195.

  2. The IP 37.220.91.195 has a reverse DNS of mail.ukfast.co.uk, which some mail servers will check as part of their spam checks. On top of this, most mail servers will do SPF checks.

  3. The example v=spf1 mx a ~all specifies that any IP with the A or MX record of ukfast.co.uk is allowed to send mail.

Note

We have not set an A record for ukfast.co.uk but mail.ukfast.co.uk in the examples, therefore the a option is redundant here.

From a mail client you would use the A record you have set up to connect, so in this example you would connect to mail.ukfast.co.uk

If you wanted to use an external service provider to send mail also, you would need to add the IP range of that mail service, usually they will provide a single DNS record or IP range for you to include. It is recommended that you consult your service provider’s documentation for this purpose, as it will differ by provider.

You will also need to setup a hostname for the server which matches the reverse DNS. In our example this would be mail.ukfast.co.uk. Learn how to change your hostname.

Sending mail to Microsoft/Hotmail/Office365¶

Microsoft mail servers are a little different to other providers. They operate their own private blocklists and greylists, so if you want to send mail to these domains, you should make sure to follow the steps here in order to make sure your IP is allowed by Microsoft. If not, you may find your mail sent to spam. This is described as a greylist.

In terms of preparing for getting your IP allowed by Microsoft, you must follow the steps outlined above. The two important factors are setting up SPF records and having a hostname on the server resolve to the rDNS for the IP sending mail from that server.

Once done, the first step is to sign up to the JMRP and SNDS services which are provided by Microsoft for email postmasters:

  • SNDS

  • JMRP

You should also submit an outlook.com sender information form.

Once you have completed those steps you will need to email Microsoft at delist@messaging.microsoft.com requesting them to delist your IP (or range). Office365 also has a delist page here.

The process can take up to a week, however it is usually completed in under 24 hours.

Next Article > Legitimate Mail Being Blocked

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ