Good results with my upgrade.  I've installed the experimental 0.52-
based Courier deb (had to uninstall the 0.47 first to get it to take
properly), and both basic Courier operation and Maildrop-based rcptfilter
protection are working.

In testing this out, I ran across an interesting dichotomy in the
filtering rules for aliases of two different types.  I don't see
that this bit of lore is completely documented in any one place,
so I thought I'd pass it along.

It turns out that the rules-of-the-game are rather different for
aliases defined by the Courier aliases/aliases.dat mechanism, and
for those which are defined via the QMail-style .courier-aliasname
mechanism.

For aliases defined in aliases.dat, the necessary rcptfilters go into
the .mailfilters in the home directory for the user ID specified
in the "aliasfilteracct" config file.  The name of the rcptfilter
for an alias "foo" would be [EMAIL PROTECTED]:tld (i.e.
"rcptfilter-alias-" followed by the fully-qualified email address
of the alias, with dots in the domain name changed to colons.  The
.mailfilters directory, and the rcptfilter-alias=* files, must be
owned by the "aliasfilteracct" user, and must not be accessible to
other users.  The maildrop scripts are run under this user/group ID.

For aliases defined by Qmail-style .courier files located in the
/etc/courier/aliasdir/ directory, the rules are different.  In these
cases, the filters go in /etc/courier/aliasdir/.mailfilters/ and
are simply named like "rcptfilter-foo" (no "-alias" and no 
@domain.tld).  The directories and filters must be owned by 
whatever user/group ID you've specified in the esmtpd config file
(usually daemon.daemon) and are run under that user-ID.

It helped a lot to have a little maildrop-wrapper script which logs
its invocation and environment via "logger"!



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to