| View previous topic :: View next topic |
| Author |
Message |
admin Site Admin
Joined: 21 Jun 2005 Posts: 209
|
Posted: Thu Jul 27, 2006 8:27 pm Post subject: Postfix very slow |
|
|
Hello,
Since yesterday our mail server have been really slow. Even local mails
are delayed by atleast 15 minutes.
I have configured postfix+spamassassin+courier imap.
I am not sure where should I start digging, below are my basic
configuration.
Also I am noticing a more that 2800 files in /var/spool/postfix/maildrop
directory.
Can some please explain what is this directory for.
I followed the instruction from
http://www.akadia.com/services/postfix_spamassassin.html to configure
postfix and spamassassin.
master.cf
spamfilter unix - n n - - pipe
flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter -f ${sender}
-- ${recipient}
cat spamfilter
cat /usr/local/bin/spamfilter
#variables
###(
### printf "log.$$ -- test123\n"
###) >> /usr/local/bin/.spamfilter.log
SENDMAIL="/usr/sbin/sendmail.postfix -i"
EGREP=/bin/egrep
# Exit codes from <sysexits.h>
EX_UNAVAILABLE=69
# Number of *'s in X-Spam-level header needed to sideline message:
# (Eg. Score of 5.5 = "*****" )
SPAMLIMIT=5
# Clean up when done or when aborting.
trap "rm -f /var/tempfs/out.$$" 0 1 2 3 15
# Pipe message to spamc
cat | /usr/bin/spamc -u spamfilter > /var/tempfs/out.$$
if $EGREP -q "^X-Spam-Level: \*{$SPAMLIMIT,}" < /var/tempfs/out.$$
then
$SENDMAIL -f $2 reporttospam@ourdomainname.com < /var/tempfs/out.$$
else
$SENDMAIL $@ < /var/tempfs/out.$$
fi
# Postfix returns the exit status of the Postfix sendmail command.
exit $? |
|
| Back to top |
|
 |
admin Site Admin
Joined: 21 Jun 2005 Posts: 209
|
|
| Back to top |
|
 |
|