Alexander Perlis:
> Wietse asked:
> > What should happen with local submissions via /usr/sbin/sendmail?
> 
> Thanks, I forgot about those, they too should go to the separate smarthost. 
> Your follow-up
> message passing options to pickup(8) would seem to take care of that.
> 
> > /etc/postfix/master.cf
> >  submission .. .. .. .. .. .. smtpd
> >    -o ...usual submission options...
> >    -o content_filter=smtp:filterhost.example
> >    -o receive_override_options=no_header_body_checks
> 
> Intriguing. To indulge my desire to better understand the internals,
> what is the difference between using
>
>   -o content_filter=smtp:filterhost.example

Because your suggestion does not work as explained later.

> vs using
> 
>   -o relayhost=filterhost.example
>   -o local_transport=smtp:filterhost.example

Because setting relayhost and local_transport has no effect on the
behavior of an an smtpd process.

The parameters that have an effect are listed in the smtpd(8)
manpage, on-line at http://www.postfix.org/smtpd.8.html

You mentioned that you want to send 'new' mail to an external
filter, and that you want to receive mail from an external provider
and store that locally.

The Postfix 'filter' feature is designed for such cases.

A cleaner alternative is to run two Postfix instances: one for
sending out mail that needs to be filtered, and one for receiving
filtered mail. In that case, each instance does exactly one thing.
See http://www.postfix.org/MILTI_INSTANCE_README.html

        Wietse

Reply via email to