From eaeda2e7694fed8f1d1f88b5f9d73bced4ccc842 Mon Sep 17 00:00:00 2001 From: dpeca Date: Tue, 30 Aug 2016 17:45:33 +0200 Subject: [PATCH] Fix for: Warning: purging the environment. Suggested action: use keep_environment. Well known Exim4 issue. Skurudo gave a solution - https://forum.vestacp.com/viewtopic.php?t=11220#p42605 And, btw, you could think about adding: disable_ipv6=true ... because GMail and many others mail servers consider sending from ipv6 as spammy email. (very stupid logic, but it's simply true, if you are sending from ipv6 GMail will mark it as SPAM 100%) I'm not commiting this, I'll leave to you about this. In this commit I'm just fixing well known issue with keep_enviroment. --- install/debian/8/exim/exim4.conf.template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install/debian/8/exim/exim4.conf.template b/install/debian/8/exim/exim4.conf.template index f515fb18f..a85dda5e6 100644 --- a/install/debian/8/exim/exim4.conf.template +++ b/install/debian/8/exim/exim4.conf.template @@ -8,6 +8,9 @@ #SPAM_SCORE = 50 #CLAMD = yes +add_environment=<; PATH=/bin:/usr/bin +keep_environment= + domainlist local_domains = dsearch;/etc/exim4/domains/ domainlist relay_to_domains = dsearch;/etc/exim4/domains/ hostlist relay_from_hosts = 127.0.0.1