我有一个无法处理的问题,我的邮件服务器每周都会停止一次。我每次都必须重新启动服务器,然后一切正常。
在日志中我发现以下错误:
NOQUEUE: client=a68-116.smtp-out.amazonses.com[54.240.68.116]
Feb 14 12:29:26 mail postfix/smtpd[23528]: warning: connect to proxy filter inet:[127.0.0.1]:10024: Connection refused
Feb 14 12:29:26 mail postfix/smtpd[23528]: proxy-reject: END-OF-MESSAGE: 451 4.3.0 Error: queue file write error; from=<010001864fafb540-11d9e933-3c9f-4424-9d25-fe891877e64d-000000@mail.canva.com> to=<[email protected]> proto=ESMTP helo=<a68-116.smtp-out.amazonses.com>
Feb 14 12:29:45 mail postfix/cleanup[17629]: E9F8B246724: message-id=<[email protected]>
Feb 14 12:29:45 mail postfix/qmgr[26618]: E9F8B246724: from=<[email protected]>, size=1532, nrcpt=1 (queue active)
知道我已经增加了主配置中的 size_limit。
其中一篇帖子说我必须检查 amavis 是否正在运行。但是,似乎我的 ubuntu 服务器上安装了多个名为 amavis 的服务:
root@mail:/var# systemctl status amavis
amavisd-new.service amavisd-snmp-subagent.service amavis-mc.service amavis.service amavis-snmp-subagent.service
我发现在我重启服务器之后它们都处于非活动状态。
我的根目录中还有一封邮件,它出现在我的服务器上。它包含以下消息:
Received: by mail.myserver.de (Postfix, from userid 0)
id 5472D246727; Tue, 14 Feb 2023 15:54:05 +0100 (CET)
From: [email protected] (Cron Daemon)
To: [email protected]
Subject: Cron <root@mail> $PYTHON $INSTANCE/manage.py generate_rights
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Cron-Env: <PYTHON=/srv/modoboa/env/bin/python>
X-Cron-Env: <INSTANCE=/srv/modoboa/instance>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Message-Id: <[email protected]>
Date: Tue, 14 Feb 2023 15:54:05 +0100 (CET)
/srv/modoboa/env/lib/python3.6/site-packages/redis/utils.py:12: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
import cryptography # noqa
/srv/modoboa/env/lib/python3.6/site-packages/requests/__init__.py:104: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (5.0.0)/charset_normalizer (2.0.12) doesn't match a supported version!
RequestsDependencyWarning)
我很高兴能得到任何帮助!谢谢!