Mail Server Basics
Mail Server common knowledge
Term | Description |
---|---|
Domain name | As the unique identifier of an email server, the domain name is used to identify one or more IP addresses. For example: aapanel.com . |
MX record (Mail Exchange) | The MX record specifies the domain name of the mail server responsible for receiving email delivery. The sending mail server uses the MX record to determine the route of the email. For example, the MX record of aapanel.com points to mail.aapanel.com . |
A record | The A record maps a domain name to an IPv4 address. It specifies the server IP address associated with the domain. For instance, the A record of mail.aapanel.com points to 1.2.3.4 . |
SPF (Sender Policy Framework) | SPF is a mechanism to verify if the sender is authorized to send emails. By setting up SPF records in DNS, it specifies which IP addresses are allowed to send emails for a specific domain . |
DKIM (DomainKeys Identified Mail) | DKIM is an email authentication mechanism that ensures the integrity and authenticity of emails through digital signatures. Receiving mail servers use DKIM to verify the source of the email . |
DMARC (Domain-based Message Authentication, Reporting, and Conformance) | DMARC combines SPF and DKIM, providing a mechanism to authenticate the source of emails and specifying how receiving mail servers should handle emails that fail authentication . |
PTR record (Pointer) | The PTR record is used for reverse DNS lookup of IP addresses to domain . It helps verify the identity of mail servers, ensuring that their IP address matches the domain name. Generally set up at the network provider or server provider . |
SMTP (Simple Mail Transfer Protocol) | The protocol used for sending emails, typically using 25 port (unencrypted) or 587 port (encrypted with STARTTLS). |
25 Port | 25 : Primarily used for SMTP transmission. |
587 Port | 587 : Used for secure email sending (SMTP with STARTTLS ), recommended for client-to-server connections. |
465 Port | 465 : Used for SMTPS (SMTP over SSL). |
110 Port | 110 : Used for the POP3 protocol, receiving emails over an unencrypted connection. |
995 Port | 995 : Used for POP3S (POP3 over SSL), an encrypted email receiving connection. |
143 Port | 143 : Used for the IMAP protocol, receiving emails over an unencrypted connection. |
993 Port | 993 : Used for IMAPS (IMAP over SSL), an encrypted email receiving connection. |
Email Clients | Such as Outlook , Thunderbird , etc., used for sending and receiving emails. |
Example
Domain name:
aapanel.com
MX record:
aapanel.com MX 10 mail.aapanel.com
A record:
mail.aapanel.com A 1.2.3.4
SPF record:
aapanel.com TXT "v=spf1 +a +mx +ip4:1.2.3.4 -all"
DKIM record:
default TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqBgQC..."
DMARC record:
_dmarc TXT "v=DMARC1; p=reject; rua=mailto:admin@aapanel.com"
PTR record:
4.3.2.1.in-addr.arpa. PTR mail.aapanel.com
PTR record: Generally set up at the
network provider
orserver provider
.