> Is there any way to determine what the *original* envelope recipient
> ([EMAIL PROTECTED]) was under a virtualdomain before qmail changed
> it to the local representation?

Of course.  When qmail rewrites the local part of a virtual domain
address, it does NOT change the domain.  So all you have to do is to
look up $DOMAIN in virtualdomains, and if you find it strip off the
prepend string.  It should take about three lines of perl.  It doesn't
even need for the prepends to be unique.

(There was a bug reported a week or two ago that does an extra round
of prepend on VERP mail sent to virtual domains hosted on the same
qmail system, but that doesn't sound like it'll be a problem here.)

-- 
John R. Levine, IECC, POB 727, Trumansburg NY 14886 +1 607 387 6869
[EMAIL PROTECTED], Village Trustee and Sewer Commissioner, http://iecc.com/johnl, 
Member, Provisional board, Coalition Against Unsolicited Commercial E-mail

Reply via email to