使用电子邮件工具向测试用户发送电子邮件,即isemailu5@slc00bly.us.oracle.com,电子邮件服务器为slc00bly.us.oracle.com。并得到以下问题,我认为这应该是一些postfix配置问题,我应该如何解决它?:
ERROR:
Feb 25 22:27:25 slc00bly postfix/qmgr[8481]: E90041941394: to=<isemailu5@slc00bly.us.oracle.com>, relay=none, delay=0.04, delays=0.03/0.02/0/0, dsn=4.3.5, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=localdomain type=A: Host not found)
Feb 25 22:27:25 slc00bly postfix/qmgr[8481]: EEE6B1941395: to=<isemailu5@slc00bly.us.oracle.com>, relay=none, delay=0.02, delays=0.01/0.01/0/0, dsn=4.3.5, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=localdomain type=A: Host not found)
POSTFIX CONFIG:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks_style = class
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relay_domains = $mydestination
relayhost = $mydomain
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postfix
unknown_local_recipient_reject_code = 550
答案 0 :(得分:1)
此问题可能是由您的DNS服务器引起的;
编辑“/etc/resolv.conf”并尝试:
nameserver 8.8.8.8
nameserver 4.2.2.4
nameserver 192.168.1.1
nameserver 127.0.0.1
或您的其他DNS服务器。
答案 1 :(得分:0)
在/etc/resolv.conf更改后,这件事发生在我身上一次,后缀卡住了。一个简单的后缀重新加载解决了该问题。
注意:但是在重新加载之前,请确保/etc/resolv.conf中的名称服务器正确。
答案 2 :(得分:0)
重新启动NetworkManager后,我的案件status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=email-smtp.eu-west-1.amazonaws.com type=A: Host not found, try again)
错误已解决
sudo systemctl restart NetworkManager