Cai i remove exim4

I noticed i have a complain about missing file in my dmesg

SysV service '/etc/init.d/exim4' lacks a native systemd unit file

My installation have

ID 4 | =2 | fish: friendly interactive shell | | https://dietpi.com/docs/software/system/#fish
ID 17 | =2 | Git: Clone and manage Git repositories locally |
ID 44 | =2 | Transmission: BitTorrent server with web interface (C) | | https://dietpi.com/docs/software/bittorrent/#transmission
ID 73 | =2 | Fail2Ban: prevents brute-force attacks with ip ban | | https://dietpi.com/docs/software/system_security/#fail2ban
ID 87 | =2 | SQLite: Persistent single-file database system | | https://dietpi.com/docs/software/databases/#sqlite
ID 89 | =2 | PHP: Hypertext Preprocessor for dynamic web content | | https://dietpi.com/docs/software/webserver_stack/#php
ID 93 | =2 | Pi-hole: block adverts for any device on your network | +Git | https://dietpi.com/docs/software/dns_servers/#pi-hole
ID 96 | =2 | Samba Server: Feature-rich SMB/CIFS server | | https://dietpi.com/docs/software/file_servers/#samba
ID 103 | =2 | DietPi-RAMlog: Makes /var/log a RAM disk, preserves file structure on reboot | | https://dietpi.com/docs/software/log_system/#dietpi-ramlog
ID 104 | =2 | Dropbear: Lightweight SSH server | | https://dietpi.com/docs/software/ssh/#dropbear
ID 178 | =2 | Jellyfin: FOSS web interface media streaming server | | https://dietpi.com/docs/software/media/#jellyfin
ID 182 | =2 | Unbound: validating, recursive, caching DNS resolver | | https://dietpi.com/docs/software/dns_servers/#unbound
ID 183 | =2 | vaultwarden: Unofficial Bitwarden password manager server written in Rust | +SQLite | https://dietpi.com/docs/software/cloud/#vaultwarden

And what is the question? We don’t use /etc/init.d/.

I guess you installed exim4 yourself?? If yes, check the application documentation.

No, i installed rsyslog, but removed it with the command purge. I have 2 raspberry, both upgraded to Trixie from old installation, and both have the init.d folder. This is the content:

console-setup.sh*  cron*  exim4*  fake-hwclock*  hwclock.sh*  keyboard-setup.sh*  networking*  procps*  rng-tools-debian*  rsync*  ssh*  sudo*  ufw*  unbound*  unifi@

(only one installation have the unifi package)

as said, if you don’t use the exim4, it can be removed. The package themselves is not part of our default installation. Means something you installed pulled exim4 as dependency.

I think it is part of Debian Exim - Debian Wiki

EDIT: I disabled the service. The package not was installed, and the service still work

exim4.service - LSB: exim Mail Transport Agent
     Loaded: loaded (/etc/init.d/exim4; generated)
     Active: active (exited) since Thu 2025-09-11 15:45:52 CEST; 45min ago
 Invocation: 3b870792cb254e85bb2915a2d05b17f4
       Docs: man:systemd-sysv-generator(8)
        CPU: 19ms

Sep 11 15:45:52  systemd[1]: Starting exim4.service - LSB: exim Mail Transport Agent...
Sep 11 15:45:52  systemd[1]: Started exim4.service - LSB: exim Mail Transport Agent.

Guess is part of the system.

Yes it is a Debian package that can be installed using Debian package manager apt. But it is not part of our base installation. Means it has installed manually or as dependency of other packages.

And again, you can remove the package if not needed.