1

Topic: Problem incoming size limit per user iredmail pro LDAP 2.2.2

==== Required information ====
- iRedMail version: iRedMail-PRO LDAP 2.2.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: Centos 6
- Related log if you're reporting an issue:
====

I have same problem with incoming size limit per user, the problem is like below url :
http://www.iredmail.org/forum/topic8780 … -user.html

After I upgrade as same as you proposed in the above url, than I try to sending mail but i have some problem.
The postfix global parameter size is "message_size_limit = 10485760", its same as 10MB, right?
Than I set one user account incoming size to 40MB from iredadmin, and try to sending mail 20MB to that user account mail.
But, I get mail bounceback like this :

The error that the other server returned was:
552 5.3.4 Message size exceeds fixed limit

But, if I set that user account incoming size from iredadmin to under 10MB, its works.

So, can I set that user accont incoming size from iredadmin to above 10MB, without change the postfix global parameter size?

----

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

2

Re: Problem incoming size limit per user iredmail pro LDAP 2.2.2

*) Any related log in iRedAPD log file (/var/log/iredapd.log) and Postfix log file (/var/log/maillog)?
*) could you please paste me the value (that integer number) you set with iRedAdmin-Pro?

3

Re: Problem incoming size limit per user iredmail pro LDAP 2.2.2

ZhangHuangbin wrote:

*) Any related log in iRedAPD log file (/var/log/iredapd.log) and Postfix log file (/var/log/maillog)?
*) could you please paste me the value (that integer number) you set with iRedAdmin-Pro?

Dear Zhang,


I get this error in /var/log/iredapd.log :

2015-04-03 16:45:38 DEBUG --> Apply plugin: sql_user_restrictions
2015-04-03 16:45:38 DEBUG SQL to get restriction rules of sender (myemail@gmail.com):
        SELECT
            allowedrecipients, rejectedrecipients,
            allowedsenders, rejectedsenders
        FROM mailbox
        WHERE username='myemail@gmail.com'
        LIMIT 1

2015-04-03 16:45:38 DEBUG <!> Error: SimpleLDAPObject has no attribute 'execute'
2015-04-03 16:45:38 DEBUG Error while closing Amavisd database connection: AmavisdDBWrap instance has no attribute 'cursor'
2015-04-03 16:45:38 INFO [209.85.223.170] myemail@gmail.com -> testcbn@mydomain.com, DUNNO
2015-04-03 16:45:38 DEBUG Session ended
2015-04-03 16:45:38 DEBUG Close LDAP connection.

so sorry I hide my domain and my email, its my privacy.

-------------

and this is the log from /var/log/maillog

Apr  3 09:22:48 mail postfix/smtpd[14379]: connect from mail-ie0-f177.google.com[209.85.223.177]
Apr  3 09:22:50 mail postfix/smtpd[14379]: NOQUEUE: reject: MAIL from mail-ie0-f177.google.com[209.85.223.177]: 552 5.3.4 Message size exceeds fixed limit; proto=ESMTP helo=<mail-ie0-f177.google.com>
Apr  3 09:22:50 mail postfix/smtpd[14379]: disconnect from mail-ie0-f177.google.com[209.85.223.177]
Apr  3 09:22:57 mail postfix/smtpd[15372]: connect from unknown[124.195.119.195]
Apr  3 09:22:59 mail postfix/smtpd[15372]: lost connection after EHLO from unknown[124.195.119.195]
Apr  3 09:22:59 mail postfix/smtpd[15372]: disconnect from unknown[124.195.119.195]
Apr  3 09:22:59 mail postfix/smtpd[15372]: connect from unknown[124.195.119.195]


----------

this is the value that i set in iRedAdmin-Pro to user which i test :
41943040

----------


Thankyou Zhang

4

Re: Problem incoming size limit per user iredmail pro LDAP 2.2.2

Dear Zhang,

BTW, when I upgrade iredmail in this step :
http://www.iredmail.org/docs/upgrade.ir … mail-users



I get this log when I do "add ldap values for existing mail user" :

[root@mail source]# python updateLDAPValues_087_to_090.py
* Connecting to LDAP server: ldap://127.0.0.1:389
* Get all mail accounts...
Traceback (most recent call last):
  File "updateLDAPValues_087_to_090.py", line 29, in <module>
    ['mail', 'enabledService'])
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 516, in search_s
    return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 510, in search_ext_s
    return self.result(msgid,all=1,timeout=timeout)[1]
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 436, in result
    res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 440, in result2
    res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 446, in result3
    ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 96, in _ldap_call
    result = func(*args,**kwargs)
ldap.NO_SUCH_OBJECT: {'desc': 'No such object'}

what is relevant about this problem ?

5

Re: Problem incoming size limit per user iredmail pro LDAP 2.2.2

jco wrote:

2015-04-03 16:45:38 DEBUG --> Apply plugin: sql_user_restrictions

If you're running LDAP backend, please do NOT enable any iRedAPD plugins which have name start with 'sql_'.

jco wrote:

ldap.NO_SUCH_OBJECT: {'desc': 'No such object'}

Please make sure you set the correct ldap base dn in this script.

6

Re: Problem incoming size limit per user iredmail pro LDAP 2.2.2

Dear Zhang,
Firstly, so sorry about late reply.
I has been do this :

ZhangHuangbin wrote:
jco wrote:

2015-04-03 16:45:38 DEBUG --> Apply plugin: sql_user_restrictions

If you're running LDAP backend, please do NOT enable any iRedAPD plugins which have name start with 'sql_'.

jco wrote:

ldap.NO_SUCH_OBJECT: {'desc': 'No such object'}

Please make sure you set the correct ldap base dn in this script.

but it is not working, I has been restart service postfix, amavisd, dovecot, and iredapd.
and I'm not found the log about my mail in iredapd.log and maillog

7

Re: Problem incoming size limit per user iredmail pro LDAP 2.2.2

Dear Zhang,

i got this log mail from /var/log/maillog :

Apr  4 05:58:32 mail postfix/smtpd[4053]: connect from mail-ig0-f181.google.com[209.85.213.181]
Apr  4 05:58:33 mail postfix/smtpd[4053]: NOQUEUE: reject: MAIL from mail-ig0-f181.google.com[209.85.213.181]: 552 5.3.4 Message size exceeds fixed limit; proto=ESMTP helo=<mail-ig0-f181.google.com>
Apr  4 05:58:34 mail postfix/smtpd[4053]: disconnect from mail-ig0-f181.google.com[209.85.213.181]


but in the /var/log/iredapd.log i not found the log about my mail log.

8

Re: Problem incoming size limit per user iredmail pro LDAP 2.2.2

jco wrote:

Apr  4 05:58:33 mail postfix/smtpd[4053]: NOQUEUE: reject: MAIL from mail-ig0-f181.google.com[209.85.213.181]: 552 5.3.4 Message size exceeds fixed limit; proto=ESMTP helo=<mail-ig0-f181.google.com>

Let's move the discussion to your another topic since they have same error message:
http://www.iredmail.org/forum/topic8951 … hment.html

9

Re: Problem incoming size limit per user iredmail pro LDAP 2.2.2

ZhangHuangbin wrote:
jco wrote:

Apr  4 05:58:33 mail postfix/smtpd[4053]: NOQUEUE: reject: MAIL from mail-ig0-f181.google.com[209.85.213.181]: 552 5.3.4 Message size exceeds fixed limit; proto=ESMTP helo=<mail-ig0-f181.google.com>

Let's move the discussion to your another topic since they have same error message:
http://www.iredmail.org/forum/topic8951 … hment.html

Okay,
Thank you Zhang.