Outils pour utilisateurs

Outils du site


tech:mails_postfix_spf

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

tech:mails_postfix_spf [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:mails_postfix_spf [2025/04/24 15:07] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon Mail SMTP Postfix SPF SPAM}}
 +
 +# Mails Postfix SPF
 +
 +
 +~~~bash
 +apt-get install postfix-policyd-spf-python
 +~~~
 +
 +''/etc/postfix/master.cf''
 +~~~
 +policyd-spf  unix  -                               spawn
 +    user=policyd-spf argv=/usr/bin/policyd-spf
 +~~~
 +    
 +''/etc/postfix/main.cf''
 +~~~ini
 +policyd-spf_time_limit = 3600
 +    
 +smtpd_recipient_restrictions =
 +  permit_sasl_authenticated,
 +  permit_mynetworks,
 +  reject_unauth_destination,
 +  check_policy_service unix:private/policyd-spf
 +~~~
 +  
 +~~~bash
 +postfix check
 +postfix reload
 +~~~
 +
 +
 +Vérif
 +~~~
 +# grep SPF /var/log/mail.info
 +Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.85.216.181; helo=mail-qt0-f181.google.com; envelope-from=yourmailaddress@gmail.com; receiver=info@miyw.de
 +~~~
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki