Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Exim4 question

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
phoenix_art
Posts: 134
Joined: 2013-12-08 17:47
Has thanked: 1 time

[SOLVED] Exim4 question

#1 Post by phoenix_art »

Hello,

I'd like to know how its possible if there isn't installed exim4 on my system, please look at my image:

Image

Thanks for the answer!
Last edited by phoenix_art on 2021-03-13 23:29, edited 1 time in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Exim4 question

#2 Post by Head_on_a_Stick »

phoenix_art wrote:there isn't installed exim4 on my system
Are you sure?

Code: Select all

aptitude search '?narrow(?installed, exim4)'
deadbang

phoenix_art
Posts: 134
Joined: 2013-12-08 17:47
Has thanked: 1 time

Re: Exim4 question

#3 Post by phoenix_art »

Thanks for the quick reply. I meant when I tried to run this command:

sudo apt-get purge exim4

the system answered this package is not available so it remove is not possible.

But after running your command I found exim4-base exim4-config and exim4-daemon-light are available. So I need to remove them all too, thank you.

UPDATE:

Originally my problem is I would like to use psad without exim4 on my system but I can't reinstall psad with this option yet. Any suggestions?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Exim4 question

#4 Post by Head_on_a_Stick »

Install any one of these packages to satisfy the mail-transport-agent dependency (which is an accepted alternative to the default-mta dependency that pulls in exim4-daemon-light):

https://packages.debian.org/buster/mail-transport-agent

EDIT: or keep exim installed and just disable the relevant services:

Code: Select all

systemctl --all | grep exim
systemctl disable $unit # replace "$unit" with the name(s) of the unit file(s) returned by the first command
deadbang

phoenix_art
Posts: 134
Joined: 2013-12-08 17:47
Has thanked: 1 time

Re: Exim4 question

#5 Post by phoenix_art »

Good ideas, thanks for your help!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Exim4 question

#6 Post by Head_on_a_Stick »

You're welcome. Please edit the title of the thread (in your first post) and prepend [SOLVED] to help others who encounter this issue. A more descriptive title would also help.
deadbang

phoenix_art
Posts: 134
Joined: 2013-12-08 17:47
Has thanked: 1 time

Re: Exim4 question

#7 Post by phoenix_art »

:~$ sudo systemctl disable exim4.service

->>

exim4.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable exim4
insserv: warning: current start runlevel(s) (empty) of script `exim4' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `exim4' overrides LSB defaults (0 1 6).

~$ systemctl --all | grep exim
exim4.service loaded active running LSB: exim Mail Transport Agent

Head_on_a_Stick wrote:Install any one of these packages to satisfy the mail-transport-agent dependency (which is an accepted alternative to the default-mta dependency that pulls in exim4-daemon-light):

https://packages.debian.org/buster/mail-transport-agent

EDIT: or keep exim installed and just disable the relevant services:

Code: Select all

systemctl --all | grep exim
systemctl disable $unit # replace "$unit" with the name(s) of the unit file(s) returned by the first command

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Exim4 question

#8 Post by Head_on_a_Stick »

The "disable" option doesn't stop a service immediately, to do that you need to either pass the "--now" switch or use the "stop" option. Read the systemctl man page — you really shouldn't run commands unless you understand exactly what they do.
deadbang

reinob
Posts: 1189
Joined: 2014-06-30 11:42
Has thanked: 97 times
Been thanked: 47 times

Re: Exim4 question

#9 Post by reinob »

phoenix_art wrote:Originally my problem is I would like to use psad without exim4 on my system but I can't reinstall psad with this option yet. Any suggestions?
If you don't need MTA-specific tasks, such as queuing, etc. and you just want to be able to send e-mails via a mail relay, I can recommend nullmailer.

The configuration is extremely easy, and it works as it should.

Post Reply