On Tue, 6 Dec 2011 17:48:10 +0100 Michael Monnerie wrote: > I get this message: > > [21120] dbg: message: X-Envelope-From header found after 1 or more > Received lines, cannot trust envelope-from > > ... > > When all headers above X-Envelope-From are from trusted sources, this > header should also be a trustee.
I had a quick look at the code. I think what's happening is that when it has to find the envelope sender entirely by itself, it's conservative about what it accepts. It's ignoring X-Envelope-From because it might be wrong rather than because it might be forged. If you set envelope_sender_header X-Envelope-From it will probably work