Борьба со спамом средствами Postfix

/etc/postfix/main.cf
  1. Проверка приветствия (HELO)
    smtpd_helo_required = yes
    smtpd_helo_restrictions =
            permit_mynetworks,
            permit_sasl_authenticated,
            reject_unknown_reverse_client_hostname,
            reject_invalid_helo_hostname,
            reject_non_fqdn_helo_hostname,
            reject_unknown_helo_hostname
    
  2. Проверка отправителя
    smtpd_sender_restrictions =
            permit_sasl_authenticated,
            permit_mynetworks,
            check_sender_access hash:/etc/mail/access,
            reject_non_fqdn_sender,
            reject_unknown_sender_domain,
            reject_unverified_sender
    
  3. Проверка получателя
    smtpd_recipient_restrictions =
            permit_sasl_authenticated,
            check_recipient_access hash:/etc/mail/access,
            permit_mynetworks,
            reject_non_fqdn_recipient,
            reject_unauth_pipelining,
            reject_unauth_destination,
            check_policy_service unix:private/policy-spf,
            reject_unlisted_recipient,
            reject_unverified_recipient,
            check_policy_service inet:127.0.0.1:60000
    
  4. Проверка существования адреса отправителя
    address_verify_sender = $double_bounce_sender
    

Добавить комментарий

Ваш адрес email не будет опубликован.