如何在 Debian 上的 exim 4 中使用“keep_environment”选项

Mat*_*ias 5 debian exim cron

我在 Debian 上运行 exim 4.84_2,几周后我从 anacron 收到以下邮件:

/etc/cron.daily/exim4-base:
LOG: MAIN
  Warning: purging the environment.
 Suggested action: use keep_environment.
Run Code Online (Sandbox Code Playgroud)

我已将以下行添加到/etc/exim4/exim4.conf.template

keep_environment =
Run Code Online (Sandbox Code Playgroud)

但是在运行时update-exim4.conf出现以下错误:

2016-05-17 00:20:00 Exim configuration error in line 900 of /var/lib/exim4/config.autogenerated.tmp:
  option "keep_environment" unknown
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

小智 2

在 Debian 上你可以设置宏

MAIN_KEEP_ENVIRONMENT =
Run Code Online (Sandbox Code Playgroud)

在 /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs 或您设置宏的位置。请参阅:/usr/share/doc/exim4/changelog.Debian.gz