Sécuriser l’acheminement du courrier
Pour sécuriser votre serveur de messagerie et l’envoi de vos mails, nous vous recommandons d’utiliser les trois protocoles suivants :
SPF
Le Sender Policy Framework (SPF) permet de déclarer votre serveur de messagerie comme étant autorisé à émettre du courrier pour votre (vos) domaine(s).
Pour le configurer, vous n’avez qu’un seul enregistrement DNS à ajouter :
Type : TXT
Hôte: @
(selon votre fournisseur DNS, il peut s’agir de votre nom de domaine example.com.
(avec un point final), d’une chaîne vide, d’un @
, etc.)Value:Valeur : v=spf1 include:_spf.hosterra.tech ~all
DKIM
DomainKeys Identified Mail (DKIM) isest anune e-mailméthode authenticationd'authentification methoddu designedcourrier toélectronique combatconçue mailpour spoofing.lutter contre l'usurpation d'identité.
ToPour configurele it,configurer, youvous havedevez toajouter adddeux twoenregistrements dnsDNS. records.Pour Toobtenir getces thesedeux twoenregistrements specificspécifiques, records,il justsuffit accessd’accéder à thel’interface Plesk interfacede ofvotre your serverserveur, then:
puis :
click,cliquez,indanstheleleftmenusidelatéralmenu,gauche,onsurMailBoite mail ;clickcliquezthesur l’ongletMailParamètresSettingsde la messagerietab;;checkcochezthela caseUseUtiliserDKIMle système anti-spamprotection system[…DKIM[...]atauthebasbottomdeoflathepagepage;;getrécupérertheles 2dnsenregistrementsrecordsDNStoàaddajouterbyenclickingcliquantonsurHowCommenttoconfigurerconfigure externalle DNS externe.
DMARC
Once SPF and DKIM are configured and operational, you can set Domain-based Message Authentication, Reporting and Conformance (DMARC), a standard email authentication protocol by just adding one more dns record:
Type: TXT
Host: @_dmarc
Value: v=DMARC1; p=reject; pct=100
If you configure DMARC before configuring AND validating SPF and DKIM, you will be unable to correctly send emails from your server.
Testing you configuration
To test your SPF + DKIM + DMARC configuration, you can uses tools like: