Estou usando o postfix 2.3.3 no RHE5, já que algumas semanas atrás, tivemos um problema de entrega de e-mail, sendo específico com retransmissão externa (gmail, hotmail, yahoo).
Eu fiz alguns exercícios: envie um e-mail para um endereço de e-mail interno com endereço de CC externo.
Recebemos com o nosso cliente (Thunderbird) o email interno sem problema, mas não recebemos o externo (vi o email de spam e nada). Eu verifico o log do postfix e ele diz que está tudo bem.
Aug 29 16:55:43 mail postfix/smtpd[2019]: A1DA879E809: client=unknown[192.168.26.6]
Aug 29 16:55:44 mail postfix/cleanup[2022]: A1DA879E809: message-id=<57C4BB64.7030807@internaldomain>
Aug 29 16:55:47 mail postfix/qmgr[1771]: A1DA879E809: from=<account1@internaldomain>, size=114602, nrcpt=2 (queue active)
Aug 29 16:55:47 mail postfix/smtpd[2019]: disconnect from unknown[192.168.26.6]
Aug 29 16:55:47 mail postfix/local[2032]: A1DA879E809: to=<internaltest@internaldomain>, relay=local, delay=4, delays=4/0.04/0/0.01, dsn=2.0.0, **status=sent** (delivered to maildir)
Aug 29 16:55:53 mail postfix/smtp[2031]: A1DA879E809: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[108.177.11.27]:25, delay=10, delays=4/0.03/2.8/3.3, dsn=2.0.0, **status=sent** (250 Requested mail action okay, completed.)
Aug 29 16:55:53 mail postfix/qmgr[1771]: A1DA879E809: removed
Eu verifico nossa fila, mas nada parece errado
qshape deferred
T 5 10 20 40 80 160 320 640 1280 1280+
TOTAL 7 0 0 0 1 0 0 0 0 0 6
oj.gob.gt 4 0 0 0 0 0 0 0 0 0 4
gmaiil.com 1 0 0 0 0 0 0 0 0 0 1
cocisa.com.gt 1 0 0 0 1 0 0 0 0 0 0
energuate.com.gt 1 0 0 0 0 0 0 0 0 0 1
O que poderia estar acontecendo?
Nossa configuração básica de postfix é esta:
alias_maps = hash:/etc/aliases
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
mailbox_size_limit = 102400000
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_queue_lifetime = 1d
message_size_limit = 20971520
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = domain
myhostname = mail.domain
mynetworks = 172.16.0.0/23,192.168.0.0/18,127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP Mail Institucional
smtpd_helo_required = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_inet_interfaces, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550