Header Checks: PREPEND
- View SourceHi guys,
So, I'm trying to use PREPEND to add in a custom header so that support
can easily track what email address was used in RCPT TO. I've tried the
smtpd_data_restrictions = check_recipient_access
/^(.*)/ PREPEND X-SA-DELIVERED-TO: <$1>
The idea being that if michaeln-postfix@... was used in RCPT
TO, they'd see:
The problem is that this doesn't seem to work on BCC emails and I'm not
certain why. I'm using Postfix 2.2.0. Any ideas?
- View SourceOn Mon, Jun 01, 2009 at 05:36:13PM -0700, Michael Nguyen wrote:
>This is not a header check, it is access(5) envelope check that prepends
> smtpd_data_restrictions =
> check_recipient_access regexp:/etc/postfix/header-checks
> /^(.*)/ PREPEND X-SA-DELIVERED-TO: <$1>
a header. Given the *data* restrictions cotext, this check will only
fire for messages with a single recipient.
> The idea being that if michaeln-postfix@... was used in RCPT TO,Now not recording more recipients in headers is reasonable, since
> they'd see:
> X-SA-DELIVERED-TO: <michaeln-postfix@...>
otherwise you break Bcc confidentiality. This said, if there is just
one recipient, Postfix already records it in the Received header, so
the whole thing is a waste of time.
> The problem is that this doesn't seem to work on BCC emails and I'm notYes, stop doing what you are doing, and build something to extract data
> certain why. I'm using Postfix 2.2.0. Any ideas?
from your logs.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.