postfix过滤器名称不一致导致postfix/qmg:warning: connect to transport xxxx: No such file or directory...
生活随笔
收集整理的這篇文章主要介紹了
postfix过滤器名称不一致导致postfix/qmg:warning: connect to transport xxxx: No such file or directory...
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?今天在做postfix+clamav時,出現了一個問題:
1、在 main.cf中定義的 content_filter = virus_scan:[127.0.0.1]:10025 2、在master.cf中定義的是 virus_sacn ? ? ?unix ?- ? ? ? - ? ? ? n ? ? ? - ? ? ? 16 ? ? ?smtp ?? ? ? ?-o smtp_send_xforward_command=yes ?? ? ? ?-o smtp_enforce_tls=no # For injecting mail back into postfix from the filter 127.0.0.1:10026 inet ?n - ? ? ? n ? ? ? - ? ? ? 16 ? ? ?smtpd ?? ? ? ?-o content_filter= ?? ? ? ?-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks ?? ? ? ?-o smtpd_helo_restrictions= ?? ? ? ?-o smtpd_client_restrictions= ?? ? ? ?-o smtpd_sender_restrictions= ?? ? ? ?-o smtpd_recipient_restrictions=permit_mynetworks,reject ?? ? ? ?-o mynetworks_style=host ?? ? ? ?-o smtpd_authorized_xforward_hosts=127.0.0.0/8 之后發現服務器日志一直出這樣的一條錯誤日志: Sep ?5 11:32:51 svr4 postfix/qmgr[3919]: warning: connect to transport virus_sacn: No such file or directory Sep ?5 11:33:53 svr4 postfix/qmgr[3919]: warning: connect to transport virus_sacn: No such file or directory Sep ?5 11:34:54 svr4 postfix/qmgr[3919]: warning: connect to transport virus_sacn: No such file or directory Sep ?5 11:35:55 svr4 postfix/qmgr[3919]: warning: connect to transport virus_sacn: No such file or directory Sep ?5 11:36:57 svr4 postfix/qmgr[3919]: warning: connect to transport virus_sacn: No such file or directory執行操作: 1、將以上兩個配置文件名字修改一致,仍無法解決該問題。 2、無論是重啟服務postfix,clamav,clamav插件服務均無法解決該問題,查看隊列發現有一封未出現去的郵件,卡在里面了,因為無法將郵件投遞給殺毒的插件。所以。。。。
?? ? 使用google發現有人跟我問題一樣: Since you have fixed the problem, try this: postfix reload ? ? ? ? #重載postfix配置文件 requeue the stuck messages:? postsuper -r ALL ? ? ?#重新維護隊列 wait for the messages to requeue (about a minute and a half should be good) postfix reload ? ? ? ? ? #重載postfix配置文件
完成以上操作后,發現服務器不再報錯!而且那封隊列中的郵件也發出去了。
轉載于:https://blog.51cto.com/myhat/657994
總結
以上是生活随笔為你收集整理的postfix过滤器名称不一致导致postfix/qmg:warning: connect to transport xxxx: No such file or directory...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: StringBuilder和Char[]
- 下一篇: 100篇原创博文有感