amavis-user October 2010 archive
Main Archive Page > Month Archives  > amavis-user archives
amavis-user: Re: [AMaViS-user] amavis proxy problems

Re: [AMaViS-user] amavis proxy problems

From: Mark Martinec <Mark.Martinec+amavis_at_nospam>
Date: Fri Oct 29 2010 - 14:16:59 GMT
To: amavis-user@lists.sourceforge.net

Rok,

> I'm using postfix 2.7.1 with amavis 2.7.0 as a proxy. After some clients
> reported errors sending email, I've noticed postfix is sometimes unable
> to relay email to amavis due to 'queue file write error'. I'm kinda
> clueless, why... Unfortunately I can't see no logs at that time in the
> maillog. Due to this being an active server ( ~100 msgs/minute) I don't
> dare starting amavis in debug mode.
>
> Oct 28 15:30:26 smtp-1 postfix/smtpd[3215]: warning: timeout talking to
> proxy 127.0.0.1:10024
> Oct 28 15:30:26 smtp-1 postfix/smtpd[3215]: proxy-reject:
> END-OF-MESSAGE: 451 4.3.0 Error: queue file write error; from=<a@b.c>
> to=<d@e.f> proto=SMTP helo=<hhh>
>
> I belive the hardware itself is adequate - ibm hs22 blade, dual quad
> core xeon with ht, 24GB ram, it's running Centos 5.5 x64. First I
> thought there aren't enough running processes of amavis, so now I'm
> running 100 instances (was set to 50 before), but guess that didn't fix
> the problem.

100 instances is probably better for such a setup than 50.

Did you enable the:

  -o smtpd_proxy_options=speed_adjust

on the postfix smtpd service on port 25? (Postfix 2.7.0 or later
is required). This is practically a must for a pre-queue setup
with any substantial mail traffic.

What does amavisd-nanny show? Are all amavisd processes busy
most of the time, or is it common that some processes are idle?
If all are busy persistently, that would explain the situation.

Is there a way to measure socket backlog queue length on amavisd socket
on your system (perhaps with netstat), or is your system using SYN cookies?
Netstat may be able to show syncache statistics for the tcp protocol,
or socket queue drops - not sure how this works on Linux.

  Mark

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot org