1

Topic: unable to recieve mails

when someone tries to send me mail, i get this error

anyone have any ideas?

Jun 23 17:41:54 skywalker postfix/qmgr[2547]: D8AE265C95: from=<nicholas@sterley.co.za>, size=1203, nrcpt=1 (queue active)
Jun 23 17:41:55 skywalker amavis[2496]: (02496-02) (!!)TROUBLE in check_mail: parts_decode_ext FAILED: file(1) utility (/usr/bin/file) error: run_command: can't fork: Cannot allocate memory at /usr/sbin/amavisd line 2950. at (eval 103) line 193.
Jun 23 17:41:55 skywalker amavis[2496]: (02496-02) (!)PRESERVING EVIDENCE in /var/amavis/tmp/amavis-20090623T173455-02496
Jun 23 17:41:55 skywalker postfix/smtp[2967]: D8AE265C95: to=<cipha@miragechat.co.za>, relay=127.0.0.1[127.0.0.1]:10024, delay=358, delays=357/0.34/0.51/0.07, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=02496-02, parts_decode_ext FAILED: file(1) utility (/usr/bin/file) error: run_command: can't fork: Cannot allocate memory at /usr/sbin/amavisd line 2950. at (eval 103) line 193. (in reply to end of DATA command))

2

Re: unable to recieve mails

Lack of memory.

3

Re: unable to recieve mails

do you use openvz vps?

4

Re: unable to recieve mails

What's the output of free?

5

Re: unable to recieve mails

@shake - service provider is ezvps, not sure what they use

@jan

[cipha@skywalker ~]$ free -m
             total       used       free     shared    buffers     cached
Mem:           498        483         14          0         31        153
-/+ buffers/cache:        298        199
Swap:            0          0          0

6

Re: unable to recieve mails

openvz have the problem. memery not enough.

you need stop the clamd and amavisd. but remember, the dkim would not working.

chkconfig --level 3 clamd off
chkconfig --level 3 amavisd off

service clamd stop
service amavisid stop

edit /etc/postfix/main.cf
comment  the content_filter line

content_filter

then reload postfix
postfix reload

7

Re: unable to recieve mails

cipha wrote:

@jan

[cipha@skywalker ~]$ free -m
             total       used       free     shared    buffers     cached
Mem:           498        483         14          0         31        153
-/+ buffers/cache:        298        199
Swap:            0          0          0

As you can see you don't have enough memory, heck you don't even have swap space, I suggest you turn off amavisd and clamd both of which hogs memory not that much but given the amount of memory you have it's best to turn off those services, caveat though is you can't do any content filtering.

8 (edited by Suno Ano 2009-06-25 15:11:08)

Re: unable to recieve mails

I wrote some little goodie (vzbulk) to help show openvz resouce shortage http://github.com/sunoano/bash

One needs vzbulk and generic.sh which is included by vzbulk.

Here http://sunoano.pastebin.com/m70daa95f is what it looks like if two barries for the VE with VEID 3003 got hit. Then you know exactly which VE and what resource you have to thouch in order to make that nasty error message go away.

Otherwise (without vzbulk) you would have to manually check every VE on the system ... that's in O(n) ... pfff ... no thanks but thanks smile