Michael DeMutis <mike(_at_)2gen(_dot_)net> writes:
My autoresponder is no longer working.
...
VERBOSE=off
SENDMAIL=/usr/sbin/sendmail
Is procmail's compiled in value incorrect? If so, you should recompile
with the correct value. If not, why are you overiding it?
MAILDIR=/var/mail
PMDIR=$HOME/.procmail
#LOGFILE=$PMDIR/log
FILEDIR=$HOME/autores
LOGFILE=$HOME/procmail.log
LOGABSTRACT = "all"
VERBOSE = "on"
LOCKFILE = /usr/home/qinfo/locking.file
Why a global lockfile? The recipe you show below doesn't need it.
If you don't have a specific need for it, a global lockfile just slows
procmail (and your system) down.
:0 h c
* !^FROM_DAEMON
* !^X-Loop: qinfo(_at_)2gen(_dot_)net
| (formail -r -A"Reply-To: 2Gen Quick Information <info(_at_)2gen(_dot_)net>" \
-A"X-Loop: info(_at_)2gen(_dot_)net" ; \
cat $FILEDIR/info.txt) | $SENDMAIL -t
You should add the 'w' flag to that recipe so that procmail knows to
check the exitcode. It could be that /usr/sbin/sendmail is exiting with
an error. Also, the recipe checks for an X-Loop: header field with a
value of "qinfo(_at_)2gen(_dot_)net" but it adds an X-Loop: header field with
the
value "info(_at_)2gen(_dot_)net". If you want to prevent looping those need to
be
the same.
Here's what shows up in the log:
procmail: Assigning "FILEDIR=/usr/home/qinfo/autores"
procmail: Error while writing to "/usr/home/qinfo/procmail.log"
Why is this error occuring? What are the permissions and ownerships of
that file?
Philip Guenther