Bill Cole: > What is likely happening here is that when a milter sees a message, it > does not have the current Received header, because it has yet to be > fully received. If you are extracting this message from that stage > rather than after final delivery, Postfix has not yet added the Received > header. Milters work around this by adding a synthetic Received header > when passing the message to SA, but if you save a message out of the > milter, you won't get that.
Correction: the MTA<==>Milter protocol hides the Received: header that is prepended by the MTA, but it exposes headers that are already present. That's what Sendmail does, and therefore Postfix, too. Postfix by default has "message_drop_headers = bcc, content-length, resent-bcc, return-path", so those headers will not be exposed. Maybe that belongs in the pickup daemon so that relayed or forwarded messages won't be affected. Wietse