procmail
[Top] [All Lists]

Re: Procmail doesn't work.(new user)

1999-02-28 19:56:31
Daniel Vanhercke <Daniel(_at_)vanhercke(_dot_)com> writes:
On my demand for an autoresponder my Internetprovider has put a Procmail
file in my homedirectory.
The Procmail configuration is probably wrong, becourse nothing seems to work.
On my demand for help, my provider doesn't give any reaction.
...
VERBOSE=off
SENDMAIL=/usr/sbin/sendmail
MAILDIR=/var/mail
PMDIR=$HOME/.procmail
LOGFILE=$HOME/log
FILEDIR=$HOME/autores

What appears in $HOME/log?  If you change that first to VERBOSE=on what
appears?


# To setup your autoresponder, replace all occurances of 
user(_at_)domain(_dot_)com
# with your email address. Then create a file in the autores directory
# (this should already exist off of your home directory) named info.txt
# that contains the message you want in your automatic response.
#
# Remove all the "#"s from the section below to start the autoresponder.

#:0 h c
#* ^TO*orders   
#*!^FROorders  
#*!^X-Loop: orders(_at_)aumcom(_dot_)com 
#|(formail -r -A "Precedence: junk" \
#-I"From:  sales(_at_)aumcom(_dot_)com " \
#-I"Subject: Your order" \
#-A "X-Loop: orders(_at_)aumcom(_dot_)com" ; \
#cat $FILEDIR/info.txt) | $SENDMAIL -t

:0 h c
* ^TO*info
*!^FROM_DAEMON
*!^X-Loop: jan(_at_)vanhercke(_dot_)com 
|(formail -r -A "Precedence: junk" \
-I"From: jan(_at_)vanhercke(_dot_)com  " \
-I"Subject: Your message " \
-A "X-Loop: jan(_at_)vanhercke(_dot_)com" ; \
cat $FILEDIR/info.txt) | $SENDMAIL -t 

Well, the ^TO token is being used incorrectly: that condition should read
        * ^TOinfo

or if you have procmail version 3.11pre4 or later it should read
        * ^TO_info

You should be using -rt instead of -r, the precedence header should be
inserted with the -I flag instead of the -A flag, and I would suggest
indenting in a manner to show the syntax better:

        :0 hc
        *   ^TOinfo
        * ! ^FROM_DAEMON
        * ! ^X-Loop: jan(_at_)vanhercke(_dot_)com 
        |( formail -rt \
                -A "X-Loop: jan(_at_)vanhercke(_dot_)com" \
                -I "Precedence: junk" \
                -I "From: jan(_at_)vanhercke(_dot_)com  " \
                -I "Subject: Your message " ; \
           cat $FILEDIR/info.txt \
         ) | $SENDMAIL $SENDMAILFLAGS -t 


Philip Guenther

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Procmail doesn't work.(new user), Philip Guenther <=