是否可以在Amavis中使用第二个内容过滤器?
我有一个标准的postfix+Amavis Ubuntu设置,但是在垃圾邮件过滤之后,我想要运行它来加密消息正文--但是,我看不到设置后缀以使用多个内容筛选器的方法,或者Amavis将其推入第二个过滤器的方法。
第二个过滤器使用管道:
emailcrypt unix - n n - - pipe flags= user=cryptuser argv=/usr/local/bin/emailcrypt.py
然后在这里弹回:
127.0.0.1:10099 inet n - n - 10 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=127.0.0.0/8 -o smtpd_authorized_xforward_hosts=127.0.0.0/8
所以,我想我是傻了什么的.:)
如果有人能帮我,我会很感激的!)
发布于 2014-03-26 17:08:25
您可以在您的content_filter文件中指定第一个main.cf (即amavis )
#/etc/postfix/main.cf
#...
content_filter = smtp:[localhost]:10097
#...或者master.cf文件。
#/etc/postfix/master.cf
smtp inet n - n - - smtpd
-o content_filter=smtp:[localhost]:10097无论如何,您将定义另一个smtpd服务器来接收来自amavis的电子邮件。在那里指定第二个content_filter,如
#/etc/postfix/master.cf
127.0.0.1:10098 inet n - n - 10 smtpd
-o content_filter=emailcrypt:dummy
# other options if any现在,第二个过滤器可以将邮件注入到侦听smtpd服务器的10099服务器。希望这能有所帮助。
https://stackoverflow.com/questions/22629339
复制相似问题