On Wed, Apr 13, 2011 at 01:58:38PM +0100, Jon Cutting wrote:

> Normally I'd use altermime as a content filter that puts the mail back
> into the queue with the sendmail command. In the case of multiple postfix
> instances, I don't seem to be able to find a way to specify which queue
> to put the mail back into. I'd like the mail to return to the postfix
> instance from which it originated (I.e. if postfix-1031 handed the mail
> off to the content filter I'd like to be able to specify that it is put
> back into postfix-1031's pickup queue with sendmail).
> 
> Is there a way to achieve this?

The sendmail(1) command follows essentially the same instance selection
mechanism as other Postfix utilities. While for Sendmail-compatibility
reasons the configuration flag is "-C" instead of "-c", it also processes
the MAIL_CONFIG environment variable, when no "-C" option is specified
explicitly. Thus, I would expect this configuration to "just work".

I believe that the environment passed from the pipe(8) daemon to the
child process includes the correct MAIL_CONFIG setting for the
current instance. If you test this, you will likely find that no
special configuration is required.

-- 
        Viktor.

Reply via email to