OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
$recepient does not work in master.cf

From: abhishek jain (mailejain.com)
Date: Sat Jan 20 2007 - 00:48:44 CST


Hi ,
I need to pipe any mail received to a particular subdomain to two scripts, i
used the following configuration:
main.cf
virtual_alias_maps = hash:/etc/postfix/virtual
transport_maps = hash:/etc/postfix/transport

/etc/postfix/virtual
sub.domain.com anything
sub.domain.com mailother.com , mail#other.coma.sub.domain.com,
mail#other.coma2.sub.domain.com

/etc/postfix/transport
a.sub.domain.com sservice:
a2.sub.domain.com sservice2

master.cf
sservice unix - n n - - pipe
 flags= user=<user> argv=<filename1> ${sender} ${recipient}
sservice2 unix - n n - - pipe
 flags= user=<user> argv=<filename2> ${sender} ${recipient}

Now the problem is that in the filename2 and filename perl scripts(name
changed) the value of shift(ARGV) or $recipient turns out to be
mail#other.coma.sub.domain.com and not the person to whom the mail is sent
,
i mean postfix somehow changes the original user and replaces it with the
one in virtual file .
I want to know to whom the mail is sent in mine script , also it should be
for bcc users also.
Pl. help me.
Thanks,
Abhishek jain