Configuração do postgrey - CentOS 7
  1. Instalar o pacote postgrey:
    yum install postgrey
  2. Editar o arquivo /etc/sysconfig/postgrey:
    POSTGREY_OPTS="--delay=60 --inet=127.0.0.1:10031"
  3. Habilitar e iniciar o serviço postgrey:
    systemctl enable postgrey.service
    systemctl start postgrey.service
  4. Editar o arquivo /etc/postfix/main.cf:

    Em smtpd_recipient_restrictions, inserir a seguinte linha logo após reject_unknown_recipient_domain, conforme abaixo:

    smtpd_sender_restrictions                 =
                                   permit_sasl_authenticated,
                                   check_client_access hash:/etc/postfix/access,
                                   check_sender_access hash:/etc/postfix/emails_liberados,
                                   check_sender_access hash:/etc/postfix/access,
                                   permit_mynetworks,
                                   reject_unknown_sender_domain,
                                   reject_rbl_client b.barracudacentral.org,
                                   reject_invalid_hostname,
                                   reject_unauth_destination,
                                   reject_non_fqdn_sender,
                                   reject_unknown_recipient_domain,
                                   check_policy_service inet:127.0.0.1:10031
  5. Reiniciar o serviço postfix
    systemctl restart postfix.service
IP
3.236.51.151