您的位置:首页 > 职场人生

postfix过滤器名称不一致导致postfix/qmg:warning: connect to transport xxxx: No such file or directory

2015-02-09 00:00 357 查看
今天在做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配置文件

完成以上操作后,发现服务器不再报错!而且那封队列中的邮件也发出去了。

本文出自 “潜入技术的海洋” 博客,请务必保留此出处http://myhat.blog.51cto.com/391263/657994
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