Postfix 送信メールの問題「接続タイムアウト」

Postfix 送信メールの問題「接続タイムアウト」

Windows 7ローカルマシンとvirtualbox Ubuntu仮想マシンがあります。 Postfixをインストールして設定しましたが、テストメールを送信しようとすると、次のエラーが発生します(var/log/mail.logファイルから)。

警告:リレーホスト設定の問題

6027284D93:[Eメール保護]、リレー=なし、遅延=54797、遅延=54797/0.22/0.06/0、dsn=4.3.5、ステータス=遅延(ホストまたはドメイン名が見つかりません。名前=testubu.comタイプ=AAAAネームサービスエラー:ホストが見つかりません)

私の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は実際のドメイン名ではありません

サフィックスの確認

サフィックスの状態にエラーはありません。

Relayhostにコメントしましたが、「警告:Relayhost設定の問題」は修正されましたが、メールを送信できませんでした。今私の/var/log/myl.logファイルから:

> connect to rilf-cz.mail.protection.outlook.com[213.199.154.202]:25:
> Connection timed out

端末でこれを試した場合:

トレースパス -p 25 rilf-cz.mail.protection.outlook.com

次のメッセージが表示されます。

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

仮想マシンでは何も起こらないようです。すべてのファイアウォールを無効にし、ブリッジのNATを変更しました。今Tracerouteははるかに良く見えますが、問題はまだ存在しています。

connect to alt2.gmail-smtp-in.l.google.com[74.125.68.27]:25: Connection timed out

この問題をどのように解決できますか?

ベストアンサー1

おすすめ記事