exim4:queue_run_max:未找到

exim4:queue_run_max:未找到

我需要管理传出的并发 SMTP 连接的数量 - 其他邮件服务器抱怨我有超过 50 个并发连接并限制了我的传出邮件。

我搜索了一下,找到了“queue_run_max”选项,听起来正是我需要的。从我的阅读来看,它应该放在 exim4.conf 中,但我没有,可能是因为我使用的是拆分配置文件。无论如何,我的大多数选项都在 update-exim4.conf.conf 中,所以我将它添加到此文件中。然后我重新启动了 exim4 并收到此消息:

root@ds6419:/etc/exim4# /etc/init.d/exim4 restart
[....] Stopping MTA for restart:/usr/sbin/update-exim4.conf: 36: /etc/exim4/update-exim4.conf.conf: queue_run_max: not found

因此我删除了该选项并再次运行 exim4。

我能找到的唯一其他队列配置参数是在 /etc/default/exim4 中,我将其包含在下面:

# /etc/default/exim4
EX4DEF_VERSION=''
# 'combined' -   one daemon running queue and listening on SMTP port
# 'no'       -   no daemon running the queue
# 'separate' -   two separate daemons
# 'ppp'      -   only run queue with /etc/ppp/ip-up.d/exim4.
# 'nodaemon' - no daemon is started at all.
# 'queueonly' - only a queue running daemon is started, no SMTP listener.
# setting this to 'no' will also disable queueruns from /etc/ppp/ip-up.d/exim4
QUEUERUNNER='combined'
# how often should we run the queue
QUEUEINTERVAL='5m'
# options common to quez-runner and listening daemon
COMMONOPTIONS=''
# more options for the daemon/process running the queue (applies to the one
# started in /etc/ppp/ip-up.d/exim4, too.
QUEUERUNNEROPTIONS=''
# special flags given to exim directly after the -q. See exim(8)
QFLAGS=''
# Options for the SMTP listener daemon. By default, it is listening on
# port 25 only. To listen on more ports, it is recommended to use
# -oX 25:587:10025 -oP /var/run/exim4/exim.pid
SMTPLISTENEROPTIONS='-oX 465:25 -oP /var/run/exim4/exim.pid'

我的exim4版本是:

root@ds6419:/etc/exim4# exim4 --version
Exim version 4.80 #3 built 24-Jul-2014 03:28:10
Copyright (c) University of Cambridge, 1995 - 2012
(c) The Exim Maintainers and contributors in ACKNOWLEDGMENTS file, 2007 - 2012
Berkeley DB: Berkeley DB 5.1.29: (October 25, 2011)
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages DKIM
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
Configuration file is /var/lib/exim4/config.autogenerated

有人能帮忙吗?会queue_run_max去别的地方吗?或者我的 exim4 版本还有其他选项吗?

答案1

您正在使用 Debian exim4 拆分配置(您可能使用基于 Debian 或 Ubuntu 的发行版)。当提到基于 Debian 的系统时,我们总是特别说exim4表明这是一个非默认的 exim 配置。

您正在编辑的文件是模板配置文件,而不是 Debian 的 exim4 读取的实际文件。Debian init 脚本读取该文件的内容以及 /etc/exim4/ 中的几个模板文件,并从中汇编标准 exim4.conf 文件。您需要阅读http://pkg-exim4.alioth.debian.org/README/README.Debian.html了解更多详细信息。

最终答案是“如果 Debian 的配置已将该特定设置暴露给您的控制”,这有点不确定。这里的其他人可能更了解 Debian Exim4 配置控制。还有一个 Exim4 特定的邮件列表,您可以在其中获得权威答案http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users

相关内容