Delays are better than timeouts. ;-)

But look at the /etc/courier/maildroprc if you have one.

You might want to lower your maildrop lock-timeout if it is high.

You also might also want to only have SPAM assassin chop up the little files.

Some large attachments might slow things down.

For example, I use this maildroprc on my test server.

import SENDER
import RECIPIENT
import HOME
############################
#my variables
############################
MAILBOX="$HOME/Maildir"
############################
#default mailbox to use overrides system variable
############################
DEFAULT="$MAILBOX"
MAILDIRQUOTA="$MAILBOX/maildirsize"
LOGDIR="/var/log"
logfile $LOGDIR/maildrop.log
RULES = "$MAILBOX/.mailfilter"
LOCKTIMEOUT=2
############################
#
#SPAM ASSASSIN is only called if the message is smaller than 26Kb
if ($SIZE < 26624)
{
  exception {
        xfilter "/usr/bin/spamassassin"
        #xfilter "/usr/bin/spamc"
        }
}
#if the message is tagged as Spam put it
#into the SPAM MAILBOX otherwise   ***LEAVE IT
#ALONE FOR THE LOCAL CONFIG TO DELIVER***
if (/^Subject: Test/ )
{
        to "$DEFAULT/.Trash/"
}
if (/^X-Spam-Flag: *YES/)
{
        exception {
        to "$DEFAULT/.Spam/"
        }
}

On 25/10/03 14:18 -0700, Colin Dick wrote:
> Hi all,
>       I am still having local delivery delay issues.  Here is brief 
> description of my system:
> 
> MySQL 3.23.56
> courier-mta 0.42.2 with mysql auth
> courier imap with mysql auth
> courier pop3d with mysql auth
> RAV antivirus 8.4
> Spamassassin 2.55
> Razor 2.36
> 
> approximately 1100 customers
> Intel(R) Pentium(R) 4 CPU 1.60GHz
> cpu MHz : 1615.935
> hda: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=9729/255/63, 
> UDMA(100)
> [EMAIL PROTECTED] cdick]# cat /proc/meminfo
>         total:    used:    free:  shared: buffers:  cached:
> Mem:  924430336 915738624  8691712        0 121597952 469168128
> Swap: 534601728 91127808 443473920
> MemTotal:       902764 kB
> 
>       RAV does not appear to be the issue as mail is getting through the 
> input process.  When local deliveries are attempted, I am calling maildrop 
> from the .courier file.  Maildrop uses the following .mailfilter recipe:
> 
> xfilter "/usr/bin/spamc"
> if (/^X-Spam-Flag: YES/)
> {
>         to "./Maildir/.xspam/"
> }
> 
>       I have worked with Sam for a couple of hours and implemented some 
> of his suggestions.  The problem still seems to exist and seems to be 
> memory related (ie: when I get into using SWAP, local deliveries slow 
> down).
> 
>       My question is, should my configuration be able to support 1100 
> customers effectively?  Or are the 24 hour delays expected due to 
> spamassassin having to process each message.
> 
>       I suspect a potential memory leak somewhere which would explain
> why I am running into SWAP.  Does anyone have a similar setup?  Have you
> also found delays with your mail?
> 
>       I have two suggestions left to implement.  One is to move mysql to 
> a remote machine.  The second is to try my hand a load balancing a couple 
> of servers.
>       I have already built another machine and am in the process of 
> porting many users to it.  However, I am afraid that as I load this new 
> server up, I will run into the same issues.  Once I have a load balancing 
> solution in place, adding new machines to the config shouldn't be 
> difficult, however, if there is something fundamental I am missing, it 
> will save me from having to buy a new server for the cluster every few 
> months.
> 
>       Thoughts, suggestions?  Thanks in advance for any info you can 
> supply that might be of relevance to me.  Have a good day.
> 
> --
> Colin Dick
> OCIS Admin
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: The SF.net Donation Program.
> Do you like what SourceForge.net is doing for the Open
> Source Community?  Make a contribution, and help us add new
> features and functionality. Click here: http://sourceforge.net/donate/
> _______________________________________________
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
-------------------------------------------------------
*Theodore Knab                  
*Washington College             
*Maryland, USA                  
-------------------------------------------------------
perl -ne'chomp;$a.=pack"h*",$_;END{print"\n$a\n\n"}'<<RM
940216d602160236869636b656e6e2a0


-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to