用Amavisconfiguration第二个内容filter

Amavis可以使用第二个内容filter吗?

我有一个标准的后缀+ Amavis的Ubuntu设置,但垃圾邮件过滤后,我想运行它通过第二个encryption邮件正文 – 这一点工作正常,但是,我不能看到设置Postfix的方式使用多个内容filter,或Amavis然后通过第二个filter推它的方式。

第二个filter使用一个pipe道:

emailcrypt unix - nn - - 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

所以,我想我是愚蠢的东西.. 🙂

如果有人能帮助我,我将不胜感激! 🙂

您可以在main.cf文件中指定第一个content_filter (即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 

现在,第二个过滤器可以将邮件注入到侦听10099smtpd服务器。 希望有所帮助。