procmail
[Top] [All Lists]

Anyone can help me ?

1996-05-22 06:57:12
First af all, sorry for my bad english :-)

I need help for my procmail. 

I am very sorry to disturb you, but I have done many proofs and I don't
succeed to resolve, alone, this problem.

I have setupped my procmail following the instructions .procmailrc FAQ, but
after innumerable attempts I have understood that I can have 2 type of setup :

********* setup 1 ***************
VERBOSE=on   (note that I setup ON for have a log file whith extended
diagnostic)
SENDMAIL=/usr/lib/sendmail
MAILDIR=$HOME/mail
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
FILEDIR=$HOME/fileserver

:0
* ^TO.*federico
! gigliof(_at_)mbox(_dot_)vol(_dot_)it

:0
* ^TO.*giuseppe
! mc8885(_at_)mclink(_dot_)it

:0
* ^TOinfo
*!^FROM_DAEMON
*!^X-Loop: info(_at_)giglio(_dot_)com
|(formail -r -a "Precedence: junk"\
-I"From: Auto Replay from giglio.com " \
-I"Subject: Received email" \
-A "X-Loop: info(_at_)giglio(_dot_)com";\
cat $FILEDIR/info.txt ) |$SENDMAIL -t


0:
* ^TO.*
! mc8885(_at_)mclink(_dot_)it


With this setup I have these results :
- messages mailed to giuseppe are forwarded correctly.
- messages mailed to federico are forwarded correctly.
- who send messages to info, receive correctly the autoreplay, but I loss
the original message (it doesn't forwarded neither left on pop of Digiweb)
- all other messages mailed to anythingelse(_at_)giglio(_dot_)com remain on POP 
of
Digiweb instead of be forwarded, according with the last condition.
(Note that in the log file, I can read that procmail skip the whole last
condition)


******** setup 2 **********
VERBOSE=on   
SENDMAIL=/usr/lib/sendmail
MAILDIR=$HOME/mail
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
FILEDIR=$HOME/fileserver

:0
* ^TO*federico
! gigliof(_at_)mbox(_dot_)vol(_dot_)it

:0
* ^TO*giuseppe
! mc8885(_at_)mclink(_dot_)it

:0
* ^TO*info
*!^FROM_DAEMON
*!^X-Loop: info(_at_)giglio(_dot_)com
|(formail -r -a "Precedence: junk"\
-I"From: Auto Replay from giglio.com " \
-I"Subject: Received email" \
-A "X-Loop: info(_at_)giglio(_dot_)com";\
cat $FILEDIR/info.txt ) |$SENDMAIL -t


0:
* ^TO.*
! mc8885(_at_)mclink(_dot_)it 

With this setup I have these results :
- messages mailed to giuseppe are forwarded correctly.
- messages mailed to federico are forwarded correctly.
- all other messages mailed to anythingelse(_at_)giglio(_dot_)com 
are forwarded to mc8885(_at_)mclink(_dot_)it (second condition)
including messages mailed to info(_at_)giglio(_dot_)com

(Note that in the log file, I can read that procmail, processing the mail to
info find :
No match for 1st condition
Match for 2nd condition, 
then forward the message according with this condition)
The 3rd condition is not processed.


Where is my error(s) ?

Thanks very much in advance.


Giuseppe Giglio
*********************************
--> giuseppe(_dot_)giglio(_at_)giglio(_dot_)com
--> http://www.giglio.com
*********************************

<Prev in Thread] Current Thread [Next in Thread>
  • Anyone can help me ?, Giuseppe Giglio <=