On 12/21/2010 11:46 AM, Stuart Bailey wrote:
Hello,

I have a postfix server accepting emails on port 25 from the
Internet, and

delivering to cyrus.

There is another sever running Mail Marshall on Windows, that
is used as the

content filter. I have configured postfix master.cf as follows:

smtp inet n - n - - smtpd

-o content_filter=mm:[172.16.0.9]:25

-o receive_override_options=no_address_mappings

mm unix - - - - 10 smtp

-o smtp_send_xforward_command=yes

-o disable_mime_output_conversion=yes

-o disable_dns_lookups=yes

-o smtp_generic_maps=

0.0.0.0:10027 inet n - - - - smtpd

-o content_filter=

-o local_recipient_maps=

-o relay_recipient_maps=

-o smtpd_restriction_classes=

-o smtpd_delay_reject=no

-o smtpd_client_restrictions=permit_mynetworks,reject

-o smtpd_helo_restrictions=

-o smtpd_sender_restrictions=

-o smtpd_recipient_restrictions=permit_mynetworks,reject

-o smtpd_data_restrictions=reject_unauth_pipelining

-o smtpd_end_of_data_restrictions=

-o mynetworks=127.0.0.0/8,172.16.0.0/16

-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

Mail marshall is configured to send emails to port 10027. This
works OK.

However, if Mail Marshall detects SPAM, rather than modify the
header and send

it on, it responds directly with a 550 error code.
Unfortunately, postfix then

notifies the email originator that the message has bounced,
generating

backscatter.

Is there anyway I can configure postfix to drop / discard
these messages

rather than notify the originator?


If you can't configure mail marshall to tag+deliver or quarantine, then it's unsuitable for use as a postfix content_filter.

You may be able to use mail marshall as a postfix smtpd_proxy_filter, but that has performance implications you will need to investigate.
http://www.postfix.org/SMTPD_PROXY_README.html


  -- Noel Jones

Reply via email to