Mail Server on Ubuntu with Postfix Dovecot MariaDB – P1 – Create Essential Records for Mail Server
Mail Server on Ubuntu with Postfix Dovecot MariaDB – P1 – Create Essential Records for Mail Server
📌 Try Vultr, Get $100 Credit free : https://www.vultr.com/?ref=8372740-6G
📌 In this series : Mail Server on Ubuntu with Postfix Dovecot MariaDB/MySQL
👉 Part 1 : Create Essential Records for Mail Server : https://youtu.be/7HJVPDz9MSk
👉 Part 2 : Create Database for Mail Server : updating
👉 Part 3 : Install and Configure Postfix : updating
👉 Part 4 : Install and Configre Dovecot : updating
👉 Part 5 : Install and Configure SSL/TLS secure for Mail Server : updating
👉 Part 6 : Install and Configure RoundCube WebMail : updating
👉 Part 7 : Install and Configure OpenDKIM for Mail Server : updating
👉 Part 8 : Install and Integrate SpamAssassin in Postfix : updating
👉 Part 9 : Install and Integrate Amavisd in Postfix : updating
👉 Part 10 : Monitoring Mail Server with MailGraph : updating
👉 Part 11 : How to Block Attach File in Postfix : updating
📌 Other tutorials :
👉 How to Change Hostname and FQDN on Ubuntu : https://youtu.be/7OGTAKqaB_s
📌 Essential Records for Mail Server
✅ A Record
An “A” record maps a name to an address. You will first need an A record for your mailserver.
Your static IP address from your ISP was the first step, of course.
For example, you might log into the web portal for the example.com domain and create an “A” record for “mail” for 192.0.2.21.
This would create a mail.example.com published on the Internet. However, mailservers still wouldn’t know that this is where to send mail.
✅ MX Record
Your MX record tells other mailservers the name of the server on the Internet to send mail to for your domain.
It is a free text field, because it could have any name, including a name that is not part of your domain such as a name of a server from a mail hosting provider or a mail spam filter for example.
If you have the Kerio Connect server with A record mail.example.com, you will need to create an MX record that just says “mail.example.com” as its value.
✅ PTR Record
The PTR record is a reverse lookup which maps the IP address to the name.
Some mailservers will not trust mail coming from your server unless they can do a reverse DNS lookup. This takes two possible forms.
Most mailservers care that a PTR record exists at all.
Strict mailservers do a forward lookup on the name your mailserver introduces itself as such as mail.example.com, verify it is the IP address that is read off the connection, and do a PTR lookup on that IP address to see if it resolves to the same name.
✅ SPF Record
SPF gives other mailservers a way to verify that mail claiming to be from your domain is from one of your IP addresses.
They do this by checking a special TXT record you put in your DNS records. It is an interesting way to prevent mail spoofing.
✅ DMARC Record
DMARC, which stands for Domain-based Message Authentication, Reporting, and Conformance, is a DNS TXT Record that can be published for a domain to control what happens if a message fails authentication (i.e. the recipient server can’t verify that the message’s sender is who they say they are).
A published DMARC record basically serves two purposes:
Tell the recipient server to either: Quarantine the message or Reject the message or Allow the message to continue delivery
Sends reports to an email address or addresses with data about all the messages seen from the domain
ip address