1833852 Members
1898 Online
110063 Solutions
New Discussion

sendmail-programdelivery

 
Martin Christov
Advisor

sendmail-programdelivery

Hi all,

I am running sendmail (8.9.3 (PHNE_18546))under HPUX-11.00.
I try to configure programdelivery in my aliases:
rcpt :"|/usr/local/bin/syrz18.pl"
This is a simple perl script which creates a output file using data from STDIN:
...
open (OUTFIL, ">/tmp/fil.out");
while () {
print OUTFIL $_;
}
...
If I test it with
bdf|/usr/local/bin/syrz18.pl
the /tmp/fil.out contains my bdf-output.

If I send a mail to rcpt@otto.com I can find a correct logging entry but the mailtext is not put into /tmp/fil.out.

May 16 15:33:30 ap053sys sendmail[25450]: PAA25450: from=, size=581, class=0, pri=30581, nrcpts=1, msgid=<200105161333.PAA25423@ap053sys.d-w.otto.com>, proto=ESMTP, relay=hwlc1021.d-w.otto.com [10.15.115.40]
May 16 15:33:30 ap053sys sendmail[25451]: PAA25450: to="|/usr/local/bin/syrz18.pl", delay=00:00:00, xdelay=00:00:00, mailer=prog, stat=Sent

Thanks in advance for any reply.

Martin
sudo question
1 REPLY 1
Dave Kelly_1
Respected Contributor

Re: sendmail-programdelivery

First, I would check to see that the program is actually being executed by getting it to create a file in /tmp.