piping in dot forward

piping in dot forward

am 07.01.2008 21:41:06 von Sharif Islam

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=
(1216/1216), delay=00:00:07, xdelay=00:00:01, mailer=prog, pri=120705,
dsn=2.0.0, stat=Sent


any idea?thanks.

Re: piping in dot forward

am 07.01.2008 22:37:04 von Hans-Peter Sauer

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=
> (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.'"