Exim 4.94 update causes email temporary rejects

I've downgraded to Exim 4.93 and exim_conf 4.5.22 to resolve the issue temporarily.

/usr/local/directadmin/custombuild/custom_versions.txt and added:
exim_conf_45:4.5.22:
exim:4.93:

After that i rebuilded exim, that solved the issue for now and my mail queue is running perfectly again.
 
Yes looks like they are working on it a few Taint Bugs in there. Looks like they have a fix but not sure if its Released.

All of these were backported to 4.94 on DA fileservers when they got fixed (the same day DA included 4.94 in versions.txt). So, they're not a problem there :) It's likely some post/pre custom configs, or not latest versions of exim/eximconf.
 
It's likely some post/pre custom configs, or not latest versions of exim/eximconf.

/usr/local/directadmin/custombuild# ls -alh ...

-rw-r--r-- 1 root root 2.5M Jun 21 12:56 exim-4.94.tar.gz

exim=yes
eximconf=yes
eximconf_release=4.5

clamav=no
mailman=no
spamassassin=yes
mail-header-patch=no
dovecot=yes

I don't have any custom configurations.

The exim.conf diff from the da server (http://files.directadmin.com/services/exim.conf) compared to the /etc/ one:

/tmp/direct# diff exim.conf /etc/exim.conf
607c607,608
< user = "mail"
---
> user = "${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}"
> group = "mail"
609c610
< file_transport = address_file
---
> directory_transport = address_file
769c770,773
< file = /var/mail/$local_part
---
> directory = /home/$local_part/Maildir/
> directory_mode = 770
> create_directory = true
> maildir_format
781c785
< directory_mode = 700
---
> directory_mode = 770
783c787,788
< file = /var/spool/virtual/${domain}/${local_part}
---
> directory = /home/${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}/imap/${domain}/${local_part}/Maildir
> maildir_format

Which, as far as I understand is patched by ./build exim_conf


Am I missing something?
 
This is 2.1.1, 4.5.25 is required for exim 4.94.

Ok, that makes sense to result in failure then - so why this:

./build exim_conf
converted 'http://files-fr.directadmin.com/services/exim.conf' (ANSI_X3.4-1968) -> 'http://files-fr.directadmin.com/services/exim.conf' (UTF-8)
--2020-06-22 22:54:23-- http://files-fr.directadmin.com/services/exim.conf
Resolving files-fr.directadmin.com (files-fr.directadmin.com)... 176.31.211.20
Connecting to files-fr.directadmin.com (files-fr.directadmin.com)|176.31.211.20|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://files-fr.directadmin.com/services/exim.conf [following]
converted 'https://files-fr.directadmin.com/services/exim.conf' (ANSI_X3.4-1968) -> 'https://files-fr.directadmin.com/services/exim.conf' (UTF-8)
--2020-06-22 22:54:23-- https://files-fr.directadmin.com/services/exim.conf
Connecting to files-fr.directadmin.com (files-fr.directadmin.com)|176.31.211.20|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 35592 (35K) [application/octet-stream]
Saving to: '/etc/exim.conf'

/etc/exim.conf 100%[===============================================================================>] 34.76K --.-KB/s in 0s

2020-06-22 22:54:23 (161 MB/s) - '/etc/exim.conf' saved [35592/35592]

Even though I explicitly specify 4.5 and it is in versions.txt:

exim_conf_2:2.1.2:b529f66fe16bea36b430292353780106
exim_conf_4:4.2.6:74a5f0684cc19860eb9a8db47e7dd79d
exim_conf_43:4.3.6:c76cde7817f7e66ca8fab27d9031b32b
exim_conf_44:4.4.8:b526c59187ce36e4bef0092f20919a8c
exim_conf_45:4.5.25:ed054b832ceb9b77ede9cbc77fcca2b
 
Please let me know the output of:
Code:
cd /usr/local/directadmin/custombuild
./build version
grep ^exim options.conf

I guess you're using EOL CustomBuild 1.X.
 
Was this eventually solved? We get tons of

2020-06-25 12:31:10 H=remote-host X=TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no F=<> temporarily rejected RCPT <[email protected]>: failed to expand "${if exists{/etc/virtual/${domain}/aliases}{${lookup{$local_part}lsearch{/etc/virtual/${domain}/aliases}}}}": NULL

Anybody here got some suggestions?
 
I removed exim.conf and did a ./build exim && ./build exim_conf several times. I've got

```
exim=yes
eximconf=yes
eximconf_release=4.5
```

in my options.conf
 
Have you checked your Custombuild version? The last solution/problem was around using Custombuild 1.x.

If you type ./build on top it should say like Version: 2.0.0 (rev: 2513)
 
I've switched to version 2 (was using 1) after reading this post, but that didn't seem to change anything intuit part. It does build 4.94, but the config file used is invalid. It contains that if exists-line and that triggers those errors in maillog in receiving.
 
So when you switched fro CB 1 > 2 did you do all of this?

2. How to upgrade custombuild to 2.0?
The best way to do that is a complete reinstallation of CustomBuild, because of changes in configuration files, options.conf etc.
Please note that you need DirectAdmin version 1.46 at least to run CustomBuild 2.0.

IMPORTANT: It's recommended to execute pre-installation commands again before the upgrade: http://help.directadmin.com/item.php?id=354.

Code:
cd /usr/local/directadmin
mv custombuild custombuild_1.x
wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build update_da

Please check your options.conf file, set the settings you would like to have. The following steps are needed after upgrade of the CustomBuild script, if you would like to use apache:
Code:
./build apache <<< Your webserver here.
./build php n
./build rewrite_confs

However, if you want to rebuild everything:
Code:
./build all d
 
Back
Top