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?
In reply to Running Perl program via Sendmail by jacques
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |