GN Latest News

Robs Blog.

GN Archive: The old Ubuntu 22.02 Site.
Robs Blog.
Post Reply
Rob Swan
Site Admin
Posts: 76
Joined: Tue Oct 31, 2017 3:03 pm
Location: UK
Contact:

Robs Blog.

Post by Rob Swan »

13/03/2025: Absolutely bizarre update for EHCP force.

EHCP force released an update on the 28th February 2025, which DOES NOT fix courier (email) and Fail2ban on Ubuntu 24.04.

I do not understand.

08/01/2025: I have published the fix for the EHCP force new installation bug.

If you did inadvertently do a new installation of the latest version of EHCP force THIS POST, tells you how you can fix it.

08/01/2025: You CAN upgrade to the December 2024 version of EHCP force with breaking anything.

I have just done a test, and upgrading to the newer version of EHCP force does not break anything.
So it is just new installations that fail with email and Fail2ban problems.
This is very interesting indeed.

08/01/2025: Not only is email broken in the Ubuntu 24.04 version of EHCP force, so is Fail2ban (New installations).

The installation of Fail2ban on the new Ubuntu 24.04 version of EHCP force, does not have the power to write to the IP tables, thus it is not able to ban an IP address. This is due to a configuration error.

This issue is an easy fix at least. (My Post install Fail2ban fixing script can fix it).

08/01/2025: It is possible to fix the latest version of EHCP force (Email) from the command line.

I have managed to fix courier from the command line, but it is quite complicated.

In mid-2024, I compiled a courier-imap installer package file (deb), from the latest version of the courier source code.
This version also includes courier-pop.

Here is how I fixed it.
1. Clean out all the remains of the failed courier install.
2. Reinstall my new version of courier from deb files and also apt packages.
3. Reconfigure Courier for MySQL and EHCP force.

Let me know if you want me to publish this fix, like I said it is quite complicated to do.

07/01/25: I have changed the EHCP force install script on the site, the script now installs the previous version of EHCP Force.
This should be just a temporary until this issue is fixed.

The problem with the latest version is that the courier email system is not properly installed, which means that you cannot access your email. This is a problem on new installations only, as upgrades do not appear to be effected.

06/01/25: There are major issues with the latest update for EHCP force (New installations).
Please do not install it yet.

I am looking into it.

05/01/25: On the 19th December 2024 EHCP force was updated for Ubuntu 24.04, I have not had chance yet to test the new update, but it looks like that EHCP force Pre / Post-Install Scripts may no longer be needed.

When I have had chance to do some further testing, I will let you know my findings.

31/08/24: The 30/08/2024 update for EHCP force fixes the bug introduced in the 24/07/2024 release.

The 30/08/2024 update for EHCP force, also fixes the subdomain deletion bug and the Squirrelmail update bug.

28/07/24: If you updated EHCP force to the 24/07/2024 release, you may have a problem.

After the update is installed, you may see this, when you are navigating through the EHCP force control panel.

Image

I am quite shocked the author of EHCP force has done this to be honest.

Anyway, I have created THIS FAQ, on how to fix it.

28/07/24: There is a major problem with the latest version of EHCP Force.

DO NOT UPDATE EHCP FORCE TO THE 24/07/2024 VERSION

27/06/24: Major update to the Spamassasin user interface post.

I have made a major change to the method of setting up a user interface for Spamassasin (please see the post for details).

I have also created a new FAQ, on how to modify your Spamassasin UI, to match the new setup.

19/06/24: New SMTP auth Issue.

Some users have reported to me that after running an EHCP force update, SMTP auth stopped working again (unable to send any emails).

It can be fixed by running the SMTP auth (post EHCP force install) fixing script again using this command in PuTTY.

sudo bash smtpauthfixv2.sh

The above assumes you did not delete the script from your system, if you did, please refer to THIS POST for instructions on how to download it again.

12/06/24: New Fail2ban repair script.

I have re written the EHCP force post install, Fail2ban fixing script to make it a bit more like the others, with some better error trapping etc.

I have also revamped the post a little, just to make it a bit easier to follow.

12/06/24: Bizarre update released for EHCP force.

The author of EHCP force released an update on 11/06/24, what’s bizarre about it is that it is not an update for Ubuntu 24.04 which is what people tell me they are waiting for.

Note: My EHCP force update script was updated today, It is important to use the new script or you risk breaking SMTP auth, and Squirrelmail.

30/05/24: Yes, you guessed it, I made a new SMTP auth repair script.

Decided to go with saslauthd instead of the courier-authdeamon.

Please note the file name has changed, see the post for details.

If you want to change to saslauthd, you can run this script even if you ran the old one, as will undo the settings for the courier-authdeamon, and change the SMTP auth method to saslauthd.

25/05/24: Just as a test, I was able to fix the existing SMTP auth method on my test bed.

Currently my SMTP auth fixing script, changes the authentication method from saslauthd to the courier-authdeamon.

I was wondering if it was possible to fix the existing method in EHCP force, and the answer is a big YES.

Not, sure yet if I am going to change the script, as my method is just as good.

23/05/24: Completely re-written the EHCP force pre install script.

Where, I have had no reports of the old script failing, it occurred to me that if the script did fail it would not tell the user, this could mean a lot of wasted time installing EHCP force, only to find out that the email did not work.

The script now checks each step as it goes, and reports any failures to the user.

16/05/24: I have now changed the (EHCP force post install) SMTP auth fixing script so that it also adjusts EHCP force, to stop it undoing the edits made by the script.

EHCP force should now not have the power to break SMTP auth (for sending emails), after the script has been run.

15/05/24: Found the problem with SMTP auth, it is NOT my script.

Whenever you change the main system options in the EHCP force control panel, the postfix configuration in “Fixed”, thus undoing our edit.
I am working on a fix for this.

14/05/24: I have made a slight change to smtp auth fixing script (EHCP force post install script).
Hopefully there will be no more issues, but only time will tell.

14/05/24: Added a note to the EHCP force post install scripts topic as a user reported, that she was still not able to send email, and entering these commands in PuTTY one by one fixed it. I have not been able to recreate this issue.

If effected though you MUST run both the EHCP force post install scripts(one time only, per server), before trying this fix.
Its not a good idea to try and run the scripts again, as it can mess things up, big time.

sudo su

service postfix stop

echo 'pwcheck_method: authdaemond' > /etc/postfix/sasl/smtpd.conf

echo 'mech_list: plain login' >> /etc/postfix/sasl/smtpd.conf

echo 'allow_plaintext: true' >> /etc/postfix/sasl/smtpd.conf

echo 'authdaemond_path: courier-authdaemon-socket' >> /etc/postfix/sasl/smtpd.conf

service postfix start

exit

11/05/24: Wow, the amazing people who write Fail2ban, have already created a new version that works on Ubuntu 24.04 without messing about with Python versions. I have completely changed my EHCP Force post install Fail2ban fixing script, it now just upgrades Fail2ban (and updates the Fail2ban config).

08/05/2024: The new site is still a work in progress.
As my regulars will already know, I am constantly finding and correcting spelling and grammar errors on the site. Also, where everything should be working, I am still in the process of testing it all, so if something is wrong or does not work, it may get fixed soon.

06/05/2024: Sorry that EHCP GN is not done yet.
I did not understand the enormity of the task when I took it on, and I am just short of time to dedicate to it.

As I am not an established developer, everything takes me longer as I have to spend time researching problems and how to fix them.

05/05/2024: I am worried about EHCP force.
I have a concern as to why EHCP force has not been updated for Ubuntu 24.04.

I really hope that EHCP force has not been abandoned.

The author of EHCP force does not get paid for his amazing work, so I hope that he has just been busy with more important things, or something on those lines.

Please do not contact him, as he works for free and I would hate to think that he is getting flak from something I have said or done.
Post Reply