piping in dot forward

Hi,
I am using sendmail 8.12.11.4. I want to run a perl script that will
check the size of incoming mail, however, I am having some issues with
including the script in the .forward. This is what my .forward has:

|"/usr/bin/perl /home/myuser/script.pl"

And I added a symlink to /usr/bin/perl in /etc/smrsh. But my mail is not
getting delivered:

Jan 7 14:28:05 servername sendmail[9971]: m07KRwkr009927:
to=|"/usr/bin/perl /home/myuser/script.pl", ctladdr=<myuser [at] servername>
(1216/1216), delay=00:00:07, xdelay=00:00:01, mailer=prog, pri=120705,
dsn=2.0.0, stat=Sent


any idea?thanks.
Sharif Islam [ Mo, 07 Januar 2008 21:41 ] [ ID #1902398 ]

Re: piping in dot forward

Sharif Islam unleashed the infinite monkeys on 07/01/2008 20:41 producing:
<---SNIP--->
> And I added a symlink to /usr/bin/perl in /etc/smrsh. But my mail is not
> getting delivered:
>
> Jan 7 14:28:05 servername sendmail[9971]: m07KRwkr009927:
> to=|"/usr/bin/perl /home/myuser/script.pl", ctladdr=<myuser [at] servername>
> (1216/1216), delay=00:00:07, xdelay=00:00:01, mailer=prog, pri=120705,
> dsn=2.0.0, stat=Sent
>
> any idea?thanks.

Your mail *was* delivered, to "/usr/bin/perl /home/myuser/script.pl" as
you instructed ;)

Can I suggest "man forward", where you'll see how to also deliver the
email to your mailbox (hint, you need a line of the form "\myuser").

--
Rob MacGregor (BOFH)

Rule 37: "There is no 'overkill'. There is only 'open fire'
and 'I need to reload.'"
Hans-Peter Sauer [ Mo, 07 Januar 2008 22:37 ] [ ID #1902399 ]
Miscellaneous » comp.mail.sendmail » piping in dot forward

Vorheriges Thema: Stats comp.mail.sendmail (last 7 days)
Nächstes Thema: CR CR . CR CR and Exchange