====== Mail Administration ======
See also:
* [[.:autodiscover|automatic discovery]] of mail server settings for clients
===== DNS =====
see also: [[..:dns|DNS]]
==== SPF ====
Allow server in A record, allow server in MX record, disallow all others.
v=spf1 +a +mx -all
==== DKIM ====
==== DMARC ====
=== example ===
put into TXT record ''_dmarc.example.com'':
v=DMARC1; p=none; rua=mailto:postmaster@example.com; ruf=mailto:postmaster@example.com;
=== Tools ===
https://dmarcian.com/dmarc-tools/
===== Servers =====
==== Postfix (MTA) ====
^ echo mail queue | mailq |
^ read mail | postcat -q MESSAGE_ID |
^ delete delayed mails | postsuper -d ALL deferred |
^ delete queue | postsuper -d ALL |
more information: [[https://rtcamp.com/tutorials/mail/postfix-queue/|Postfix Queue Management]]
==== exim4 (MTA) ====
^ echo mail queue | ''exim -bp\\ mailq'' |
^ delete frozen mails | ''exiqgrep -iz|xargs exim -Mrm'' |
==== Dovecot (LDA) ====
===== Postmaster =====
^ Outlook | [[https://postmaster.outlook.com|postmaster.outlook.com]] |
^ Google | [[https://postmaster.google.com|Google Postmaster Tools]] |
===== Spam detection =====
==== Office 365 / Outlook.com / Hotmail ====
Office Blacklist: https://sender.office.com/
Outlook.com anti-spam mechanisms: https://sendersupport.olc.protection.outlook.com/pm/services.aspx
SNDS: https://sendersupport.olc.protection.outlook.com/snds/index.aspx
If you send through an SMTP Smart Relay through Office 365, you might need to include the IP address you're sending **from** (not only the Microsoft servers, but your own SMTP server) in the SPF records.
===== Test =====
==== Online tools ====
* [[https://en.internet.nl/test-mail/|Internet.NL]] – tests for IPv6, DNSSEC, DMARC, DKIM, SPF and STARTTLS
* [[https://ssl-tools.net/mails|SSL-Tools]] – checks if mail server uses STARTTLS for mail delivery
* [[https://mxtoolbox.com/deliverability/|MX Toolbox]] – checks mail deliverability (DMARC, SPF, DKIM)
* [[http://isnotspam.com/|Is Not Spam]] – SPF, Sender-ID, DomainKeys, DKIM, SpamAssassin Check