Hi,
Here's my configuration information:
mailertable:
dutchie.org procmail:/etc/procmailrcs/perlmailhook
perlmailhook:
LOGFILE=/tmp/procmail.log
LOGABSTRACT="all"
VERBOSE="on"
SHELL= "/bin/bash"
RCPT=$1
:0
{
:0 c
| /web/Dutchie/vanity_email/perl/Test.pl $RCPT
}
:0
{
:0
| /web/Dutchie/vanity_email/perl/ParseMail.pl
}
sendmail.cf:
Mprocmail, P=/usr/bin/procmail, F=DFMSPhnu9, S=11/31, R=21/31,
T=DNS/RFC822/X-Unix,
A=procmail -Y -m $h $f $u
The simple test script Test.pl looks like this:
#!/usr/bin/perl
open (T, ">/tmp/test.dbg") || die ($!);
open (S, "env|") || die ($!);
while (@ARGV) {
print T $ARGV[0];
shift(@ARGV);
}
while (<S>) {
print T $_;
}
while (<>) {
print T $_;
}
close S;
close T;
I would expect procmail to set $RCPT to the recipient and Test.pl to log
that in the little debug script. However, it doesn't do that. Am I
missing something or doing something wrong here?
Thanks
Fred Leeflang
PS: please send a reply to fredl(_at_)dutchie(_dot_)org, as that's the only
email
address that works for me now
--
Fred Leeflang, fredl(_at_)dutchie(_dot_)org http://www.dutchie.org
The website is the non-profit US/NL connection. The goal of this
web site is to exchange information and personal experiences from
users who are interested in moving between the US and Netherlands.