On 4/13/2011 8:40 AM, Jon Cutting wrote:
-----Original message-----
To:     [email protected];
From:   Noel Jones<[email protected]>
Sent:   Wed 13-04-2011 14:15
Subject:        Re: Postfix Multi and Sendmail
On 4/13/2011 7:58 AM, Jon Cutting wrote:
I've set up a server that uses postmulti for multiple companies to that I can
configure a milter to a different archiving solution for each, and I'd like to
add the possibility to add a disclaimer.

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?

Many thanks,

Jonathan

Forward the mail via SMTP by using mini_sendmail as a
replacement for sendmail.  Specify the destination port with
the mini_sendmail -pPORT option.

http://acme.com/software/mini_sendmail/
or in most OS packaging systems.


    -- Noel Jones


Many thanks for the suggestion Noel. I may run into another problem if I send 
it back via SMTP though as my content filter is defined on the smtpd process 
and I may create a loop.

Wietse already gave you a solution using "sendmail -C config", but for completeness I'll answer that you prevent looping by using a second smtpd listener with "-o content_filter=" as in the Advanced Content Filter examples.


  -- Noel Jones

Reply via email to