Exim doesn't work anymore after updates customebuild

theplayer

Verified User
Joined
Jan 26, 2009
Messages
69
I updatet everything under custombuild in DA. everything works fine beside Exim. under custom build i still see the option to update exim, he tries, but I get an error. Rebuilding all and restart exim doesn't work (running services stays on status stopped) or solve the problem.

Under update software it says:
current version 4.94 available version 4.96.2-12-g29d01ae2a

If I press update this are the logs:

Code:
Get:1 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]
Reading package lists...E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldoldstable'
E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldoldstable'
E: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldoldstable-updates'
Reading package lists...
Building dependency tree...Reading state information...
libdb-dev is already the newest version (5.3.1+nmu1).
gcc is already the newest version (4:8.3.0-1).
make is already the newest version (4.2.1-1.2).
libperl-dev is already the newest version (5.28.1-6+deb10u1).
libssl-dev is already the newest version (1.1.1d-0+deb10u5).
The following additional packages will be installed:
  libpcre2-16-0 libpcre2-32-0 libpcre2-posix0 libspf2-2
The following NEW packages will be installed:
  libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix0 libspf2-2
  libspf2-dev
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 118 kB/1218 kB of archives.
After this operation, 3991 kB of additional disk space will be used.
Err:1 http://deb.debian.org/debian buster/main amd64 libspf2-2 amd64 1.2.10-7+b5
  404  Not Found [IP: 199.232.150.132 80]
