{"id":662,"date":"2012-10-22T11:41:28","date_gmt":"2012-10-22T03:41:28","guid":{"rendered":"http:\/\/blog.infinity.idv.tw\/index.php\/2012\/10\/22\/dns-sendto-failed-connection-refused-at-usrlibperl5vendor_perl5-8-8mailspamassassindnsresolver-pm-line-411-line-7613\/"},"modified":"2012-10-22T11:41:28","modified_gmt":"2012-10-22T03:41:28","slug":"dns-sendto-failed-connection-refused-at-usrlibperl5vendor_perl5-8-8mailspamassassindnsresolver-pm-line-411-line-7613","status":"publish","type":"post","link":"http:\/\/blog.infinity.idv.tw\/?p=662","title":{"rendered":"dns: sendto() failed: Connection refused at \/usr\/lib\/perl5\/vendor_perl\/5.8.8\/Mail\/SpamAssassin\/DnsResolver.pm line 411, line 7613"},"content":{"rendered":"<p>USER\u53cd\u61c9\u4eca\u5929\u7684\u4fe1\u90fd\u6536\u4e0d\u5230\uff0c\u770b\u4e86\u4e00\u4e0bMAIL SERVER LOG\uff0c\u767c\u73fe\u6709\u4e0b\u5217\u8a0a\u606f<\/p>\n<p>Oct 21 06:14:52 mail spamd[1130]: spamd: connection from mail [127.0.0.1] at port 49154<\/p>\n<p>Oct 21 06:14:52 mail spamd[1130]: spamd: setuid to sharon.wang succeeded<\/p>\n<p>Oct 21 06:14:52 mail spamd[1131]: spamd: connection from mail [127.0.0.1] at port 49155<\/p>\n<p>Oct 21 06:14:52 mail spamd[1131]: spamd: setuid to mailbak succeeded<\/p>\n<p>Oct 21 06:14:52 mail spamd[1131]: spamd: processing message &lt;c4128db6ae7249d481212b1e336d3e53@ACAS32.corp.ardentec.com&gt; for mailbak:512<\/p>\n<p>Oct 21 06:14:52 mail spamd[1130]: spamd: processing message &lt;c4128db6ae7249d481212b1e336d3e53@ACAS32.corp.ardentec.com&gt; for sharon.wang:553<\/p>\n<p>Oct 21 06:14:53 mail spamd[1131]: dns: sendto() failed: Connection refused at \/usr\/lib\/perl5\/vendor_perl\/5.8.8\/Mail\/SpamAssassin\/DnsResolver.pm line 411, &lt;GEN13160&gt; line 7613.<\/p>\n<p>Oct 21 06:14:53 mail spamd[1131]: Use of uninitialized value in string ne at \/usr\/lib\/perl5\/vendor_perl\/5.8.8\/Mail\/SpamAssassin\/AsyncLoop.pm line 174, &lt;GEN13160&gt; line 7613.<\/p>\n<p>Oct 21 06:14:53 mail spamd[1131]: plugin: eval failed: oops, no key at \/usr\/lib\/perl5\/vendor_perl\/5.8.8\/Mail\/SpamAssassin\/AsyncLoop.pm line 174, &lt;GEN13160&gt; line 7613.<\/p>\n<p>Oct 21 06:14:53 mail spamd[1131]: dns: sendto() failed: Connection refused at \/usr\/lib\/perl5\/vendor_perl\/5.8.8\/Mail\/SpamAssassin\/DnsResolver.pm line 411, &lt;GEN13160&gt; line 7613.<\/p>\n<p>Oct 21 06:14:53 mail spamd[1131]: Use of uninitialized value in string ne at \/usr\/lib\/perl5\/vendor_perl\/5.8.8\/Mail\/SpamAssassin\/AsyncLoop.pm line 173, &lt;GEN13160&gt; line 7613.<\/p>\n<p>Oct 21 06:14:53 mail spamd[1131]: dns: sendto() failed: Connection refused at \/usr\/lib\/perl5\/vendor_perl\/5.8.8\/Mail\/SpamAssassin\/DnsResolver.pm line 411, &lt;GEN13160&gt; line 7613.<\/p>\n<p>Oct 21 06:14:53 mail spamd[1131]: Use of uninitialized value in string ne at \/usr\/lib\/perl5\/vendor_perl\/5.8.8\/Mail\/SpamAssassin\/AsyncLoop.pm line 173, &lt;GEN13160&gt; line 7613.<\/p>\n<p>&#160;<\/p>\n<p>\u4fe1\u4ef6\u5361\u5728\u4f47\u5217\u5340\u7121\u6cd5\u5c07\u4fe1\u9001\u5230\u4f7f\u7528\u8005\u4fe1\u7bb1\u3002 <\/p>\n<p>\u70ba\u4e86\u5148\u8b93\u4fe1\u4ef6\u53ef\u6b63\u78ba\u5bc4\u767c\uff0c\u5148\u505c\u7528spamassassin \u5957\u4ef6\u3002   <br \/>[root@mail incoming]# \/etc\/rc.d\/init.d\/spamassassin stop <\/p>\n<p>\u505c\u7528Postfix\u547c\u53eb spamassassin \u7a0b\u5e8f   <br \/>[root@mail incoming]# vim \/etc\/procmailrc    <br \/>\u5c07\u9019\u5169\u884c\u8a3b\u89e3\u6389    <br \/>:0fw    <br \/>| \/usr\/bin\/spamc <\/p>\n<p>&#160;<\/p>\n<p>\u67e5\u4e86\u7db2\u8def\u4e0a\u7684\u8a0a\u606f\uff0c\u61c9\u8a72\u662f\u8aaaDNS\u7121\u6cd5\u6b63\u78ba\u89e3\u6790\u3002<\/p>\n<p><a href=\"http:\/\/mail-archives.apache.org\/mod_mbox\/spamassassin-users\/200903.mbox\/%3C200903240309.30217.Mark.Martinec+sa@ijs.si%3E\">http:\/\/mail-archives.apache.org\/mod_mbox\/spamassassin-users\/200903.mbox\/%3C200903240309.30217.Mark.Martinec+sa@ijs.si%3E<\/a>    <br \/>==========================================================    <br \/>Chris, <\/p>\n<p>&gt; Mar 23 18:01:08 localhost spamd[3676]: dns: sendto() failed:   <br \/>&gt; Connection refused    <br \/>&gt; at \/usr\/lib\/perl5\/site_perl\/5.10.0\/Mail\/SpamAssassin\/DnsResolver.pm    <br \/>&gt; line 395, &lt;GEN71&gt; line 45. <\/p>\n<p>man 2 sendto <\/p>\n<p>&#160; [ECONNREFUSED]&#160;&#160;&#160;&#160; The socket received an ICMP destination   <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; unreachable message from the last message sent.&#160; This typically    <br \/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; means that the receiver is not listening on the remote port. <\/p>\n<p>Your DNS server is not reachable &#8211; either it is not running, or   <br \/>is being blocked by a firewall, or your &lt;chroot&gt;\/etc\/resolv.conf    <br \/>is misconfigured. <\/p>\n<p>&#160; Mark   <br \/>=========================================================== <\/p>\n<p>\u679c\u7136\u767c\u73feDC&#160; \u7684DNS\u670d\u52d9\u662f\u95dc\u9589\u7684\uff0c\u555f\u52d5\u5f8c\u518d\u6062\u5fa9spamassassin \u904b\u4f5c\u5373\u53ef\u6b63\u5e38\u3002\u81f3\u65bcDC DNS\u70ba\u4f55\u6703\u95dc\u9589\uff0c\u4e5f\u770b\u4e0d\u51fa\u4efb\u4f55\u932f\u8aa4\u8a0a\u606f\uff0c\u518d\u89c0\u5bdf\u89c0\u5bdf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>USER\u53cd\u61c9\u4eca\u5929\u7684\u4fe1\u90fd\u6536\u4e0d\u5230\uff0c\u770b\u4e86\u4e00\u4e0bMAIL SERVER LOG\uff0c\u767c\u73fe\u6709\u4e0b\u5217\u8a0a\u606f<\/p>\n<p>Oct 21 06:14:52 mail spamd[1130]: spamd: connection from mail [127.0.0.1] at port 49154<\/p>\n<p>Oct 21 06:14:52 mail spamd[1130]: spamd: setuid to sharon.wang succeeded<\/p>\n<p>Oct 21 06:14:52 mail spamd[1131]: spamd: connection from mail [127.0.0.1] at port 49155<\/p>\n<p>Oct 21 06:14:52 mail spamd[1131]: spamd: setuid to mailbak succeeded<\/p>\n<p>Oct 21 06:14:52 mail spamd[1131]: spamd: processing message &lt;c4128db6ae7249d481212b1e336d3e53@ACAS32.corp.ardentec.com&gt; for mailbak:512<\/p>\n<p>Oct [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,255],"tags":[427],"_links":{"self":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/662"}],"collection":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=662"}],"version-history":[{"count":0,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/662\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=662"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.infinity.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}