Estou tendo um problema com todos os e-mails postfix sendo rejeitados com “relay access denied” - Centos 6.5, postfix 2.6.6

0

Se eu usar smtpd_recipient_restrictions , tudo será rejeitado com "relay access denied". Se eu usar smtpd_relay_restrictions , tudo passará e ignorará a lista de desbloqueio. Não sei o que está acontecendo; smtpd_recipient_restrictions funciona muito bem em versões mais antigas do postfix. Config abaixo:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = staging.domain.local
inet_interfaces = localhost
mydestination = $myhostname, localhost.$mydomain, localhost
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
unknown_local_recipient_reject_code = 550
mynetworks = 192.168.11.0/24,10.1.25.0/24,127.0.0.0/8
relayhost = outgoing-mx.domain.local
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
recipient_delimiter = +
debug_peer_level = 2
debugger_command =
     PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
     xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.3.3/samples
smtpd_recipient_restrictions =
    check_recipient_access hash:/etc/postfix/whitelist_recipient
    reject_unauth_destination
    reject_invalid_hostname
    reject_non_fqdn_sender
    reject_non_fqdn_hostname
    reject_unknown_sender_domain
    permit
    
por Tony 17.09.2014 / 00:18

1 resposta

0

Adicione a linha "permit_mynetworks" às restrições para permitir o envio de mensagens.

 smtpd_recipient_restrictions =
    check_recipient_access hash:/etc/postfix/whitelist_recipient
    permit mynetworks
    reject_unauth_destination
    reject_invalid_hostname
    reject_non_fqdn_sender
    reject_non_fqdn_hostname
    reject_unknown_sender_domain
    permit
    
por 08.10.2014 / 15:08