Bluehost.com Web Hosting $6.95

Re: [courier-users] rcptfilter won't run (Debian 3.1 / Sarge)

This is a discussion on Re: [courier-users] rcptfilter won't run (Debian 3.1 / Sarge) within the Courier-Imap forums, part of the Mail Servers and Related category; Good results with my upgrade. I've installed the experimental 0.52- based Courier deb (had to uninstall the 0....


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-06-2006
Dave Platt
 
Posts: n/a
Default Re: [courier-users] rcptfilter won't run (Debian 3.1 / Sarge)

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 rcptfilter-alias-foo@domain: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
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:38 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0