I've been over the applicable man pages several times, but I think I'm
missing something. I'm willing to subject myself to an RTFM response and
I hope the respondent is gracious enough to point out which FM to R
because I'm not seeing the answer...
How do I enable embedded mode maildrop filtering in courier?
If it's already enabled, how do I bounce all messages?
My story:
-Courier 0.40.1
./configure --sysconfdir=/etc/courier
make
make check
su -
make install
make install-configure
(essentially a default config)
-from 'localmailfilter' man page, I did the following:
echo /usr/lib/courier/bin/maildrop > /etc/courier/maildropfilter
-I also added:
echo /usr/lib/courier/bin/maildrop > /etc/courier/maildrop
-I created my rcptfilter file:
mkdir /home/cjm/.mailfilters
touch /home/cjm/.mailfilters/rcptfilter
chmod 700 /home/cjm/.mailfilters
chmod 600 /home/cjm/.mailfilters/rcptfilter
-I put (what I think is) definite bounce syntax into the file:
EXITCODE=64
exit
-I restarted the server and I'm still accepting mail.
-My test of maildrop: ran command below as root and killed with CTRL-D.
/home/cjm# maildrop -V9 -D 503 -M rcptfilter
maildrop: Changing to /home/cjm
Message start at 0 bytes, envelope sender=root
maildrop: Attempting .mailfilters/rcptfilter
Tokenized string: "EXITCODE"
Tokenized =
Tokenized string: "64"
Tokenized ;
Tokenized exit
Tokenized ;
Tokenized eof
.mailfilters/rcptfilter(1): EXITCODE="64"
I have a couple of "extra" factors that I don't think come into play,
but I'll describe them just in case they do. (1) the default shell for
the cjm user is a chroot script, and (2) I have posix acls installed on
the filesystem (http://acl.bestbits.at/).
Also, I googled a bunch, and I tried searching the list archives at
http://sourceforge.net/mailarchive/forum.php?forum=courier-maildrop but
the Search engine yielded "No matches found for courier" when I searched
for "courier" (so maybe it's broken?). I scanned several hundred subject
lines manually and clicked on a few score to read the messages, but alas,
I think I'm stuck.
Help?
CJM