1

Topic: Iredmail very very slow for send & receive

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: FreeBSD 9.2
- Related log if you're reporting an issue: Header email
====
Dear Zhang,

My iredmail running very very slow for send & receive email, this could happen to 2-3 hour email received.
This my header email.
++++++++++++++++++++++++++++++++++++++++++++
Return-Path: <andy.hidayat@xxx.xx.xx>
Delivered-To: danni@xxx.xx.xx
Received: from mail.xxx.xx.xx (mail.xxx.xx.xx [127.0.0.1])
    by mail.xxx.xx.xx (Postfix) with ESMTP id 980ECA4C9D20
    for <danni@xxx.xx.xx>; Mon, 17 Mar 2014 22:34:45 +0700 (WIT)
Authentication-Results: mail.xxx.xx.xx (amavisd-new);
    dkim=pass (1024-bit key) reason="pass (just generated, assumed good)"
    header.d=xxx.xx.xx
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xxx.xx.xx;
     h=content-type:content-type:in-reply-to:references:subject
    :subject:to:mime-version:user-agent:from:from:date:date
    :message-id; s=dkim; t=1395070470; x=1397662471; bh=mdi6yp8b3wnU
    iZLuBw/JK1gGJBLuxWQXToyBUgvx8IM=; b=C61c6lj+P6tZSNRjA2ujgcoHuF/J
    sfBgIFb6wbJf2ILbhk7YVbf1b2PBKKwXjTNff67ZIY0vZSWU0ezmAmX9hCYCd8Se
    qlsLnu0pxYeXurJtpz4guTPPTO17fp/r3jfiuaMYUqkG0VJUo1GVHe+64LF4OEU/
    Sg0AhXIsC83EA3g=
