有3个后缀服务器:
> mailad.ad.vz – 第一个域中的后缀服务器
> mailsh – 带有postfix和两个网络适配器的网关
> mailinet.ad2.vz – 第二个域中的后缀服务器
Mailsh只能与一个网络区域连接.有工作继电器,每隔30秒调高/减少eth.
我开始在mailad whitch发送压力测试,发送20个字母,每30秒500KB.有时队列开始积累.我可以在maillog中看到以下消息:
Sep 4 08:51:01 mailsh postfix/error[9602]: CFA5E131A7: to=<test@mailinet2.ad.vz>,relay=none,delay=33,delays=32/0/0/0,dsn=4.4.3,status=deferred (delivery temporarily suspended: Host or domain name not found. name service error for name=mailinet.ad.vz type=MX: Host not found,try again)"
每次当适配器打开时,我发送命令postqueue -f
为什么队列可以积累?
mailad postconf:
alias_database = hash:/etc/aliasesalias_maps = hash:/etc/aliasescommand_directory = /usr/sbinconfig_directory = /etc/postfixdaemon_directory = /usr/libexec/postfixdata_directory = /var/lib/postfixdeBUG_peer_level = 2HTML_directory = noinet_interfaces = allinet_protocols = allmail_owner = postfixmailq_path = /usr/bin/mailq.postfixmanpage_directory = /usr/share/manmydestination = $myhostname,localhost.$mydomain,localhost,$mydomainmydomain = vzavod.rumyhostname = mailad.vzavod.runewaliases_path = /usr/bin/newaliases.postfixqueue_directory = /var/spool/postfixreadme_directory = /usr/share/doc/postfix-2.6.6/README_fileSsample_directory = /usr/share/doc/postfix-2.6.6/samplessendmail_path = /usr/sbin/sendmail.postfixsetgID_group = postdroptransport_maps = hash:/etc/postfix/transportunkNown_local_recipIEnt_reject_code = 550transport settings:vzavod.ru local* smtp:mailsh.ad.vz
mailsh postconf:
alias_database = hash:/etc/aliasesalias_maps = hash:/etc/aliasescommand_directory = /usr/sbinconfig_directory = /etc/postfixdaemon_directory = /usr/libexec/postfixdata_directory = /var/lib/postfixdeBUG_peer_level = 2HTML_directory = noinet_interfaces = allinet_protocols = allmail_owner = postfixmailq_path = /usr/bin/mailq.postfixmanpage_directory = /usr/share/manmydestination = $myhostname,$mydomainmydomain = vzavod.rumyhostname = mailsh.vzavod.runewaliases_path = /usr/bin/newaliases.postfixqueue_directory = /var/spool/postfixreadme_directory = /usr/share/doc/postfix-2.6.6/README_fileSsample_directory = /usr/share/doc/postfix-2.6.6/samplessendmail_path = /usr/sbin/sendmail.postfixsetgID_group = postdroptransport_maps = hash:/etc/postfix/transportunkNown_local_recipIEnt_reject_code = 550
运输设置:
* smtp:mailinet.ad.vzvzavod.ru smtp:mailad.ad.vz解决方法 看起来您的情况与本文中的场景类似: postfix in dialup machine.
从那篇文章中可以看出,这里有一些考虑.
>禁用自发SMTP邮件传递(如果仅使用按需拨号IP).
使用以下参数,除非您手动运行postqueue -f,否则postfix不会尝试发送电子邮件.将此参数放在main.cf中.更多信息,请参见here.
defer_transports = smtp # (Only for on-demand dialup IP hosts)
>禁用SMTP客户端DNS查找(仅限拨号LAN).
禁用Postfix SMTP和LMTP客户端中的DNS查找.禁用时,将使用getaddrinfo()系统库例程查找主机,该例程通常也会在/ etc / hosts中查找.因此,将mailad.ad.vz的条目放在/ etc / hosts上.例如
# echo "192.168.1.99 mailad.ad.vz" >> /etc/hosts
并在main.cf中添加此参数
disable_dns_lookups = yes #(Only for on-demand dialup IP hosts)总结
以上是内存溢出为你收集整理的linux – 暂停交付:找不到主机或域名全部内容,希望文章能够帮你解决linux – 暂停交付:找不到主机或域名所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)