• Support
  • Error in Mail Server and not receiving mails

Hello, i have installed aapanel in centos 7 with Mail Server 7.04 (latest) i can send mails with no issue, but i have those problems:

1.- When i create a user in mail server this error appears.

And viewing the log:

Something went wrong, an error occurred while running [Mail Server]!
AttributeError: module 'public' has no attribute 'recursive_set_own'
REQUEST_DATE: 2025-03-14 16:03:13
PAN_VERSION: 7.0.16
OS_VERSION: CentOS 7.9.2009 x86_64(Py3.12.3)
REMOTE_ADDR: 181.43.xx.xx
REQUEST_URI: POST /plugin%3Faction%3Da%26amp%3Bname%3Dmail_sys%26amp%3Bs%3Dadd_mailbox
REQUEST_FORM: {'quota': '1 GB', 'username': 'contacto@xxxxx.cl', 'password': '36i13Fr8FjkFazF8', 'full_name': 'contacto', 'is_admin': '0'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Traceback (most recent call last):
File "/www/server/panel/class/panelPlugin.py", line 2256, in a
return public.run_plugin(get.name, get.s, get)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/class/public/common.py", line 8668, in run_plugin
raise PanelError(res['msg'])
public.exceptions.PanelError: An error occurred while the panel was running: Traceback (most recent call last):
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 2214, in add_mailbox
public.recursive_set_own(user_path, 'vmail', 'mail')
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'public' has no attribute 'recursive_set_own'

But the user is created anyways, but for each user that i created the error appears.

2.- And the second problem, most urgent is that i can't receive mails....checking the log, and the error:

Error: file_dotlock_open(/www/vmail/xxxxx.cl/contacto/dovecot.index.log) failed: Permission denied (euid=150(vmail) egid=8(mem) missing +w perm: /www/vmail/xxxxx.cl/contacto, dir owned by 0:0 mode=0755)
Mar 14 17:53:47 localhost dovecot: lmtp(contacto@xxxxxxx.cl): Error: open(/www/vmail/xxxxxxx.cl/contacto/tmp/1741985627.M54405P19586.localhost.localdomain) failed: Permission denied
Mar 14 17:53:47 localhost dovecot: lmtp(contacto@xxxxxxxxx.cl): Error: sAhPAluX1GeCTAAA0J78UA: sieve: msgid=58642027.7010235.1741985617850@mail.yahoo.com: failed to store into mailbox 'INBOX': Internal error occurred. Refer to server log for more information. [2025-03-14 17:53:47]

i check and the folder vmail has access to user vmail and permissions 770:

How can i resolve those errors?....thanks for your help!...really appreciate


    Hello,
    Question 1: Please try to click on the "Fix" repair panel on the homepage. Can this problem be solved?
    Question 2: The permissions of vmail should be 755 chmod 755 /www/vmail

    aaP_jpd

    Hi, thanks for reply, about your answer:

    1.- I'll give a try when i can and let you know.

    2.- i executed: chmod 755/www/vmail but the error still remain:

    Mar 17 08:50:33 vps01 postfix/cleanup[6422]: 8A9CDC12BB6F: message-id=1101729987.8070035.1742212228445@mail.yahoo.com
    Mar 17 08:50:34 vps01 postfix/qmgr[13729]: 8A9CDC12BB6F: from=juanpaulsend@yahoo.es, size=5948, nrcpt=1 (queue active)
    Mar 17 08:50:34 vps01 dovecot: lmtp(6424): Connect from local
    Mar 17 08:50:34 vps01 dovecot: lmtp(contacto@xxxxx.cl): Error: file_dotlock_open(/www/vmail/xxxxx.cl/contacto/dovecot.index.log) failed: Permission denied (euid=150(vmail) egid=8(mem) missing +w perm: /www/vmail/xxxxx.cl/contacto, dir owned by 0:0 mode=0755)
    Mar 17 08:50:34 vps01 dovecot: lmtp(contacto@xxxxx.cl): Error: open(/www/vmail/xxxxx.cl/contacto/tmp/1742212234.M749283P6424.vps01.baumsystem.com) failed: Permission denied
    Mar 17 08:50:34 vps01 dovecot: lmtp(contacto@xxxxx.cl): Error: uM2oK4oM2GcYGQAAz5YRmw: sieve: msgid=1101729987.8070035.1742212228445@mail.yahoo.com: failed to store into mailbox 'INBOX': Internal error occurred. Refer to server log for more information. [2025-03-17 08:50:34]
    Mar 17 08:50:34 vps01 dovecot: lmtp(contacto@xxxxx.cl): Error: uM2oK4oM2GcYGQAAz5YRmw: sieve: Execution of script /usr/lib/dovecot/sieve/spam-to-folder.sieve was aborted due to temporary failure
    Mar 17 08:50:34 vps01 dovecot: lmtp(6424): Disconnect from local: Successful quit
    Mar 17 08:50:34 vps01 postfix/lmtp[6423]: 8A9CDC12BB6F: to=contacto@xxxxx.cl, relay=vps01.baumsystem.com[private/dovecot-lmtp], delay=2.4, delays=2.4/0.01/0.02/0.02, dsn=4.2.0, status=deferred (host vps01.baumsystem.com[private/dovecot-lmtp] said: 451 4.2.0 contacto@xxxxx.cl Internal error occurred. Refer to server log for more information. [2025-03-17 08:50:34] (in reply to end of DATA command))

    and in the server log this error appears:

    [2025-03-17 08:55:35][DEBUG] - Traceback (most recent call last):
    File "/www/server/panel/task.py", line 1350, in mailsys_domain_restrictions
    SendMailBulk()._get_user_quota()
    File "/www/server/panel/plugin/mail_sys/mail_send_bulk.py", line 4094, in _get_user_quota
    1+QDiKaQ67D+7Wg0+pj/DGGSdlLtBmU3QEwvvdKMRZPuT7fVUdHgvDhsqXqSaU2h
    ~~~~~~~~~~~~~~~~~~~~~
    File "/www/server/panel/plugin/mail_sys/mail_send_bulk.py", line 4132, in _get_month_senduse
    1+QDiKaQ67D+7Wg0+pj/DAoLgECgs6Bd/0S01NS3ABhHVEKcaAXTHg+tg2PdYvNB
    ^^^^^^^^^^^^^^^
    TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

    any suggestion? ...thanks..

    by the way this folder 8and other inside xxxx.cl has this permisision:

    it should have the 755/vmail permission instead 755/root? ...how i change that?

      "chown -R vmail:mail /www/vmail" this resolution ok.

      i haven't yet tested the reply for question 1.- but i'll test when i can...and let you know.

      for the 2.- question it worked...thanks!