X-Amavis-Modified: Mail body modified (using disclaimer) - mail.xxx.xx.xx
X-Virus-Scanned: amavisd-new at mail.xxx.xx.xx
Received: from mail.xxx.xx.xx ([127.0.0.1])
    by mail.xxx.xx.xx (mail.xxx.xx.xx [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id POJaadBmRs7h for <danni@xxx.xx.xx>;
    Mon, 17 Mar 2014 22:34:30 +0700 (WIT)
Received: from [192.168.1.168] (unknown [202.62.16.5])
    by mail.xxx.xx.xx (Postfix) with ESMTPSA id F23FEA4C9D1A;
    Mon, 17 Mar 2014 22:34:07 +0700 (WIT)
Message-ID: <532716C4.9010508@xxx.xx.xx>
Date: Mon, 17 Mar 2014 22:37:40 +0700
From: Andy Hidayat <andy.hidayat@xxx.xx.xx>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: Danni <danni@xxx.xx.xx>
CC: sysadmin@xxx.xx.xx
Subject: Re: xxx.xx.xx
References: <ofe99lpvap3hh0g5symu4egr.1395060717981@email.android.com>
In-Reply-To: <ofe99lpvap3hh0g5symu4egr.1395060717981@email.android.com>
Content-Type: multipart/alternative;
boundary="------------050604020902030201080101"
X-Antivirus: avast! (VPS 140317-1, 03/18/2014), Inbound message
X-Antivirus-Status: Clean

This is a multi-part message in MIME format.
--------------050604020902030201080101
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
+++++++++++++++++++++++++++++++++++++++++++++
I got information the problem from amavis. What happen with my amavis. Any idea?

Thanks.

2

Re: Iredmail very very slow for send & receive

danninux wrote:

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: FreeBSD 9.2
- Related log if you're reporting an issue: Header email
====
Dear Zhang,

My iredmail running very very slow for send & receive email, this could happen to 2-3 hour email received.
This my header email.
++++++++++++++++++++++++++++++++++++++++++++
Return-Path: <andy.hidayat@xxx.xx.xx>
Delivered-To: danni@xxx.xx.xx
Received: from mail.xxx.xx.xx (mail.xxx.xx.xx [127.0.0.1])
    by mail.xxx.xx.xx (Postfix) with ESMTP id 980ECA4C9D20
    for <danni@xxx.xx.xx>; Mon, 17 Mar 2014 22:34:45 +0700 (WIT)
Authentication-Results: mail.xxx.xx.xx (amavisd-new);
    dkim=pass (1024-bit key) reason="pass (just generated, assumed good)"
    header.d=xxx.xx.xx
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xxx.xx.xx;
     h=content-type:content-type:in-reply-to:references:subject
    :subject:to:mime-version:user-agent:from:from:date:date
    :message-id; s=dkim; t=1395070470; x=1397662471; bh=mdi6yp8b3wnU
    iZLuBw/JK1gGJBLuxWQXToyBUgvx8IM=; b=C61c6lj+P6tZSNRjA2ujgcoHuF/J
    sfBgIFb6wbJf2ILbhk7YVbf1b2PBKKwXjTNff67ZIY0vZSWU0ezmAmX9hCYCd8Se
    qlsLnu0pxYeXurJtpz4guTPPTO17fp/r3jfiuaMYUqkG0VJUo1GVHe+64LF4OEU/
    Sg0AhXIsC83EA3g=
X-Amavis-Modified: Mail body modified (using disclaimer) - mail.xxx.xx.xx
X-Virus-Scanned: amavisd-new at mail.xxx.xx.xx
Received: from mail.xxx.xx.xx ([127.0.0.1])
    by mail.xxx.xx.xx (mail.xxx.xx.xx [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id POJaadBmRs7h for <danni@xxx.xx.xx>;
    Mon, 17 Mar 2014 22:34:30 +0700 (WIT)
Received: from [192.168.1.168] (unknown [202.62.16.5])
    by mail.xxx.xx.xx (Postfix) with ESMTPSA id F23FEA4C9D1A;
    Mon, 17 Mar 2014 22:34:07 +0700 (WIT)
Message-ID: <532716C4.9010508@xxx.xx.xx>
Date: Mon, 17 Mar 2014 22:37:40 +0700
From: Andy Hidayat <andy.hidayat@xxx.xx.xx>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: Danni <danni@xxx.xx.xx>
CC: sysadmin@xxx.xx.xx
Subject: Re: xxx.xx.xx
References: <ofe99lpvap3hh0g5symu4egr.1395060717981@email.android.com>
In-Reply-To: <ofe99lpvap3hh0g5symu4egr.1395060717981@email.android.com>
Content-Type: multipart/alternative;
boundary="------------050604020902030201080101"
X-Antivirus: avast! (VPS 140317-1, 03/18/2014), Inbound message
X-Antivirus-Status: Clean

This is a multi-part message in MIME format.
--------------050604020902030201080101
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
+++++++++++++++++++++++++++++++++++++++++++++
I got information the problem from amavis. What happen with my amavis. Any idea?

Thanks.

This is header when i sent to gmail.
+++++++++++++++++++++++++++++++++++++++++++++++++
Delivered-To: xxx@gmail.com
Received: by 10.194.143.79 with SMTP id sc15csp96455wjb;
        Mon, 17 Mar 2014 06:54:36 -0700 (PDT)
X-Received: by 10.68.11.199 with SMTP id s7mr26568578pbb.12.1395064475052;
        Mon, 17 Mar 2014 06:54:35 -0700 (PDT)
Return-Path: <danni@xxx.xx.xx>
Received: from mail.xxx.xx.xx (mail.xxx.xx.xx. [xxx.xxx.xxx.xxx])
        by mx.google.com with ESMTPS id tu7si10037104pac.388.2014.03.17.06.54.33
        for <xxx@gmail.com>
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Mon, 17 Mar 2014 06:54:34 -0700 (PDT)
Received-SPF: pass (google.com: domain of danni@xxx.xx.xx designates xxx.xxx.xxx.xxx as permitted sender) client-ip=xxx.xxx.xxx.xxx;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of danni@xxx.xx.xx designates xxx.xxx.xxx.xxx as permitted sender) smtp.mail=danni@xxx.xx.xx;
       dkim=pass header.i=@xxx.xx.xx
Received: from mail.xxx.xx.xx (mail.xxx.xx.xx [127.0.0.1])
    by mail.xxx.xx.xx (Postfix) with ESMTP id DBAC3A4C9D4F
    for <xxx@gmail.com>; Mon, 17 Mar 2014 20:53:31 +0700 (WIT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xxx.xx.xx;
     h=content-type:content-type:mime-version:to:from:from
    :message-id:subject:subject:date:date; s=dkim; t=1395064396; x=
    1397656397; bh=7bEbqfEnS5VqnvIZmgn78DuqAY1TYA7lDr4FjpuTPeI=; b=H
    viLGoorK4sjRYuqHB2UPageTo4YXgrv3/YSkNJcdHR/U7XbyFF2ZdxwUSC50LPgd
    e5813ZXfYjWLQYR0RdyxzTyuuuzaQ0XQwptMZQdck52/dIR3dcRf+WsRld0FktgB
    ZSppWdKTo/CTn8+oEZPDZlbcyt2XuOys1uRmiqvJEI=
X-Amavis-Modified: Mail body modified (using disclaimer) - mail.xxx.xx.xx
X-Virus-Scanned: amavisd-new at mail.xxx.xx.xx
Received: from mail.xxx.xx.xx ([127.0.0.1])
    by mail.xxx.xx.xx (mail.xxx.xx.xx [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id 72cNA1QD8ng9 for <xxx@gmail.com>;
    Mon, 17 Mar 2014 20:53:16 +0700 (WIT)
Received: from [39.253.228.62] (unknown [39.253.228.62])
    by mail.xxx.xx.xx (Postfix) with ESMTPSA id EC175A4C9D40;
    Mon, 17 Mar 2014 19:59:27 +0700 (WIT)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Something wrong with my amavis ? Any suggest ?

Thanks.

3

Re: Iredmail very very slow for send & receive

Checking mail header is useless to help solve slow mail delivery issue in your case.
You have to check Postfix log file first whether or not it has error/warning logs.

4 (edited by danninux 2014-03-18 15:18:55)

Re: Iredmail very very slow for send & receive

ZhangHuangbin wrote:

Checking mail header is useless to help solve slow mail delivery issue in your case.
You have to check Postfix log file first whether or not it has error/warning logs.

This my postfix log...
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mar 18 12:19:41 mail postfix/smtpd[59920]: EDDE6A4C9D3D: client=unknown[1.2.3.4], sasl_method=PLAIN, sasl_username=danni@xxx.xx.xx
Mar 18 12:19:42 mail postfix/qmgr[75506]: EDDE6A4C9D3D: from=<danni@xxx.xx.xx>, size=658, nrcpt=1 (queue active)
Mar 18 12:39:14 mail postfix/qmgr[75506]: A224BA4C9D68: from=<danni@xxx.xx.xx>, size=3173, nrcpt=1 (queue active)
Mar 18 12:39:14 mail amavis[60634]: (60634-06) Passed CLEAN {RelayedInternal}, MYUSERS LOCAL [1.2.3.4]:7687 [1.2.3.4] <danni@xxx.xx.xx> -> <danni@xxx.xx.xx>, Queue-ID: EDDE6A4C9D3D, Message-ID: <5327D7A8.1010303@xxx.xx.xx>, mail_id: XjCPTz-yKPTL, Hits: -10, size: 658, queued_as: A224BA4C9D68, dkim_new=dkim:xxx.xx.xx, 3823 ms
Mar 18 12:39:14 mail postfix/smtp[60607]: EDDE6A4C9D3D: to=<danni@xxx.xx.xx>, relay=127.0.0.1[127.0.0.1]:10024, delay=1173, delays=1/1168/0/3.8, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as A224BA4C9D68)
Mar 18 12:39:14 mail postfix/pipe[60526]: A224BA4C9D68: to=<danni@xxx.xx.xx>, relay=dovecot, delay=0.02, delays=0/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Any delay average 20 minute. Any suggest ?

I send again my postfix log......

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mar 18 13:54:37 mail postfix/smtpd[65344]: CB89FA4C9E10: client=unknown[.xxx.xxx.152.164], sasl_method=PLAIN, sasl_username=danni@xxx.xx.xx
Mar 18 13:54:40 mail postfix/qmgr[63034]: CB89FA4C9E10: from=<danni@xxx.xx.xx>, size=671, nrcpt=2 (queue active)
Mar 18 14:05:29 mail amavis[65807]: (65807-09) ESMTP:[127.0.0.1]:10024 /var/amavis/tmp/amavis-20140318T140153-65807-WVvMc4A3: <danni@xxx.xx.xx> -> <danni@xxx.xx.xx> SIZE=3979 BODY=7BIT Received: from mail.xxx.xx.xx ([127.0.0.1]) by mail.xxx.xx.xx (mail.xxx.xx.xx [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <danni@xxx.xx.xx>; Tue, 18 Mar 2014 14:05:29 +0700 (WIT)
Mar 18 14:05:29 mail amavis[65807]: (65807-09) dkim: VALID Author+Sender+MailFrom signature by d=xxx.xx.xx, From: <danni@xxx.xx.xx>, a=rsa-sha256, c=relaxed/simple, s=dkim, i=@xxx.xx.xx, ORIG [.xxx.xxx.44.6]:47967
Mar 18 14:05:29 mail amavis[65807]: (65807-09) Checking: TrWQOHpUPr66 MYUSERS [.xxx.xxx.44.6] <danni@xxx.xx.xx> -> <danni@xxx.xx.xx>
Mar 18 14:05:49 mail amavis[65807]: (65807-09) mangling YES: disclaimer (was: disclaimer), discl_allowed=1, <danni@xxx.xx.xx> -> <danni@xxx.xx.xx>
Mar 18 14:05:49 mail amavis[65807]: (65807-09) mangling by: disclaimer, <danni@xxx.xx.xx>
Mar 18 14:05:49 mail amavis[65807]: (65807-09) dkim: candidate originators: From:<danni@xxx.xx.xx>
Mar 18 14:05:49 mail amavis[65807]: (65807-09) dkim: not signing, already signed by domain xxx.xx.xx, From: <danni@xxx.xx.xx>
Mar 18 14:05:49 mail postfix/qmgr[63034]: 5892EA4C9D60: from=<danni@xxx.xx.xx>, size=5965, nrcpt=1 (queue active)
Mar 18 14:05:49 mail amavis[65807]: (65807-09) FWD from <danni@xxx.xx.xx> -> <danni@xxx.xx.xx>,BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 5892EA4C9D60
Mar 18 14:05:49 mail amavis[65807]: (65807-09) Passed CLEAN {RelayedInternal}, MYUSERS LOCAL [.xxx.xxx.44.6]:47967 [.xxx.xxx.152.164] <danni@xxx.xx.xx> -> <danni@xxx.xx.xx>, Queue-ID: E43ACA4C9DBF, Message-ID: <5327E1F1.3050802@xxx.xx.xx>, mail_id: TrWQOHpUPr66, Hits: -0.1, size: 3976, queued_as: 5892EA4C9D60, dkim_sd=dkim:xxx.xx.xx, 19644 ms
Mar 18 14:05:49 mail postfix/smtp[65806]: E43ACA4C9DBF: to=<danni@xxx.xx.xx>, relay=127.0.0.1[127.0.0.1]:10024, delay=3021, delays=1/3001/0/20, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 5892EA4C9D60)
Mar 18 14:05:49 mail postfix/pipe[65502]: 5892EA4C9D60: to=<danni@xxx.xx.xx>, relay=dovecot, delay=0.02, delays=0/0/0/0.02, dsn=2.0.0, status=sent (delivered via dovecot service)

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Any idea?

Thanks.

5

Re: Iredmail very very slow for send & receive

*) About slow receiving, i guess it's caused by greylisting. iRedMail has greylisting enabled by default, it's provided by package Cluebringer, its main config file is /usr/local/etc/cluebringer.conf.
*) I cannot see why sending is slow, pasted log doesn't mention this.