Hello,
Malgré que mes domaines soient bien configurés, que postfix soit lui aussi correct, avec du dkim, du SPF et du dmarc, je peux malgré tout envoyer des mails anonymes en tant que @mondomaine.fr à mes adresses @mondomaine.fr sans m’authenfier… c’est effrayant et je ne vois pas ce qui coince.
Voici ma conf postfix :
#
## restrictions au moment de la connexion
#
smtpd_client_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unknown_client_hostname,
check_client_access hash:/etc/postfix/client_access,
permit_inet_interfaces
#
## restrictions après réception de la commande « HELO ou EHLO »
#
smtpd_helo_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_invalid_helo_hostname,
reject_non_fqdn_helo_hostname,
reject_unknown_helo_hostname
#
## restrictions après réception de la commande « MAIL FROM »
#
smtpd_sender_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_sender_login_mismatch,
reject_unauth_pipelining,
reject_unknown_sender_domain,
reject_unlisted_sender,
reject_non_fqdn_sender,
check_sender_access hash:/etc/postfix/sender_access,
#
## restrictions après réception de la commande « RCPT TO »
#
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_non_fqdn_sender,
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_unlisted_recipient,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
#reject_rbl_client sbl-xbl.spamhaus.org,
check_recipient_access hash:/etc/postfix/recipient_access,
#reject_rbl_client all.s5h.net,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client dnsbl.inps.de,
permit
#
## restrictions après réception de la commande « DATA »
#
smtpd_data_restrictions =
reject_unauth_pipelining
#
## restrictions mécanisme ETRN
#
smtpd_etrn_restrictions = reject
#
et le retour de spoofcheck :
`--# ./spoofcheck.py mondomaine.net
[*] Found SPF record:
[*] v=spf1 a mx ip4:x.x.x.x -all
[*] SPF record contains an All item: -all
[*] Found DMARC record:
[*] v=DMARC1; p=reject; rua=mailto:postmaster@mondomaine.net; ruf=mailto:mondomaine.net; adkim=s; aspf=s; pct=100; rf=afrf; sp=reject
[-] DMARC policy set to reject
[*] Aggregate reports will be sent: mailto:postmaster@mondomaine.net
[*] Forensics reports will be sent: mailto:webadmin@mondomaine.net
[-] Spoofing not possible for mondomaine.net
Pourtant, via https://www.envoyer-mail.fr/ je peux tranquillement me faire passer pour qui je veux sur @mondomaine.net et l’envoyer à qui je veux sur @mondomaine.net.
A noter qu’évidemment, l’ami gmail.fr, lui, ne se fait pas avoir : si j’envoie un mail de admin@gmail.com en mode anonyme vers mon adresse gmail, le mail n’arrivera jamais… en revanche, si je l’envoie chez @mondomaine.net ou même chez @free.fr (ou sfr.fr), là il passera. Quelle différence y a t il entre la conf gmail et la mienne ?
Qu’est-ce qui ne va pas dans ma conf ?