I am having a confounding problem administering a mailing list. The list
is run using smartlist and I hope to do all the admin functions using
procmail.. the problem is as follows:
o Smartlist is set to restrict posting to members.
o posts from non-members are supposed to go to the maintainer
(type2-admin(_at_)type2,com, it's a list on Volkswagen buses)
o When they arrive at type2-admin, they get sorted into a folder, offlist
using the following recipe (which is pretty basic and works fine):
:0:
* ^X-Diagnostic:.* Not on the accept list
off-list
o At that point I want to bounce them to a second acount (t2-admin)
using an alias (type2-offlist, set in /etc/aliases to point to
t2-admin) where a procmail recipe should add a line to the beginning of
the body and bounce it to the list. Since t2-admin is an authorized
poster, it should then go to the list. The recipe that I have written
is:
:0 fh
* ^X-Diagnostic:.* Not on the accept list
| formail -I "X-From: t2-admin(_at_)type2(_dot_)com"
:0 afh
| sed /type2\@/d
:0 afh
| sed /ReSent/d
:0 afb
| echo "[The attached was received from a non-subscriber.";\
echo "Please respond to them, not me.]";\
echo " ";\
cat -
:0 a
! type2(_at_)rotary(_dot_)type2(_dot_)com
The problem is that while the recipe works well enough, in that it does
insert and remove the lines as requested, somehow smartlist is sensing
that the mail is coming from a daemon and bouncing it back to me. The
removal of lines containing "type2" and "ReSent" in the headers is because
of this, but smartlist still catches them. A close look at the smartlist
recipes and logs tells me my problem lies here:
* -100^0 ^FROM_MAILER|\
^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )\
([^>]*[^((_dot_)%(_at_)a-z0-9])?(\
LIST(SERV|proc)|NETSERV|bounce|autoanswer|echo|mirror\
)(([^).!:a-z0-9][-_a-z0-9]*)?[%@>
][^<)]*(\(.*\).*)?)?$([^>]|$)
toward the beginning of rc.submit. Per this statement in the log, the
mail is scoring -100, but I can't figure out why :-(
procmail: Score: -100 -100
"(^(((Resent-)?(From|Sender)|X-Envelope-From):$
Lastly, the header of the processed (and rejected) mail looks like this:
Return-Path: <type2-request(_at_)type2(_dot_)com>
Received: (from slist(_at_)localhost)
by rotary.type2.com (8.9.2/8.9.2) id KAA23031
for type2-admin(_at_)rotary(_dot_)type2(_dot_)com; Sun, 14 Mar 1999
10:14:35 -0500 (EST)
Date: Sun, 14 Mar 1999 10:14:35 -0500 (EST)
X-From_: t2-admin Sun Mar 14 10:14:33 1999
Received: (from t2-admin(_at_)localhost)
by rotary.type2.com (8.9.2/8.9.2) id KAA23019
for type2(_at_)rotary(_dot_)type2(_dot_)com; Sun, 14 Mar 1999 10:14:33
-0500 (EST)
Received: from localhost (type2-admin(_at_)localhost)
by rotary.type2.com (8.9.2/8.9.2) with ESMTP id KAA23005
for <type2-offlist(_at_)rotary(_dot_)type2(_dot_)com>; Sun, 14 Mar 1999
10:14:30-0500 (E
X-Received: (from slist(_at_)localhost)
by rotary.type2.com (8.9.2/8.9.2) id DAA17971
for type2-admin(_at_)rotary(_dot_)type2(_dot_)com; Fri, 12 Mar 1999
03:53:11 -0500 (EST)
Old-Date: Fri, 12 Mar 1999 03:53:11 -0500 (EST)
X-Authentication-Warning: rotary.type2.com: slist set sender to
type2-request(_at_)type2(_dot_)com using -f
X-From_: name_deleted(_at_)hisisp(_dot_)co(_dot_)nz Fri Mar 12 03:53:09 1999
X-Received: from callisto.hisisp.co.nz
(root(_at_)callisto(_dot_)hisisp(_dot_)co(_dot_)nz
[203.21.30.2])
by rotary.type2.com (8.9.2/8.9.2) with ESMTP id DAA17957
X-Received: from john (ba3p16.net.hisisp.co.nz [203.98.38.208])
by callisto.hisisp.co.nz (8.9.0/8.9.0) with SMTP id VAA06186;
Fri, 12 Mar 1999 21:57:14 +1300 (NZDT)
Message-ID: <006d01be6c66$cc35e260$0500a8c0(_at_)john>
From: "A. User" <name_deleted(_at_)hisisp(_dot_)co(_dot_)nz>
Subject: Fw: Aspect ratio for 185R14 tire?
Old-Date: Fri, 12 Mar 1999 22:00:35 +1300
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Diagnostic: Not on the accept list
X-Envelope-To: type2
X-From: t2-admin(_at_)type2(_dot_)com
X-Diagnostic: Mail coming from a daemon, ignored
X-Envelope-To: type2
[ The following text is in the "iso-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
[The attached was received from a non-subscriber.
Please respond to them, not me.]
I deeply appreciate any aid any of you can give. I am at the end of my
rope!
Steve Dolan
Administrator, Type2 list