Exim4 DNSの問題

Exim4 DNSの問題

私のDebianサーバーから通常のEメールアドレスにEメールを転送しようとしています。次のエラーメッセージを見つけるための良い解決策がオンラインで見つからないため、おそらく重要なことを見逃しているようです。

dnslookup defer (-1): host lookup did not complete

この答えを見つけましたが、役に立ちませんでした。 https://serverfault.com/questions/370489/exim-cannot-send-to-remote-mail-servers

Debian-exim ユーザーがいます。

uid=101(Debian-exim) gid=103(Debian-exim) groups=103(Debian-exim)

私のネットワークでは、ポート25がフィルタリングされていないようです。とにかく現在ではDNS問題のようです。ここにある次のサーバーがまだ機能しているかどうかはわかりません。テストする他のアドレスを見つけることができません。

telnet 209.85.225.27 25
Trying 209.85.225.27...
telnet: Unable to connect to remote host: Connection timed out

これは働きます:

echo "This is a test." | mail -s Testing user@localhost

以下は行われません。

echo "This is a test." | mail -s Testing [email protected]
echo "This is a test." | mail -s Testing [email protected]

/var/log/exim4/mainlogで私は次のようになります:

1YDDm0-0007mZ-BS <= [email protected] U=user P=local S=464
1YDDm0-0007mZ-BS == [email protected] R=dnslookup defer (-1): host lookup did not complete
1YDE1X-0007v5-EG <= [email protected] U=user P=local S=456

/etc/resolv.confから:

domain home
search home
nameserver 192.168.1.1

最後に(面白い部分は最後にあるようです):

sudo exim -bt -d-resolver [email protected]
[sudo] password for user: 
Exim version 4.80 uid=0 gid=0 pid=31872 D=fbb95cfd
Berkeley DB: Berkeley DB 5.1.29: (October 25, 2011)
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages DKIM
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
Compiler: GCC [4.6.3]
Library version: GnuTLS: Compile: 2.12.20
                         Runtime: 2.12.20
Library version: PCRE: Compile: 8.30
                       Runtime: 8.30 2012-02-04
Total 13 lookups
WHITELIST_D_MACROS: "OUTGOING"
TRUSTED_CONFIG_LIST: "/etc/exim4/trusted_configs"
changed uid/gid: forcing real = effective
  uid=0 gid=0 pid=31872
  auxiliary group list: <none>
seeking password data for user "uucp": cache not available
getpwnam() succeeded uid=10 gid=10
changed uid/gid: calling tls_validate_require_cipher
  uid=101 gid=103 pid=31873
  auxiliary group list: <none>
tls_validate_require_cipher child 31873 ended: status=0x0
configuration file is /var/lib/exim4/config.autogenerated
log selectors = 00000ffc 00612001
trusted user
admin user
seeking password data for user "mail": cache not available
getpwnam() succeeded uid=8 gid=8
user name "root" extracted from gecos field "root"
originator: uid=0 gid=0 login=root name=root
sender address = [email protected]
Address testing: uid=0 gid=103 euid=0 egid=103
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Testing [email protected]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering [email protected]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing [email protected]
--------> hubbed_hosts router <--------
local_part=my domain=mail.eu
checking domains
expansion of "${if exists{/etc/exim4/hubbed_hosts}{partial-lsearch;/etc/exim4/hubbed_hosts}fail}" forced failure: assume not in this list
hubbed_hosts router skipped: domains mismatch
--------> dnslookup_relay_to_domains router <--------
local_part=my domain=mail.eu
checking domains
mail.eu in "@:localhost:example.dynu.com"? no (end of list)
mail.eu in "empty"? no (end of list)
mail.eu in "! +local_domains : +relay_to_domains"? no (end of list)
dnslookup_relay_to_domains router skipped: domains mismatch
--------> dnslookup router <--------
local_part=my domain=mail.eu
checking domains
cached no match for +local_domains
cached lookup data = NULL
mail.eu in "! +local_domains"? yes (end of list)
R: dnslookup for [email protected]
calling dnslookup router
dnslookup router called for [email protected]
  domain = mail.eu
DNS lookup of mail.eu (MX) gave TRY_AGAIN
mail.eu in dns_again_means_nonexist? no (option unset)
returning DNS_AGAIN
dnslookup router: defer for [email protected]
  message: host lookup did not complete
[email protected] cannot be resolved at this time: host lookup did not complete
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=31872 terminating with rc=1 >>>>>>>>>>>>>>>>

誰でも私を助けることができますか?

ありがとうございます!

ベストアンサー1

eximの標準dnslookupルータは、アルゴリズムを使用して電子メールアドレスを確認する方法を決定します(この内容は、Eximのマニュアルの詳細の章で詳しく説明されています)。DNSルーター)。発掘結果を見ると、次のように大丈夫そうです。

$ dig mail.eu mx

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> mail.eu mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5467
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 4

;; QUESTION SECTION:
;mail.eu.           IN  MX

;; ANSWER SECTION:
mail.eu.        86400   IN  MX  10 in1-smtp.messagingengine.com.
mail.eu.        86400   IN  MX  20 in2-smtp.messagingengine.com.

;; ADDITIONAL SECTION:
in1-smtp.messagingengine.com. 72474 IN  A   66.111.4.70
in1-smtp.messagingengine.com. 72474 IN  A   66.111.4.73
in1-smtp.messagingengine.com. 72474 IN  A   66.111.4.72
in1-smtp.messagingengine.com. 72474 IN  A   66.111.4.71

;; Query time: 33 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Mon Jan 19 16:51:24 2015
;; MSG SIZE  rcvd: 158

これは、ローカルリゾルバ(192.168.1.1)がSRV要求(exim構成でSRVが有効になっているかどうか)に対してTRY_AGAIN応答を返すか、失敗した結果(その時点でDSLがダウンしているかどうか)を「否定的にキャッシュ」することを意味します。 )。

レゾルバをテストするには、オープンなDNSサーバー(Googleなど)を使用して次のものを追加することをお勧めします。

nameserver 8.8.8.8

あなたの前に

nameserver 192.168.1.1

ステートメントを実行してresolv.confテストを再実行して、このパーサー応答を除外してみてください。exim -bt [email protected]

GoogleのDNSキャッシュサーバーを使用して問題が解決した場合は、DNSリゾルバー(192.168.1.1のデバイス)を再起動して現在の問題が解決されていることを確認してください。もう一度テストする前に、Googleキャッシュエントリをコメントアウトすることを忘れないでください。

GoogleのDNSキャッシュサーバーを使用してもエラーが発生する場合(または外部DNSリゾルバを使用したくない場合)、この章では他のオプションについて詳しく説明します。次のnameserver行を追加するだけです。みんな解決のため、DNS ルックアップが Google に配信されます。これにより、DNS 要求と転送が少し遅れます。みんなホストは Google に DNS リクエストを行います。誰もがこれが「良いこと」だと思うわけではありません。

おすすめ記事