Greetings,

I'm running incoming mail through a program that is called from a
dot-qmail file.  This program needs to determine what the original
envelope recipient is in order to do its processing.

This is easy for a non-virtual domain because qmail-command gives the
envelope recipient to us in the RECIPIENT environment variable.

Under a virtualdomain however, qmail destroys this by taking the
"prepend" from control/virtualdomains and adding it to the front of
the local part of the address, so RECIPIENT is not as useful.

e.g, if my control/virtualdomains file has the line:

flunkerz.org:jasonrm-flunkerz

and I send a message to [EMAIL PROTECTED], RECIPIENT is
[EMAIL PROTECTED]

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?  I can't find one, and I'm surprised
qmail doesn't put this in the environment somewhere.

Thanks.

-- 
(TMDA - http://tmda.sourceforge.net)
 (SPAM reduction for qmail systems) 

Reply via email to