Exim not delivering inbound mails ("internal problem in domain_filter router")

netswitch

Verified User
Joined
Dec 15, 2003
Messages
225
Location
Belgium
Exim not delivering inbound mails ("internal problem in domain_filter router")

Hello

I have a strange issue with Exim on a Debian DirectAdmin VPS.

All used to work fine until we updated the directadmin licence.

The problem is : Exim is not delivering inbound mail into users mailboxes, log is filled with :
internal problem in domain_filter router (recipient is [email protected]): failure to transfer data from subprocess: status=0100 readerror='Success'

This seems to be a well known issue for which the solution is to chmod u+s /use/sbin/exim

Which I did :
root@s1:/usr/sbin# ls -thal | grep exim
-rwxr-xr-x 1 root root 4.7K Jan 1 13:36 exim_checkaccess
-rwxr-xr-x 1 root root 4.7K Jan 1 13:36 exim_checkaccess.O
-rwxr-xr-x 1 root root 19K Jan 1 13:36 exim_lock
-rwxr-xr-x 1 root root 19K Jan 1 13:36 exim_lock.O
-rwxr-xr-x 1 root root 148K Jan 1 13:36 eximstats
-rwxr-xr-x 1 root root 148K Jan 1 13:36 eximstats.O
-rwxr-xr-x 1 root root 15K Jan 1 13:36 exim_dbmbuild
-rwxr-xr-x 1 root root 15K Jan 1 13:36 exim_dbmbuild.O
-rwxr-xr-x 1 root root 23K Jan 1 13:36 exim_tidydb
-rwxr-xr-x 1 root root 23K Jan 1 13:36 exim_tidydb.O
-rwxr-xr-x 1 root root 29K Jan 1 13:36 exim_fixdb
-rwxr-xr-x 1 root root 29K Jan 1 13:36 exim_fixdb.O
-rwxr-xr-x 1 root root 21K Jan 1 13:36 exim_dumpdb
-rwxr-xr-x 1 root root 21K Jan 1 13:36 exim_dumpdb.O
-rwsr-xr-x 1 root root 1.3M Jan 1 13:36 exim
lrwxrwxrwx 1 root root 4 Dec 31 14:59 sendmail -> exim
-rwxr-xr-x 1 root root 73K Feb 17 2015 exim_convert4r4
-rwxr-xr-x 1 root root 1.5K Feb 17 2015 syslog2eximlog
root@s1:/usr/sbin#


But still after restarting the service multiple times, there is no luck.


I have found a temporary solution by starting exim as root by running the following command :
/usr/sbin/exim -bd -q1h


Then all mails get processed without issue.


So I believe there is some permission problem somewhere but I can't find where.

Any ideas ?


(in between we have run fix permission script and rebuilt exim, no effect)
 
Last edited:
It seems that the issue happened just after a custombuil call to build letsencrypt which triggered the following things :

2018-12-31 11:12:24 localhost: called: rewrite_confs
2018-12-31 11:12:40 localhost: Let's Encrypt client update requested
2018-12-31 11:12:41 localhost: called: letsencrypt
2018-12-31 14:12:44 localhost: Let's Encrypt client update requested
2018-12-31 14:12:45 localhost: called: letsencrypt
2018-12-31 14:12:09 localhost: Apache 2.4.37 installed
2018-12-31 14:12:40 localhost: libpng 1.6.36 installed
2018-12-31 14:12:11 localhost: jpegsrc.v9c.tar.gz installed
2018-12-31 14:12:49 localhost: libxml2 2.9.8 installed
2018-12-31 14:12:18 localhost: curl 7.63.0 installed
2018-12-31 14:12:11 localhost: FreeType 2.9.1 installed
2018-12-31 14:12:50 localhost: dovecot.conf installed
2018-12-31 14:12:52 localhost: Dovecot 2.3.4 installed
2018-12-31 14:12:36 localhost: Exim 4.91 installed
2018-12-31 14:12:37 localhost: exim.conf installed
2018-12-31 14:12:59 localhost: mariadb-10.0.37-linux-glibc_214-x86_64 installed
2018-12-31 14:12:36 localhost: libsodium 1.0.16 installed
2018-12-31 15:12:59 localhost: Ioncube 10.3.1 installed
2018-12-31 15:12:00 localhost: PHP 5.6.39 installed
2018-12-31 15:12:01 localhost: called: php_expert 5.6 php-fpm
2018-12-31 15:12:48 localhost: Let's Encrypt client update requested
2018-12-31 15:12:49 localhost: called: letsencrypt


Right after Exim or Exim.conf update the issue began.
 
Hello,

Just a guess... did you try to remove exim4-base? I see you have exim_convert4r4 which is distributed with exim4-base on Debian.

https://manpages.debian.org/jessie/exim4-base/exim_convert4r4.8.en.html


Do you have user mail in access group?

Code:
# grep ^access /etc/group
[B]access[/B]:x:1004:apache,nobody,[B]mail[/B],majordomo,daemon,ftp,nginx


And is still mail user's gid in

Code:
# cat /etc/virtual/*/passwd | cut -d \: -f4

Expected to see 12 as output, or other gid corresponding to the following output:

Code:
# grep mail /etc/group
mail:x:[B]12[/B]:postfix
 
Back
Top