I was just about ready to tear my hair out...
On 1/15/06, Pollywog <[EMAIL PROTECTED]
> wrote:
On 01/14/2006 10:34 pm, you wrote:
> I've just finishing working according to this howto -
> http://flurdy.com/docs/postfix/ to set up a postfix/courier mail server.
Interesting tutorial, I had not seen that particular one.
Sorry to go offlist, but in case Sam's reply did not make sense, you have each
user use the "maildirmake" command to make their Maildir:
cd ~
maildirmake Maildir
Some IMAP clients allow users to add subdirectories, so they don't need to use
maildirmake to add the subdirectories. Some admins write
their /etc/courier/maildroprc so that a user's Maildir will be created if it
does not exist. You might Google for examples of that.
If you are going to use ClamAV, I found it easier to use Clamassassin than to
use Amavis to call ClamAV. After Clamassassin is installed, it can be called
from /etc/courier/maildroprc (that is where MY maildroprc is located, yours
might be someplace else). I assume you will use Courier-Maildrop to deliver
mail to mailboxes, but you might be using Procmail instead.
Here is my maildroprc:
#### begin ####
SHELL="/bin/sh"
if (!/^Organization: A Small Pond/:h) # <------change to suit your network
{
xfilter "/usr/local/bin/clamassassin"
if (/^X-Virus-Status: Yes/:h)
{
EXITCODE = 0
exit
}
}
exception {
xfilter "/usr/bin/spamc -s 300000"
}
if (/^X-Spam-Flag: *YES/)
{
if (/^X-Spam-Level: \*\*\*\*\*\*\*/)
{
EXITCODE = 0
exit
}
}
exception {
include "$HOME/.mailfilter"
}
####### end #########
The difficulty I remember having with Amavis was that it did not allow
per-user Spamassassin preferences. That is why I use spamc and Clamassassin.
8)
