sendmail + amavis-ng + amavis-ng-milter-helper + clamavd
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I am trying to use sendmail + amavis-ng + amavis-ng-milter-helper + clamavd in
a mail server of 1635 users. It works, but after a while (about 10 minutes) I
see messages like that
____________________________
Mar 18 17:09:21 drow sm-mta[30007]: h2IG9Au2030007:
milter_read(milter-amavis): cmd read returned 0, expecting 5
Mar 18 17:09:21 drow sm-mta[30007]: h2IG9Au2030007: Milter (milter-amavis): to
error state
Mar 18 17:09:21 drow sm-mta[30007]: h2IG9Au2030007: Milter (milter-amavis):
init failed to open
Mar 18 17:09:21 drow sm-mta[30007]: h2IG9Au2030007: Milter (milter-amavis): to
error state
Mar 18 17:09:27 drow sm-mta[30038]: h2IG9Ru2030038: Milter (milter-amavis):
write(O) returned -1, expected 5: Broken pipe
Mar 18 17:09:27 drow sm-mta[30038]: h2IG9Ru2030038: Milter (milter-amavis): to
error state
Mar 18 17:09:27 drow sm-mta[30038]: h2IG9Ru2030038: Milter (milter-amavis):
init failed to open
Mar 18 17:09:27 drow sm-mta[30038]: h2IG9Ru2030038: Milter (milter-amavis): to
error state
Mar 18 17:09:41 drow sm-mta[30097]: h2IG9fu2030097:
milter_read(milter-amavis): cmd read returned 0, expecting 5
Mar 18 17:09:41 drow sm-mta[30097]: h2IG9fu2030097: Milter (milter-amavis): to
error state
Mar 18 17:09:41 drow sm-mta[30097]: h2IG9fu2030097: Milter (milter-amavis):
init failed to open
Mar 18 17:09:41 drow sm-mta[30097]: h2IG9fu2030097: Milter (milter-amavis): to
error state
_____________________________
and I think maybe I've overloaded the machine.
I'm new to this list. I suppose you've talk about what combination is better
for medium traffic of emails before. Can you tell me when? (aprox... I'll try
to search the mailing-list archives).
Anyway, if anyone has any suggestions I'd be grateful. Here is some info about
the machine hosting this mail server.
Thank you very much.
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Pentium(R) 4 CPU 1.80GHz
stepping : 4
cpu MHz : 1817.923
cache size : 0 KB
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 cflush dtrace acpi mmx fxsr xmm xmm2 ssnp 28 acc
bogomips : 3630.69
# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 496406528 342515712 153890816 123846656 228249600 33964032
Swap: 296099840 0 296099840
MemTotal: 484772 kB
MemFree: 150284 kB
MemShared: 120944 kB
Buffers: 222900 kB
Cached: 33168 kB
SwapTotal: 289160 kB
SwapFree: 289160 kB
some lines of amavis.conf
_____________________________________
[global]
mail-transfer-agent = Milter
virus-scanner = CLAMD
extractors=Mail, GZIP, BZIP2, LHA, ARC, Zip, Tar, ZOO, RAR, TNEF, ARJ
notifiers=Sender, Admin
[MIME]
;; Ignore MIME message extracting errors?
; ignore errors = no
;; What to do if such error occues?
;; freeze - default behaviour, message will be frozen
;; drop+notify - drop message, notify sender
; error action = freeze
[Milter]
;; Currently, an external C program amavis-milter is needed for Milter
;; support.
;;
;; This is the socket AMaViS will listen on. amavis-milter will
;; connect to this socket if it wants a message to be checked.
amavis socket = /var/run/amavis-ng/socket.amavis
;; This is the socket amavs-milter will listen on.
[security]
;; Resource limits for unpacking each message
;; How many levels of unpacking do we do?
maxlevels = 20
;; How many files do we want to write?
maxfiles = 1000
;; How much diskspace do we want to consume?
maxspace = 30M
;; If amavis is run as UID root, drop root privileges to uid, gid.
uid = amavis
gid = amavis
[CLAMD]
socket = /var/run/clamd.ctl
milter socket = /var/run/amavis-ng/socket.milter
;; The path to amavis-milter
amavis-milter = /usr/sbin/amavis-milter
;; amavis-milter pid file
amavis-milter pidfile = /var/run/amavis-ng/amavis-milter.pid
;; Debug options for amavis-milter (should not be needed in normal
;; operation)
amavis-milter debug = 3
amavis-milter logfile = /var/log/amavis-ng/amavis-milter.log
;; The AMaViS pid file
pidfile = /var/run/amavis-ng/amavisd.pid
daemon = yes
;; For sending out messages
sendmail = /usr/sbin/sendmail
args = -i -f
________________________________________________
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+d2FfGOU6HQZ81TcRAq79AJ0VNVYGbIMTC37Zl37yMN7yz6Zm1wCeLOlf
lmfrDWcZ/GhB+6PEbEnpW8A=
=9XLk
-----END PGP SIGNATURE-----
Reply to: