Hi,  I can configure/use Procmail as mail is passed to users
(with .forward, .procmailrc etc).  However, I *can't 
call procmail from a rule in Sendmail to use Procmail as a
general purpose mail filter (ie. before mail is passed on to
.procmailrc to users).

Thanks to those who've passed along info and advice (but it's
mainly been answers to a question I *haven't* asked).

Here's the part from the man page on Procmail that I can't
figure...

"The -m option is typically used when  procmail  is  called
       from  within  a rule in the sendmail.cf file.  <snip>
This enables you to use rules  like  the  following  (most
likely  in  ruleset 0) to filter mail through the procmail
mailer (please note the leading tab to continue the  rule,
and the tab to separate the comments):

 R$*<@some.where>$*    
  $#procmail $@/etc/procmailrcs/some.rc $:$[EMAIL PROTECTED]$2

 R$*<@$*.procmail>$*
  $1<@$2>$3       Already filtered, map back

       And /etc/procmailrcs/some.rc could be as simple as:

              :0 # sink all junk mail
              * ^Subject:.*junk
              /dev/null

             :0         # pass along all other mail
              ! -oi -f "$@"

ps. It's the rule in sendmail.cf part I need the help on, &
cheers for any,
-- 
Darren Wyn Rees /\   mailto:[EMAIL PROTECTED] /\
 /\/\  VALLEYS-L /\  South Wales & the Valleys  / /\
/\ \ /\/\/\/\/\/\ /\ Finger for Sub Info /\ PGP Key \


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to