Good day, We have a Postfix installation as part of a Zimbra server. For the most part I have found the Zimbra install of Postfix to be straightforward, nothing much different than I have seen on other Postfix installations. But I thought I should mention it. Postfix is running well, no configuration issues or operation problems. Currently it is running with Amavisd-new-Spamassassin-ClamAV. While it works well enough, SA leaves a bit to be desired after tuning. We had been using PureMessage and Exchange before Zimbra and we were impressed with the performance of PureMessage. We retained the PM license an converted it to Unix.
I would like to have Postfix send the message first to PM, then to Amavisd. I have PM working, policy rules changed to simply add a header flagging the message as Spam or Ham. I tested PM from the command line and it is accepting smtp traffic from the Postfix server, scoring, and returning the message to the Postfix server. After reading the after-queue content filter readme, and looking online, I am still a bit uncertain about the configuration I should use. I think what I have is correct, but thought it best to ask before I get up at 3am to make the changes and test. PureMessage is accepting smtp messages on port 3366 from the Postfix server and returning the message to port 10026. In main.cf I have, content_filter = pmx:[10.16.2.92]:3366 In master.cf I have the following. The amavisd-new entries will remain unchanged from the current working config. ################################################################# # # Pure Message - FIRST FILTER # pmx unix - - n - 10 smtp -o smtp_send_xforward_command=yes -o disable_mime_output_conversion=yes -o smtp_generic_maps= 10.16.2.28:10026 inet n - n - 10 smtpd -o content_filter=smtp-amavis:[127.0.0.1]:10024 -o local_recipient_maps= -o relay_recipient_maps= -o myhostname=zimbra.greenfieldin.org -o mynetworks=10.16.2.92/32 -o smtpd_helo_restrictions= -o smtpd_client_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject # # ############################################################################# # # AMAVISD-NEW - SECOND FILTER # smtp-amavis unix - - n - 10 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes -o max_use=20 [127.0.0.1]:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o virtual_mailbox_maps= -o virtual_alias_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_data_restrictions= -o smtpd_end_of_data_restrictions= -o smtpd_helo_restrictions= -o smtpd_milters= -o smtpd_sender_restrictions= -o smtpd_reject_unlisted_sender=no -o smtpd_relay_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks_style=host -o mynetworks=127.0.0.0/8,[::1]/128 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o smtpd_client_connection_count_limit=0 -o smtpd_client_connection_rate_limit=0 -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings -o local_header_rewrite_clients= -o syslog_name=postfix/amavisd [127.0.0.1]:10030 inet n - n - - smtpd -o local_recipient_maps= -o virtual_mailbox_maps= -o virtual_alias_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_delay_reject=no -o smtpd_milters=inet:localhost:8465 -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_sender_restrictions= -o smtpd_helo_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o smtpd_reject_unlisted_sender=no -o smtpd_relay_restrictions= -o smtpd_data_restrictions= -o smtpd_end_of_data_restrictions= -o syslog_name=postfix/dkimmilter -o content_filter=smtp-amavis:[127.0.0.1]:10032 # -o content_filter=smtp:[127.0.0.1]:10025 Thanks, DAve Dave Goodrich Webmaster City of Greenfield, Indiana 317-477-4309