procmail
[Top] [All Lists]

Re: smartlist and smrsh

1996-10-17 04:43:02
Hi,

I'm using sendmail8.8.0 with smrsh and procmail/smartlist-3.11pre4.

Problem: smrsh is unable (not allowed) to execute the flist script
that resides in the .bin dir of the dedicated smartlist account even
if I add a link in the smrsh dir.

What I should be able to do is having procmail to look for flist in
the smrsh bin dir. What is the easiest way to do that? Or are there
any other solutions?


Ludo,

Here's what I've done.  In the smrsh bin directory there is a file 
called flist looking like the following:

if expr substr "$1" 1 5 == 'EurRC'
then
    /home/www1/export/SLB/Recruit/mail/.bin.sun4/flist $1
elif expr substr "$1" 1 10 == 'forum-2005'
then
    /home/www1/export/SLB/mail/.bin.sun4/flist $1
elif expr substr "$1" 1 3 == 'tw-'
then
    /home/www1/export/SCR/TechWatch/mail/bin/flist $1
fi

The aliases file contains references along the lines of:

tw-cement: "|flist tw-cement"
tw-cement-request: "|flist tw-cement-request"

This matches the "expr substr "$1" 1 3 == 'tw-'" clause in 
the flist in sm.bin and calls the appropriate instance of 
flist.

Regards,

Steve.



<Prev in Thread] Current Thread [Next in Thread>