1

Topic: amavisd problem?

==== Required information ====
- iRedMail version: Latest
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Centos 5.x
- Related log if you're reporting an issue:
====

Hi,

this morning I have a growing queue and messages is not delivered.

I check the status of mail and seems to be a problem with amavisd:

[root@posta ~]# /etc/init.d/amavisd status
amavisd inactive but subsys locked

I try to restart the service but nothing changed...

Pleas help...

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: amavisd problem?

For the moment I disable spam checking and seems to work again...

3

Re: amavisd problem?

Still, about 350 messages remain in queue not delivered and flush commend doesn't seems to work.

Log report:

"delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused"

How can I unlock these messages?

4

Re: amavisd problem?

[root@posta ~]# telnet localhost 10024
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused

It's an amavisd related problem, I don't know how to check for now.
Can someone had seen already these?

5

Re: amavisd problem?

Now amavis seems to start after I deleted these 2 files:

/var/amavis/amavisd.lock
/var/amavis/amavisd.pid

....

How can I avoid these kind of problem in the future?

6

Re: amavisd problem?

posa68 wrote:

How can I avoid these kind of problem in the future?

Script /etc/init.d/amavisd should check PID stored in amavisd.pid file before actually starting Amavisd service. I guess the one shipped in your Amavisd package doesn't do this.

Usually, this is caused by process kill, for example, you kill amavisd process with command 'kill', 'pkill', 'killall', etc.

7

Re: amavisd problem?

ZhangHuangbin wrote:
posa68 wrote:

How can I avoid these kind of problem in the future?

Script /etc/init.d/amavisd should check PID stored in amavisd.pid file before actually starting Amavisd service. I guess the one shipped in your Amavisd package doesn't do this.

Usually, this is caused by process kill, for example, you kill amavisd process with command 'kill', 'pkill', 'killall', etc.

Thank You Zhang,

do you have a working example of init script?
Tnx...

8

Re: amavisd problem?

Unfortunately, no. sorry.

9

Re: amavisd problem?

Posa,

You should be able to find this script by searching online.