Article View: comp.mail.sendmail
Article #3793Re: Help Me with smrsh and RH6.0
From: Andrzej Filip
Date: Fri, 08 Oct 1999 00:00
Date: Fri, 08 Oct 1999 00:00
70 lines
2907 bytes
2907 bytes
Massimo wrote:
> 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
Another way:
sendmail on RH 6.0 uses procmail as the local delivery agent,
so you may call your perl script from ~processor/.procmailrc
for details see: "man procmailex", "man procmailrc", "man procmail"
~processor/.procmailrc [AFAIK]
:0w
| /usr/bin/process_email.pl
--
Andrzej (Andrew) A. Filip
http://bigfoot.com/~anfi | fax: +1(801)327-6278
anfi@bigfoot.com | anfi@polbox.com | anfi@box43.gnet.pl
Postings: http://deja.com/profile.xp?author=Andrzej%20Filip
Who refuses a better job offer ?
Technical Details
Message-ID:
<37FDC7B8.FD58151B@bigfoot.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37FBD005.F73E9D45@everex.it>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10de99,c1851c73f272cf2a X-Google-Attributes: gid10de99,public X-Google-Thread: 10c45b,c1851c73f272cf2a X-Google-Attributes: gid10c45b,public From: Andrzej Filip <anfi@bigfoot.com> Subject: Re: Help Me with smrsh and RH6.0 Date: 1999/10/08 Message-ID: <37FDC7B8.FD58151B@bigfoot.com> X-Deja-AN: 534267713 Content-Transfer-Encoding: 7bit References: <37FBD005.F73E9D45@everex.it> X-Accept-Language: en,pl Content-Type: text/plain; charset=iso-8859-2 X-Complaints-To: abuse@news.icm.edu.pl X-Trace: sunsite.icm.edu.pl 939378516 14626 212.160.173.69 (8 Oct 1999 10:28:36 GMT) Organization: (undisclosed) Mime-Version: 1.0 NNTP-Posting-Date: 8 Oct 1999 10:28:36 GMT Newsgroups: comp.mail.sendmail,it.comp.linux.setup