5 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Courier/RAV/Spama...
FromSent OnAttachments
Colin DickOct 25, 2003 2:21 pm 
Theodore J. KnabOct 25, 2003 6:57 pm 
Gordon MessmerOct 27, 2003 10:58 pm 
Systems AdministratorOct 28, 2003 4:32 pm 
Gordon MessmerOct 29, 2003 9:46 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Courier/RAV/Spamassassin w/ Razor processingActions...
From:Theodore J. Knab (tkn@washcoll.edu)
Date:Oct 25, 2003 6:57:10 pm
List:net.sourceforge.lists.courier-users

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) [root@qmail 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.

--

------------------------------------------------------- *Theodore Knab *Washington College *Maryland, USA

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