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
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
相关文章推荐
- postfix过滤器名称不一致导致postfix/qmg:warning: connect to transport xxxx: No such file or directory
- 解决MAC下PHP连接MYSQL错误Warning: mysql_connect(): No such file or directory in conn.php
- 问题解决:psql: could not connect to server: No such file or directory Is the server running
- su: warning: cannot change directory to /home/mysql: No such file or directory
- mac 连接mysql提示 Warning: mysqli::real_connect(): (HY000/2002): No such file or directory
- docker 解决:Get http:///var/run/docker.sock/v1.19/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
- postdrop: warning: unable to look up public/pickup: No such file or directory
- Error: Unable to connect to xend: No such file or directory. Is xend running
- createdb: could not connect to database postgres: could not connect to server: No such file or directory
- .xsession-errors:openConnection: connect: No such file or directory cannot connect to brltty at :0
- (MAC)Warning: mysql_connect(): No such file or directory
- Warning: mysql_connect(): No such file or directory 解决方案总结(操作系统: Mac)
- SSH登录之后运行命令报错的解决办法-- Failed to connect to Mir: Failed to connect to server socket: No such file or directory
- Linux新建用户误删除进入时su: warning: cannot change directory to /home/xx: No such file or director
- Warning: mysql_connect(): No such file or directory in
- 挂载文件系统时Warning: unable to open an initial console和can't open /dev/ttyS0: No such file or directory
- Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
- Warning: require(D:\wamp\www\glink-smart\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in D:\wamp\www\glink-smart\bootstrap\autoload.php on line 1
- Warning: mysql_connect(): No such file or directory 解决方案总结(操作系统: Mac)
- psql: could not connect to server: No such file or directory&&PGHOST