我在Debian上运行exim 4.84_2,现在几周后,我从anacron那里得到了以下邮件:
/etc/cron.daily/exim4-base: LOG: MAIN Warning: purging the environment. Suggested action: use keep_environment.
我已将以下行添加到/etc/exim4/exim4.conf.template :
keep_environment =
但是在运行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
有任何想法吗?
在Debian上,你可以设置macros
MAIN_KEEP_ENVIRONMENT =
在/etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs或者你设置你的macros的地方。 请参阅:/usr/share/doc/exim4/changelog.Debian.gz
请注意exim4.conf.template和/etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs中的注释:
# /etc/exim4/exim4.conf.template is only used with the non-split # configuration scheme. # /etc/exim4/conf.d/main/01_exim4-config_listmacrosdefs is only used # with the split configuration scheme.
换句话说,要编辑的文件可能会有所不同,具体取决于您是否使用拆分configuration文件。
我遵循下面的链接中的configuration示例,它的工作原理: