jacques has asked for the wisdom of the Perl Monks concerning the following question:
In my aliases file, I have the following entry:
allusers: "|/etc/test.pl"
test.pl is a simple Perl script. It consists of:
system("date | /usr/lib/sendmail jacques\@whatever.com");
When someone sends an email to allusers@whatever.com, the Perl script executes and Jacques gets an email from daemon@whatever.com. That's the problem. The email is coming from 'daemon' instead of the person who sent the email to allusers. How do I get the original sender to appear in the 'from' field?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running Perl program via Sendmail
by Limbic~Region (Chancellor) on Feb 17, 2003 at 19:08 UTC | |
by jacques (Priest) on Feb 17, 2003 at 20:31 UTC | |
|
Re: Running Perl program via Sendmail
by joe++ (Friar) on Feb 18, 2003 at 09:46 UTC | |
|
Re: Running Perl program via Sendmail
by jasonk (Parson) on Feb 17, 2003 at 18:03 UTC | |
by jacques (Priest) on Feb 17, 2003 at 18:07 UTC |