Hi,

    I am running courier maildrop from postfix on debian unstable,
verbose settings seem to make no difference to logging levels and even
if I stick junk at the top of $HOME/.mailfilter it does not cause a
error and mail gets sent fine, maildroprc file works perfectly however
and filters spam etc fine. I have tried using maildrop from the command
line and its unable to create dot-lock file, so basiclly I can't log at
a increased level and its ignoring custom .mailfilter files.

Any help would be greatly appreciated.

ii  courier-authdaemon        0.58-3                    Courier
authentication daemon
ii  courier-authlib           0.58-3                    Courier
authentication library
ii  courier-authlib-mysql     0.58-3                    MySQL support
for the Courier authentication library
ii  courier-authlib-userdb    0.58-3                    userdb support
for the Courier authentication library
rc  courier-authmysql         0.47-13                   Courier Mail
Server - MySQL authentication
ii  courier-base              0.53.2-3                  Courier Mail
Server - Base system
un  courier-debug             <none>                    (no description
available)
ii  courier-maildrop          0.53.2-3                  Courier Mail
Server - Mail delivery agent
un  courier-mta               <none>                    (no description
available)
un  postfix-doc               <none>                    (no description
available)
un  postfix-ldap              <none>                    (no description
available)
ii  postfix-mysql             2.2.10-2                  MYSQL map
support for Postfix
un  postfix-pcre              <none>                    (no description
available)
un  postfix-snap              <none>                    (no description
available)
un  postfix-tls               <none>                    (no description
available)


My postfix master.conf maildrop line is:
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/bin/maildrop -V 10 -w 90 -d
[EMAIL PROTECTED] ${extension} ${recipient} ${user} ${nexthop} ${sender}

My /etc/courier/maildroprc file is:

VERBOSE=10
#####################################
# Run virus scanning on emails
#####################################
VSCAN = 1
#####################################
# Turn on spam filtering.
#####################################
SPAMFILTER = 1
#####################################
# What point level to have spamassassin delete message
#####################################
SPAMDELETE = -1
#####################################
# Default directories used by maildrop to deliver your email
#####################################
EXTENSION="$1"
RECIPIENT="$2"
USER="$3"
HOST="$4"
SENDER="$5"
HOME="/usr/local/virtual/$HOST/$RECIPIENT"
DEFAULT="$HOME/$MAILDIR"
SPAM="$HOME/.Spam/$MAILDIR"
VIRUS="$HOME/.Virus/$MAILDIR"

#####################################
#
# Scan for virus
#
#####################################

if ($VSCAN)
{
        xfilter "/usr/bin/clamscan.sh"
        if (/^X-Virus-Status: INFECTED/)
        {
                `test -d $VIRUS`
                if( $RETURNCODE == 1)
                {
                        `/usr/local/virtual/maildir.sh .Virus "$HOME"`
                        `echo "INBOX.Virus" >> $HOME/courierimapsubscribed`
                }
                to "$VIRUS"
        }
}
#####################################
#
# Scan for spam
#
#####################################

if ($SPAMFILTER)
{
        if (/^X-Spam-Flag: YES/)
        {
                to "$SPAM"
        }
        if ( $SIZE < 250000 && $SPAMFILTER )
        {
                xfilter "/usr/bin/spamc -f"
                # Watch out for header line added by Spamassassin.
                if ( /^X-Spam-Flag: YES/ )
                {
#                       /^X-Spam-Status: Yes, hits=![:digit:]+\.?[:digit:]*/
#                       if ($MATCH2>$SPAMDELETE && $SPAMDELETE != -1)
#                       {
#                               to "/dev/null"
#                       }
                        `test -d $SPAM`
                        if( $RETURNCODE == 1)
                        {
                                `/usr/local/virtual/maildir.sh .Spam
"$HOME"`
                                `echo "INBOX.Spam" >>
$HOME/courierimapsubscribed`
                        }
                        to "$SPAM"
                }
        }
}


my $HOME/.mailfilter file is:

DEBIAN=".Debian"
if (/^List-Id: <debian-[-a-Z0-9]+\.lists\.debian\.org>/)
{
        `test -d $HOME/$DEBIAN.$MATCH`
        if( $RETURNCODE == 1)
        {
                `/usr/local/virtual/maildir.sh "$DEBIAN.$MATCH" "$HOME/"`
                `echo "INBOX$DEBIAN.$MATCH" >> $HOME/courierimapsubscribed`
        }
        to "$HOME/$DEBIAN.$MATCH/$MAILDIR"
}


Thanks

Jake


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to