Eu tenho o Windows 7 máquina local e virtualbox Ubuntu máquina virtual. Eu instalei o Postfix nele e configurei-o, mas quando tento enviar email de teste, recebo o seguinte erro (no arquivo var / log / mail.log):
warning: relayhost configuration problem
6027284D93: [email protected], relay=none, delay=54797, delays=54797/0.22/0.06/0, dsn=4.3.5, status=deferred (Host or domain name not found. Name service error for name=testubu.com type=AAAA: Host not found)
meu arquivo postfix main.cf:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
# fresh installs.
compatibility_level = 2
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mail.testubu.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydomain=testubu.com
myorigin = $mydomain
mydestination = $myhostname, testubu.com, smtp-VirtualBox, localhost.localdomain, localhost,
#relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
mail_spool_directory = /var/spool/mail
#proxy_interfaces =
testubu.com não é domínio real
postfix check
postfix status no errors
Comentei que relayhost e "warning: relayhost configuration problem" foram resolvidos, mas não consigo enviar e-mails. Agora no meu arquivo /var/log/myl.log:
> connect to rilf-cz.mail.protection.outlook.com[213.199.154.202]:25:
> Connection timed out
Quando tentei isso no terminal:
traceroute -p 25 rilf-cz.mail.protection.outlook.com
Eu tenho o seguinte:
traceroute to rilf-cz.mail.protection.outlook.com (213.199.154.202), 64 hops max
1 10.0.2.2 0,206ms 0,149ms 0,149ms
2 10.0.2.2 4,566ms 4,498ms 2,496ms
Parece que nada aconteceu fora da caixa virtual. Eu desativei todos os firewalls Eu mudei o NAT para a ponte. Agora o traceroute parece melhor, mas o problema ainda permanece.
connect to alt2.gmail-smtp-in.l.google.com[74.125.68.27]:25: Connection timed out
Como posso consertar isso?
Tags windows virtualbox postfix ubuntu