
我的 Mailcow 實例有奇怪的問題。一個容器(Postfix)已開始部分解析 DNS。問題僅在於這個我不理解的特定容器。這導致由於domain name not found
錯誤而無法從其發送電子郵件。
root@6c751ea397ad:/# host wp.pl
Host wp.pl not found: 2(SERVFAIL)
root@6c751ea397ad:/# host mx.wp.pl
Host mx.wp.pl not found: 2(SERVFAIL)
root@6c751ea397ad:/# cat /etc/resolv.conf
search domain.com
nameserver 127.0.0.11
options ndots:0
但使用外部 DNS:
root@6c751ea397ad:/# host wp.pl 1.1.1.1
Using domain server:
Name: 1.1.1.1
Address: 1.1.1.1#53
Aliases:
wp.pl has address 212.77.98.9
wp.pl mail is handled by 0 mx.wp.pl.
wp.pl mail is handled by 5 mx5.wp.pl.
對於不同的域:
root@6c751ea397ad:/# host -t any o2.pl
o2.pl has address 212.77.98.29
o2.pl descriptive text "facebook-domain-verification=0omejgqroqocgh4efgrbu8bovlazni"
o2.pl descriptive text "v=spf1 include:wp.pl -all"
o2.pl mail is handled by 10 mx.tlen.pl.
o2.pl has SOA record ns1.go2.pl. root.go2.pl. 2020111002 3600 1080 1209600 7200
o2.pl name server ns1.go2.pl.
o2.pl name server ns2.go2.pl.
root@6c751ea397ad:/# host -t any mx.tlen.pl
mx.tlen.pl has address 193.222.135.150
這個確實很奇怪:
root@6c751ea397ad:/# host -t any company.mail.protection.outlook.com
Host company.mail.protection.outlook.com not found: 2(SERVFAIL)
root@6c751ea397ad:/# host -t any outlook.com
outlook.com has SOA record bn7mgt0101dc013.prdmgt01.prod.exchangelabs.com. msnhst.microsoft.com. 2014796278 300 900 2419200 60
outlook.com has address 40.97.148.226
outlook.com has address 40.97.153.146
outlook.com has address 40.97.161.50
...
每個其他容器都工作正常:
root@c228923398e8:/# host wp.pl
wp.pl has address 212.77.98.9
wp.pl mail is handled by 5 mx5.wp.pl.
wp.pl mail is handled by 0 mx.wp.pl.
root@c228923398e8:/# host mx.wp.pl
mx.wp.pl has address 212.77.101.4
root@c228923398e8:/# cat /etc/resolv.conf
search domain.com
nameserver 127.0.0.11
options ndots:0
到目前為止我已經嘗試過:
resolvconf
從主機中刪除並重新安裝- 加 1.1.1.1/8.8.8.8 到
/etc/resolvconf/resolv.conf.d/base
和/etc/resolvconf/resolv.conf.d/head
- 將 DNS 新增到:
/etc/docker/daemon.json
- 將靜態 DNS 新增至 mailcow docker-compose
- 停用防火牆
一切都沒有任何運氣。