Err:2 http://deb.debian.org/debian buster/main amd64 libspf2-dev amd64 1.2.10-7+b5
  404  Not Found [IP: 199.232.150.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/libs/libspf2/libspf2-2_1.2.10-7+b5_amd64.deb  404  Not Found [IP: 199.232.150.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/libs/libspf2/libspf2-dev_1.2.10-7+b5_amd64.deb  404  Not Found [IP: 199.232.150.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Installing packages 'gcc make libssl-dev libpcre2-dev libperl-dev libdb-dev libspf2-dev' using apt-get attempt 1/3 failed
Reading package lists...
Building dependency tree...Reading state information...
libdb-dev is already the newest version (5.3.1+nmu1).
gcc is already the newest version (4:8.3.0-1).
make is already the newest version (4.2.1-1.2).
libperl-dev is already the newest version (5.28.1-6+deb10u1).
libssl-dev is already the newest version (1.1.1d-0+deb10u5).
The following additional packages will be installed:
  libpcre2-16-0 libpcre2-32-0 libpcre2-posix0 libspf2-2
The following NEW packages will be installed:
  libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix0 libspf2-2
  libspf2-dev
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 118 kB/1218 kB of archives.
After this operation, 3991 kB of additional disk space will be used.
Err:1 http://deb.debian.org/debian buster/main amd64 libspf2-2 amd64 1.2.10-7+b5
  404  Not Found [IP: 199.232.150.132 80]
Err:2 http://deb.debian.org/debian buster/main amd64 libspf2-dev amd64 1.2.10-7+b5
  404  Not Found [IP: 199.232.150.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/libs/libspf2/libspf2-2_1.2.10-7+b5_amd64.deb  404  Not Found [IP: 199.232.150.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/libs/libspf2/libspf2-dev_1.2.10-7+b5_amd64.deb  404  Not Found [IP: 199.232.150.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Installing packages 'gcc make libssl-dev libpcre2-dev libperl-dev libdb-dev libspf2-dev' using apt-get attempt 2/3 failed
Reading package lists...
Building dependency tree...Reading state information...
libdb-dev is already the newest version (5.3.1+nmu1).
gcc is already the newest version (4:8.3.0-1).
make is already the newest version (4.2.1-1.2).
libperl-dev is already the newest version (5.28.1-6+deb10u1).
libssl-dev is already the newest version (1.1.1d-0+deb10u5).
The following additional packages will be installed:
  libpcre2-16-0 libpcre2-32-0 libpcre2-posix0 libspf2-2
The following NEW packages will be installed:
  libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix0 libspf2-2
  libspf2-dev
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 118 kB/1218 kB of archives.
After this operation, 3991 kB of additional disk space will be used.
Err:1 http://deb.debian.org/debian buster/main amd64 libspf2-2 amd64 1.2.10-7+b5
  404  Not Found [IP: 199.232.150.132 80]
Err:2 http://deb.debian.org/debian buster/main amd64 libspf2-dev amd64 1.2.10-7+b5
  404  Not Found [IP: 199.232.150.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/libs/libspf2/libspf2-2_1.2.10-7+b5_amd64.deb  404  Not Found [IP: 199.232.150.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/libs/libspf2/libspf2-dev_1.2.10-7+b5_amd64.deb  404  Not Found [IP: 199.232.150.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Installing packages 'gcc make libssl-dev libpcre2-dev libperl-dev libdb-dev libspf2-dev' using apt-get attempt 3/3 failed
Reading package lists...Building dependency tree...Reading state information...
da-exim is already the newest version (1.0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
download_with_cache: using cached '/usr/local/directadmin/custombuild/cache/exim-4.96.2-12-g29d01ae2a.tar.gz' file
Compiling exim...
/bin/sh scripts/source_checks

>>> Creating links to source files...
>>> Creating lookups/Makefile for building dynamic modules
>>> New Makefile & lookups/Makefile installed
>>> Use "make makefile" if you need to force rebuilding of the makefile
 
make[1]: warning: -j2 forced in submake: resetting jobserver mode.
make[1]: Entering directory '/usr/local/directadmin/custombuild/tmp/tmp.ivglDWr0XM.exim-4.96.2-12-g29d01ae2a.tar.gz/build-Linux-x86_64'
/bin/sh ../scripts/Configure-os.c
cc buildconfig.c
/bin/sh ../scripts/Configure-os.h
cc exim_lock.c
cc -o exim_lock
>>> exim_lock utility built
 
/bin/sh ../scripts/Configure-config.h "make"
make[2]: Entering directory '/usr/local/directadmin/custombuild/tmp/tmp.ivglDWr0XM.exim-4.96.2-12-g29d01ae2a.tar.gz/build-Linux-x86_64'
make[2]: 'buildconfig' is up to date.
make[2]: Leaving directory '/usr/local/directadmin/custombuild/tmp/tmp.ivglDWr0XM.exim-4.96.2-12-g29d01ae2a.tar.gz/build-Linux-x86_64'
Building configuration file config.h
>>> config.h built

cc -DMACRO_PREDEF macro_predef.c
cc -DMACRO_PREDEF globals.c
In file included from macro_predef.c:12:
exim.h:527:10: fatal error: pcre2.h: No such file or directory
 #include <pcre2.h>
          ^~~~~~~~~
In file included from globals.c:12:
exim.h:527:10: fatal error: pcre2.h: No such file or directory
 #include <pcre2.h>
          ^~~~~~~~~
compilation terminated.
compilation terminated.
make[1]: *** [Makefile:261: macro-globals.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:258: macro_predef.o] Error 1
make[1]: Leaving directory '/usr/local/directadmin/custombuild/tmp/tmp.ivglDWr0XM.exim-4.96.2-12-g29d01ae2a.tar.gz/build-Linux-x86_64'
make: *** [Makefile:36: all] Error 2
doExim: failed to compile '/usr/local/directadmin/custombuild/cache/exim-4.96.2-12-g29d01ae2a.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.ivglDWr0XM.exim-4.96.2-12-g29d01ae2a.tar.gz'
failed to compile exim 4.96.2-12-g29d01ae2a

It doesn't update, and it doesn't want to run the old version either.

What can I do to fix this issue with exim so my e-mail will work again?
 
Last edited:
See this thread for possible solutions;


You may have leftover custom libraries installed by CustomBuild from the past few years.
 
The problem is that libspf2-2 wasn’t downloaded, it shows a bunch of 404 error attempting to download it. It could have something to do with the repositories not being configured properly, there is mention of some repos being renamed for your version of Debian.
 
The problem is that libspf2-2 wasn’t downloaded, it shows a bunch of 404 error attempting to download it. It could have something to do with the repositories not being configured properly, there is mention of some repos being renamed for your version of Debian.
This is my /etc/apt/sources.list (have Debian 10.8)

Code:
#

# deb cdrom:[Debian GNU/Linux 10.8.0 _Buster_ - Official amd64 NETINST 20210206-10:34]/ buster main

#deb cdrom:[Debian GNU/Linux 10.8.0 _Buster_ - Official amd64 NETINST 20210206-10:34]/ buster main

deb http://archive.debian.org/debian/ buster main
deb-src http://archive.debian.org/debian/ buster main

deb http://archive.debian.org/debian-security buster/updates main
deb-src http://archive.debian.org/debian-security buster/updates main

# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main
deb-src http://deb.debian.org/debian/ buster-updates main

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
 
when I googled one of your errors, they said that you need to fix your repositories by using the command:
apt-get update --allow-releaseinfo-change
as root of course. Once your repositories are fixed, try the update again, hopefully then it will locate the libspf2-2 that exim requires.
 
when I googled one of your errors, they said that you need to fix your repositories by using the command:
apt-get update --allow-releaseinfo-change
as root of course. Once your repositories are fixed, try the update again, hopefully then it will locate the libspf2-2 that exim requires.
I followed this instructions and it updated it and reboots the server and everything is running again.

Although I don't get any mail yet... How can I check that this is working well? Send myself an e-mail but don't get an error nor I got the email yet.

update: sending a test e-mail to another e-mail address outside my server works!

Only receiving is not working, maybe because my domainname holder tries only after few hours because my mail was not working for 1,5 days?
 
https://www.mail-tester.com/ is the best way to diagnose those type of issues, assuming the emails are able to leave your server.
10/10 so no issues by sending.

Only issue is receiving; My domainname and mx-record is hosted by transip, I think that because my mailserver didn't work, they wait to retry to send the e-mail to my mailserver.
 
hmm I got some spam, so I think some providers hold my e-mails and resend them by time I think.
 
My domainname and mx-record is hosted by transip
If your mailserver is working, they don't hold new mails which you send -now-, only mails which could not be delivered before.

You can test it yourself, from another server, telnet to your server's MX record on port 25 like this:
telnet mail.domain.com 25
and see if you get your Exim responding, if yes then your mail should work already and current mail tests should arrive.

Be aware that port 23 should be opened in your other server to be able to telnet to outside. Also don't try this from home, most ISP's (like Ziggo and KPN and a lot of others) closed port 25 outgoing so telnetting to port 25 is out of the question in that case. Which is why I suggest to use another server (or vps) for it.
 
If your mailserver is working, they don't hold new mails which you send -now-, only mails which could not be delivered before.

You can test it yourself, from another server, telnet to your server's MX record on port 25 like this:
telnet mail.domain.com 25
and see if you get your Exim responding, if yes then your mail should work already and current mail tests should arrive.

Be aware that port 23 should be opened in your other server to be able to telnet to outside. Also don't try this from home, most ISP's (like Ziggo and KPN and a lot of others) closed port 25 outgoing so telnetting to port 25 is out of the question in that case. Which is why I suggest to use another server (or vps) for it.
Everything works again. Some internetproviders couldn't deliver mail, so by sending a new email the que the email to try later (this case 8 hours later, all the send emails were delivered).
 
Back
Top