Article View: comp.mail.sendmail
Article #3794Help Me with smrsh and RH6.0
From: Massimo
Date: Thu, 07 Oct 1999 00:00
Date: Thu, 07 Oct 1999 00:00
50 lines
2087 bytes
2087 bytes
Hi .
I use RH6.0 and Sendmail with good results.
Now i have a strange problem :
I want to send and Email to virtual user and redirect email
to a externel program .
The program is a mail processor that print a special File .
The program name is /usr/bin/process_email.pl , and read from standard
input
line per line and process the mail .
The procedure that i make is this :
1) create a user "processor"
2) link /usr/bin/process_email.pl in /etc/smrsh
3) make word executable /usr/bin/process_email.pl
4) create a .forward in home directory of user processor and write into
" | /usr/bin/process_email.pl .
When i send a email to processor sendmail respond to me message SENT but
the program /usr/bin/process_email.pl is no executed .
If i execute from bash : smrsh -c process_email.pl , program is executed
.
I allegate a portion of sendmail log :
------------------------------------
Oct 7 00:27:38 massimo sendmail[3385]: AAA03385: from=root, size=33,
class=0, pri=30033, nrcpts=1,
msgid=<199910062227.AAA03385@massimo.everex.it>, relay=root@localhost
Oct 7 00:27:38 massimo sendmail[3387]: AAA03385: to="|
/usr/bin/process_email.pl",
ctladdr= processor (503/100), delay=00:00:00, xdelay=00:00:00,
mailer=prog, stat=Sen
-----------------------------------
I think that i make all right but it dosn't Work .
Thank a lot for all that respond to my need of Help .
Massimo Lambertini massimo.lambertini@everex.it
Technical Details
Message-ID:
<37FBD005.F73E9D45@everex.it>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10de99,c1851c73f272cf2a,start X-Google-Attributes: gid10de99,public X-Google-Thread: 10c45b,c1851c73f272cf2a,start X-Google-Attributes: gid10c45b,public From: Massimo <massimo.lambertini@everex.it> Subject: Help Me with smrsh and RH6.0 Date: 1999/10/07 Message-ID: <37FBD005.F73E9D45@everex.it> X-Deja-AN: 533677017 Content-Transfer-Encoding: 7bit Organization: Centro Servizi Interbusiness X-Accept-Language: it, en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.mail.sendmail,it.comp.linux.setup