Good afternoon,
I am having problems sending emails.
Could you help me?
I have already tried installing a new certificate and the ports are all OK.
The log errors are as follows:
[2026-01-06 18:47:51][DEBUG] - unzip -o panel.zip -d /www/server/ && chmod 700 /www/server/panel/BT-Panel
/www/server/panel/class_v2/system_v2.py:678: SyntaxWarning: invalid escape sequence '\d'
networkInfo['simple_system'] = networkInfo['system'].split(' ')[0] + ' ' + re.search('\d+', networkInfo['system']).group()
DEPRECATION: Loading egg at /www/server/panel/pyenv/lib/python3.12/site-packages/PyMySQL-0.9.3-py3.12.egg is deprecated. pip 24.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Discussion can be found at https://github.com/pypa/pip/issues/12330
Collecting jsonpath
Downloading jsonpath-0.82.2.tar.gz (10 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: jsonpath
Building wheel for jsonpath (setup.py): started
Building wheel for jsonpath (setup.py): finished with status 'done'
Created wheel for jsonpath: filename=jsonpath-0.82.2-py3-none-any.whl size=5617 sha256=370a6fa321ea22e24ddd72d2b9049f3f3505f9c33a7ab727b4417a3e3c2eb51f
Stored in directory: /root/.cache/pip/wheels/73/76/e2/980a29341fe37a583ada29594ed529708d5e8e2c0f9d97c3cc
Successfully built jsonpath
Installing collected packages: jsonpath
Successfully installed jsonpath-0.82.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[notice] A new release of pip is available: 24.0 -> 25.3
[notice] To update, run: /www/server/panel/pyenv/bin/python3 -m pip install --upgrade pip
/www/server/panel/pyenv/lib/python3.12/site-packages/urllib3/connectionpool.py:1061: InsecureRequestWarning: Unverified HTTPS request is being made to host 'www.aapanel.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
/www/server/panel/pyenv/lib/python3.12/site-packages/urllib3/connectionpool.py:1061: InsecureRequestWarning: Unverified HTTPS request is being made to host 'www.aapanel.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
warnings.warn(
[2026-01-06 18:53:32][DEBUG] - 'NoneType' object has no attribute 'startswith'
tasks get_list
tasks get_list
tasks get_list
tasks get_list
/var/spool/postfix/lib
/var/spool/postfix/defer
/var/spool/postfix/maildrop
/var/spool/postfix/dev
/var/spool/postfix/active
/var/spool/postfix/hold
/var/spool/postfix/trace
/var/spool/postfix/bounce
/var/spool/postfix/corrupt
/var/spool/postfix/deferred
/var/spool/postfix/public
/var/spool/postfix/private
/var/spool/postfix/etc
/var/spool/postfix/incoming
/var/spool/postfix/flush
/var/spool/postfix/saved
/var/spool/postfix/usr
/var/spool/postfix/pid
[2026-01-06 19:33:02][DEBUG] - Traceback (most recent call last):
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 2905, in send_mail
send_mail_client = SendMail(mail_from, password, 'localhost')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 92, in init
self.mailServer = smtplib.SMTP(self.smtpServer, self.smtpPort)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 255, in init
(code, msg) = self.connect(host, port)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 343, in connect
(code, msg) = self.getreply()
^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 405, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed
Exception ignored in: <function SendMail.del at 0x7e347f1c6020>
Traceback (most recent call last):
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 140, in del
self.mailServer.close()
^^^^^^^^^^^^^^^
AttributeError: 'SendMail' object has no attribute 'mailServer'
[2026-01-06 21:32:26][DEBUG] - Traceback (most recent call last):
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 2905, in send_mail
send_mail_client = SendMail(mail_from, password, 'localhost')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 92, in init
self.mailServer = smtplib.SMTP(self.smtpServer, self.smtpPort)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 255, in init
(code, msg) = self.connect(host, port)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 343, in connect
(code, msg) = self.getreply()
^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 405, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed
Exception ignored in: <function SendMail.del at 0x7e347f1c6020>
Traceback (most recent call last):
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 140, in del
self.mailServer.close()
^^^^^^^^^^^^^^^
AttributeError: 'SendMail' object has no attribute 'mailServer'
[2026-01-06 21:39:34][DEBUG] - cloudflare get_domains error get domains fail
[2026-01-06 21:43:31][DEBUG] - Traceback (most recent call last):
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 2905, in send_mail
send_mail_client = SendMail(mail_from, password, 'localhost')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 92, in init
self.mailServer = smtplib.SMTP(self.smtpServer, self.smtpPort)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 255, in init
(code, msg) = self.connect(host, port)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 343, in connect
(code, msg) = self.getreply()
^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 405, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed
Exception ignored in: <function SendMail.del at 0x7e347f1c6020>
Traceback (most recent call last):
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 140, in del
self.mailServer.close()
^^^^^^^^^^^^^^^
AttributeError: 'SendMail' object has no attribute 'mailServer'
[2026-01-06 21:48:50][DEBUG] - Traceback (most recent call last):
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 2905, in send_mail
send_mail_client = SendMail(mail_from, password, 'localhost')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 92, in init
self.mailServer = smtplib.SMTP(self.smtpServer, self.smtpPort)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 255, in init
(code, msg) = self.connect(host, port)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 343, in connect
(code, msg) = self.getreply()
^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 405, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed
Exception ignored in: <function SendMail.del at 0x7e347f1c6020>
Traceback (most recent call last):
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 140, in del
self.mailServer.close()
^^^^^^^^^^^^^^^
AttributeError: 'SendMail' object has no attribute 'mailServer'
/www/server/panel/class_v2/firewallModelV2/iptablesServices.py:94: SyntaxWarning: invalid escape sequence '.'
ipset_cmd = "ipset list {}bt_user{}_ipset | awk '/[0-9]+.[0-9]+.[0-9]+.[0-9]+/ && /timeout/ {{print $1, $3}}'".format(
[2026-01-06 21:51:53][DEBUG] - Traceback (most recent call last):
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 2905, in send_mail
send_mail_client = SendMail(mail_from, password, 'localhost')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 92, in init
self.mailServer = smtplib.SMTP(self.smtpServer, self.smtpPort)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 255, in init
(code, msg) = self.connect(host, port)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 343, in connect
(code, msg) = self.getreply()
^^^^^^^^^^^^^^^
File "/www/server/panel/pyenv/lib/python3.12/smtplib.py", line 405, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed
Exception ignored in: <function SendMail.del at 0x7e347f1c6020>
Traceback (most recent call last):
File "/www/server/panel/plugin/mail_sys/mail_sys_main.py", line 140, in del
self.mailServer.close()
^^^^^^^^^^^^^^^
AttributeError: 'SendMail' object has no attribute 'mailServer'
[2026-01-07 06:53:32][DEBUG] - 'NoneType' object has no attribute 'startswith'
Evaluate
Pain