OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Header Checks: PREPEND

From: Michael Nguyen (michaelntwentyten.org)
Date: Mon Jun 01 2009 - 19:36:13 CDT


Hi 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
following:

main.cf:
smtpd_data_restrictions = check_recipient_access
regexp:/etc/postfix/header-checks

header-checks
/^(.*)/ PREPEND X-SA-DELIVERED-TO: <$1>

The idea being that if michaeln-postfixtwentyten.org was used in RCPT
TO, they'd see:

X-SA-DELIVERED-TO: <michaeln-postfixtwentyten.org>

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?

Michael