procmail
[Top] [All Lists]

RES: RES: Procmail outgoing filter

2002-03-04 13:30:30
I read procmail man files but I couldn´t realise what I´m doing wrong all I
want is some light from an experienced user that already done it with
success
- First: it says to create another Mprocmail line I did it. My sendmail.cf
looks like:
######################*****##############
###   PROCMAIL Mailer specification   ###
##################*****##################

#####  @(#)procmail.m4  8.11 (Berkeley) 5/19/1998  #####

Mprocmail,      P=/usr/bin/procmail, F=DFMSPhnu9, S=11/31, R=21/31,
T=DNS/RFC822/X-Unix,
                A=procmail -Y -m $h $f $u

Mprocmail,      P=/usr/bin/procmail, F=mSDFMhun, S=11, R=21,
                A=procmail -m $h $g $u

Is it right or I have to add it to the field:
##################################################
###   Local and Program Mailer specification   ###
##################################################

- Second: on Ruleset o Header I add:
######################################
###   Ruleset 0 -- Parse Address   ###
######################################

S0

##### Filter #####
R$*<@xxxxxx.com.br>$*        $#procmail $@/etc/procmailrcs/passa.rc
$:$1(_at_)xxxxxx(_dot_)com(_dot_)br(_dot_)procmail$2
R$*<@$*.procmail>$*     $1<@$2>$3

Is that a problem?

- Finishing my /etc/procmailrcs/passa.rc is this one:
LOGFILE="/var/log/procmail.log"
:0 c
* ^From.*
/var/spool/mail/filter
{
  :0
  ! -oi -f "$@"
};
:0
! -oi -f "$@"

I think sendmail is not calling procmail because procmail.log stills empty.

Is there a problem on the order of the commands?




-----Mensagem original-----
De: procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE
[mailto:procmail-admin(_at_)Lists(_dot_)RWTH-Aachen(_dot_)DE]Em nome de 
Professional
Software Engineering
Enviada em: Segunda-feira, 4 de Março de 2002 12:59
Para: procmail-users(_at_)procmail(_dot_)org
Assunto: Re: RES: Procmail outgoing filter


At 09:40 2002-03-04 -0300, Antonio Lenda Filho did say:
        What is the secret behind: "Although this author has experimented
with such filters himself, he cannot provide you with a ready-made
configuration file hack.

Break it down.  That means, I _experimented_ with a sendmail
ruleset-invoked procmail configuration, but that just because I have a page
discussing it doesn't mean that I'm in a position (either experience-wise
or time-wise) to provide anyone with a hack to accomplish precisely what
their individual needs are.

I provided notes and a generic sendmail hack configuration file to
demonstrate the process.  That's as far as I plan to take it at this point.

 The procmail manpage really does contain about all you need to
successfully add an MTA-level filtering hook."

'man procmail'  Refer to section there which shows how to invoke procmail
(as a "procmail MAILER", versus the "local MAILER") into a sendmail ruleset.


If you're going to experiment with this, I strongly advise you to do so on
a host which isn't normally used as a mail host.

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer:
<http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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