On Wed, Aug 19, 2015 at 11:46:25AM -0700, Patrick Gibson wrote:

> Is there any way in Postfix that mail originating from
> /usr/sbin/sendmail (e.g. sent via PHP's mail() function) can be
> handled differently than mail originating via SMTP? For example, I'd
> like to relay mail from /usr/sbin/sendmail via a different host, or
> perhaps add some additional filtering.

You can add a content_filter override the pickup entry in master.cf.

    http://www.postfix.org/OVERVIEW.html
    http://www.postfix.org/pickup.8.html
    http://www.postfix.org/master.5.html
    http://www.postfix.org/postconf.5.html#content_filter

Or go multi-instance.

    http://www.postfix.org/MULTI_INSTANCE_README.html

-- 
        Viktor.

Reply via email to