1

Topic: Messages spend too much time in queue

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

I have just installed iredmail onto my server, and after a few days of use I noticed that it takes a lot of time to deliver both incoming and outgoing messages.
For example I send about 300-400 emails every morning to a specific set of users at once and it takes an hour or maybe more to deliver these, even though on my previous server this was sent out in minutes. (It was also dovecot+postfix, but all of them installed separately).

I am really not sure on what log to include here, so I am pasting in the log of one email from mail.log, but I can post whatever you might need. So here's part of mail.log


Dec 20 15:10:11 mail postfix/smtpd[7581]: 84B291380699: client=localhost.localdomain[127.0.0.1], sasl_method=LOGIN, sasl_username=zolcsi@localdomain.hu
Dec 20 15:10:12 mail postfix/cleanup[7151]: 84B291380699: message-id=<ac219fcc130e1bd1cac40fbbf0d3e314@localdomain.hu>
Dec 20 15:10:12 mail postfix/qmgr[22660]: 84B291380699: from=<zolcsi@localdomain.hu>, size=1014, nrcpt=1 (queue active)
Dec 20 15:10:12 mail roundcube: User zolcsi@localdomain.hu [94.21.xxx.xxx]; Message for zoli@outsidedomain.net; 250: 2.0.0 Ok: queued as 84B291380699
Dec 20 15:12:21 mail postfix/smtpd[6114]: 6B9E51380691: client=localhost.localdomain[127.0.0.1]
Dec 20 15:12:21 mail postfix/cleanup[7659]: 6B9E51380691: message-id=<ac219fcc130e1bd1cac40fbbf0d3e314@localdomain.hu>
Dec 20 15:12:21 mail postfix/qmgr[22660]: 6B9E51380691: from=<zolcsi@localdomain.hu>, size=1921, nrcpt=1 (queue active)
Dec 20 15:12:21 mail amavis[7744]: (07744-05) Passed CLEAN, MYNETS/MYUSERS LOCAL [127.0.0.1] [127.0.0.1] <zolcsi@localdomain.hu> -> <zoli@outsidedomain.net>, Message-ID: <ac219fcc130e1bd1cac40fbbf0d3e314@localdomain.hu>, mail_id: AqpSR6Ag+Ic3, Hits: -9.998, size: 1014, queued_as: 6B9E51380691, 446 ms
Dec 20 15:12:21 mail postfix/smtp[7687]: 84B291380699: to=<zoli@outsidedomain.net>, relay=127.0.0.1[127.0.0.1]:10024, delay=130, delays=1.2/128/0/0.49, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 6B9E51380691)
Dec 20 15:12:21 mail postfix/qmgr[22660]: 84B291380699: removed
Dec 20 15:12:21 mail postfix/smtp[6987]: 6B9E51380691: to=<zoli@outsidedomain.net>, relay=ASPMX.L.GOOGLE.COM[173.194.67.26]:25, delay=0.52, delays=0.04/0/0.04/0.45, dsn=2.0.0, status=sent (250 2.0.0 OK 1387548741 fo15si3149252wjc.8 - gsmtp)
Dec 20 15:12:21 mail postfix/qmgr[22660]: 6B9E51380691: removed

I noticed that all of the emails are waiting in the postfix queue (with postqueue -p) and tride to sue "postqueue -f" to flush them out, but they stayed in the queue and got delivered later, so flushing the queue had no effect whatsoever.


==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04 LTS
====

----

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

2

Re: Messages spend too much time in queue

Did you try this wiki tutorial?
http://www.iredmail.org/wiki/index.php? … oing.Mails

3

Re: Messages spend too much time in queue

ZhangHuangbin wrote:

Did you try this wiki tutorial?
http://www.iredmail.org/wiki/index.php? … oing.Mails

I did try that, but it had no effect. Now I tried to turn it on and off again, and it looks like everything is working fine now. Maybe last time I forgot to restart amavisd... smile

Anyway, thanks for the help, the problem seems to be resolved now.