免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2851 | 回复: 2
打印 上一主题 下一主题

[Mail] ubuntu+postfix安装Amavisd + Clamav后无法启动smtp [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-08 16:32 |只看该作者 |倒序浏览
今天给postfix+squirrelmail增加Amavisd + Clamav结果,smtp无法启动了。
回复到postfix+squirrelmail状态一切ok,安装了amavis+clamav后也正常
但是一旦配置了之后就会有问题
postconf -e 'content_filter = amavis:[127.0.0.1]:10024'
postconf -e 'receive_override_options = no_address_mappings'

vi /etc/postfix/master.cf
在最后添加

amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1


别人用这种配置就不会有问题。。。。为啥啊-_-||
求助


postfix启动的时候报告错误
Apr  8 14:19:47 ubuntu postfix/master[29618]: fatal: /etc/postfix/master.cf: line 84: bad transport type: smtp_data_done_timeout=1200

-o smtp_data_done_timeout=1200
就是这一行

[ 本帖最后由 lordroc 于 2009-4-9 09:50 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-04-09 09:13 |只看该作者
-o smtp_data_done_timeout=1200
这行前面有空格吗?

论坛徽章:
0
3 [报告]
发表于 2009-04-09 09:50 |只看该作者

回复 #2 xmbbx 的帖子

没有

实验了下,就是没有空格的问题,现在ok了。太感谢了。。。。果然是细节决定成败啊…………

[ 本帖最后由 lordroc 于 2009-4-9 11:42 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP