OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
VERP and orig_to

From: Covington, Chris (ccovingtonplusone.com)
Date: Wed Oct 01 2003 - 13:16:16 CDT


Hi all,

I've got a test of VERP running, but I can't seem to extract the bounced
email address from the headers.

On this postfix 2.0.16 box there is a user iplusone.

In /etc/mail/aliases I have:

owner-newsletter: iplusone+newsletter

in /home/iplusone/.forward+newsletter I have:

"|/home/iplusone/bounce/bounce-handler"

which is a simple Perl script that pulls variables from man 8 local:
print FILE $ENV{EXTENSION}, "\n";
print FILE $ENV{USER}, "\n";
print FILE $ENV{LOGNAME}, "\n";
print FILE $ENV{RECIPIENT}, "\n";
print FILE $ENV{LOCAL}, "\n";

In the logs I see:

Oct 1 14:02:26 ipoapp1.myfitnessexpert.com postfix/local[18714]:
11C8D566BD: to=<iplusone+newsletteripoapp1.myfitnessexpert.com>,
orig_to=<owner-newsletter+lkajdf=plusone.comipoapp1.myfitnessexpert.com
>, relay=local, delay=0, status=sent
("|/home/iplusone/bounce/bounce-handler")

The resultant file has:

newsletter
iplusone
iplusone
iplusone+newsletteripoapp1.myfitnessexpert.com
iplusone+newsletter

The problem is that I can't get the lkajdf=plusone.com variable out of
the bounce, since it is being resent to
iplusone+newsletteripoapp1.myfitnessexpert.com. Is there a variable
for orig_to or another way to get that information?

thanks
Chris