First I have to say I'm quite new with this Procmail...
I want to do three things with using this Procmail application:
1) Send a reply to all (every time) who sends mail to the
address, by returning a message file.
2) Forward all mail to more than 125 users
3) Be able to (if neccessary) drop mail from certain users
I've invoked the Procmail application in my .forward who looks
like:
----------------------------------------------
"|IFS=' '&&exec /usr/bin/procmail -f-||exit 75 #ingeb"
----------------------------------------------
I've created a .procmailrc who looks like:
----------------------------------------------
VERBOSE=off
MAILDIR=$HOME
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
:0 h c
* !^FROM_DAEMON
* !^X-Loop: ingeb(_at_)powertech(_dot_)no
| (formail -rA"Precedence: junk" \
-brt -I 'From: Inge Balswick <webmaster(_at_)cirrus-rcfk(_dot_)no>' ; \
-A"X-Loop: ingeb(_at_)powertech(_dot_)no" ; \
cat $HOME/.vacation.msg; \
echo ""; \
) | $SENDMAIL -oi -t
:fc
* ^TOdistribusjon(_at_)cirrus-rcfk(_dot_)no
* !^X-Loop: distribusjon(_at_)cirrus-rcfk(_dot_)no
| formail -A "X-Loop: distribusjon(_at_)cirrus-rcfk(_dot_)no"
:Awi
! `cat $HOME/distribusjon.list`
----------------------------------------------
Everything seems to work fine with a small number of E-mail
adresses in my distribusjon.list, who looks like:
----------------------------------------------
91105803(_at_)mobilpost(_dot_)com
inge(_dot_)balswick(_at_)edbasa(_dot_)no
iba(_at_)statoil(_dot_)com
cirrus(_at_)powertech(_dot_)no
----------------------------------------------
If I expand the distribusjon.list to contain my 125+ E-mail
adresses, it looks like something like 3/4 of the persons receive
the mails...
Is there a limit, or how to build the distribusjon.list (file
containing all adresses) correctly???
Here are the latest messages from my log-file:
----------------------------------------------
From IBA(_at_)statoil(_dot_)com Tue Jun 9 13:11:30 1998
Subject: Dette er enda en test...
Folder: /usr/sbin/sendmail 91105803(_at_)mobilpost(_dot_)com
inge(_dot_)balswick(_at_)edba
1285
/bin/sh: -AX-Loop: ingeb(_at_)powertech(_dot_)no: command not found
From IBA(_at_)statoil(_dot_)com Tue Jun 9 13:19:56 1998
Subject: Siste test?
Folder: /usr/sbin/sendmail 91105803(_at_)mobilpost(_dot_)com
inge(_dot_)balswick(_at_)edba
1171
/bin/sh: -AX-Loop: ingeb(_at_)powertech(_dot_)no: command not found
procmail: Excessive output quenched from "cat"
/bin/sh: -AX-Loop: ingeb(_at_)powertech(_dot_)no: command not found
procmail: Program failure (67) of "/usr/sbin/sendmail"
From webmaster(_at_)cirrus-rcfk(_dot_)no Tue Jun 9 14:04:27 1998
Subject: Puh!
Folder: /var/spool/mail/ingeb 7035
From MAILER-DAEMON(_at_)mail(_dot_)powertech(_dot_)no Tue Jun 9 14:11:15 1998
Subject: Returned mail: User unknown
Folder: /var/spool/mail/ingeb 8477
From webmaster(_at_)cirrus-rcfk(_dot_)no Tue Jun 9 15:08:10 1998
Subject: Kom det ingen mail?
Folder: /usr/sbin/sendmail 91105803(_at_)mobilpost(_dot_)com
inge(_dot_)balswick(_at_)edba
3915
/bin/sh: -AX-Loop: ingeb(_at_)powertech(_dot_)no: command not found
From IBA(_at_)statoil(_dot_)com Tue Jun 9 15:23:34 1998
Subject: Er distribusjon.list for lang?
Folder: /usr/sbin/sendmail 91105803(_at_)mobilpost(_dot_)com
inge(_dot_)balswick(_at_)edba
2044
/bin/sh: -AX-Loop: ingeb(_at_)powertech(_dot_)no: command not found
procmail: Excessive output quenched from "cat"
/bin/sh: -AX-Loop: ingeb(_at_)powertech(_dot_)no: command not found
From IBA(_at_)statoil(_dot_)com Tue Jun 9 15:41:56 1998
Subject: Problemer?
Folder: /usr/sbin/sendmail tobruun(_at_)online(_dot_)no
tcwang(_at_)online(_dot_)no emoen
1393
----------------------------------------------
Best regards
Inge Balswick
webmaster(_at_)cirrus-rcfk(_dot_)no
********************************************************************
* Snail-Mail: Inge Balswick, Kanadaveien, N-3520 Jevnaker, NORWAY *
* E-mail job: iba(_at_)statoil(_dot_)com Private:
inge(_dot_)balswick(_at_)edbasa(_dot_)no *
* Private: +47 61314565 Cellular: +47 91105803 Fax: +47 91031902 *
* Cirrus RC Flyklubb: www.cirrus-rcfk.no webmaster(_at_)cirrus-rcfk(_dot_)no *
* It's hard to soar like an eagle, when you work with turkeys... *
********************************************************************