I wrote:
> Hello, I seek advice. For mail received on port 25 for my domain,
> the usual local transport should be used (as accomplished with
> mydestination=mydomain), but for mail submitted by authorized users
> on port 587, I want all such mail (even for recipients@mydomain)
> to get sent via SMTP to a separate smarthost for additional
> filtering.

Maybe you could use this:

/etc/postfix/master.cf
  submission .. .. .. .. .. .. smtpd
    -o ...usual submission options...
    -o content_filter=smtp:filterhost.example
    -o receive_override_options=no_header_body_checks

The no_header_body_checks ensures that no FILTER actions in
header/body_checks can override smtp:filterhost.example.

You may want to do the same thing with the sntps service.

To add to the above, you can use the same receive_override_options
with the pickup daemon.

Don't forget 'postfix reload' after editing master.cf.

See http://www.postfix.org.postconf.5.html#receive_override_options
for other options that may be of interest. 

For example:

   -o receive_override_options=no_header_body_checks,no_address_mappings

Or, to allow whitespace for readability:

   -o { receive_override_options = 
            no_header_body_checks, no_address_mappings }

        Wietse

Reply via email to