ddavness / power-mailinabox

A Mail-in-a-Box with extra capabilities and more customizability. Not just for power users!
Creative Commons Zero v1.0 Universal
168 stars 31 forks source link

Upgrade to v60.3 #90

Open xerudro opened 1 year ago

xerudro commented 1 year ago

Today i tried to update from v6.02 to 6.03 using curl -L https://power-mailinabox.net/setup.sh | sudo bash, got the upgrade stuck on : Installing Mail-in-a-Box system management daemon... for more than 10 minutes.

xerudro commented 1 year ago

Tried again, after i do a reboot, with the same outcome. I use Hetzner server, and i have firewall and fail2ban active. @ddavness any solution ? What you suggest ?

ddavness commented 1 year ago

You mean 60.2 and 60.3 respectively - 6.02 and 6.03 do not exist 😅

I am unable to reproduce the problem, however (that is, mine doesn't get stuck for 10 minutes). For all we know, it could be one of two things:

xerudro commented 1 year ago

I managed to upgrade it, i stopped fail2ban and tried again but still had to wait few minutes 6-7 minutes until the upgrade ended. Not sure what was the culprit but i managed to make it work. But i`ve noticed something that before 60.2 i didnt , now on the status check i get messages about IPv6. Should i ignore them ? Or should i try to fix them ? I am using your fork with Cloudflare.

ddavness commented 1 year ago

Awesome. To be fair, there's a compile step on the Management Daemon but it shouldn't have taken that long to finish (30 seconds at worst).

Are you by any chance running this on Ubuntu 22.04? I've seen some folks complain about fail2ban on the upstream project.

About the IPv6 messages, if it's services that are not running in IPv6, then you should probably solve them.

xerudro commented 1 year ago

Yes, i run it Ubuntu 22.04. Then i need to find a fix for the IPv6 DNS problems, and the one with SSH on IPv6, even if i dont understand why does it needs access SSH on IPv6 .

Here are the messages without the IPv6

HTTP Web (nginx) is running (and available over IPv4 and the local IPv6 address), but it is not publicly accessible at SSH Login (ssh) is running (and available over IPv4 and the local IPv6 address), but it is not publicly accessible at...:22. Public DNS (nsd4) is running and available over IPv4 but is not accessible over ... port 53 Incoming Mail (SMTP/postfix) is running (and available over IPv4 and the local IPv6 address), but it is not publicly accessible at ...:25 Outgoing Mail (SMTP 465/postfix) is running (and available over IPv4 and the local IPv6 address), but it is not publicly accessible at ...:465 Outgoing Mail (SMTP 587/postfix) is running (and available over IPv4 and the local IPv6 address), but it is not publicly accessible at...:587...

and the list continues for Sieve, Dovecot, and HTTPS nginx.

xerudro commented 1 year ago

@ddavness if i will disable the IPv6 function will affect the functionality of the mail server ?

ddavness commented 1 year ago

Public IPv6? Probably not. However, the system keeps local IPv6 enabled (::1) to ensure nsd doesn't break.

xerudro commented 1 year ago

I looked up how to add ipv6 to ufw allowance rules and it seems a bit complicated. And i mistaken it's not Ubuntu the distro. It's Debian Bullseye.

mie., 2 nov. 2022, 11:51 David Duque @.***> a scris:

Public IPv6? Probably not. However, the system keeps local IPv6 enabled (::1) to ensure nsd doesn't break.

— Reply to this email directly, view it on GitHub https://github.com/ddavness/power-mailinabox/issues/90#issuecomment-1299959556, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASDEWEMV64VBHMAOXBX7TITWGI2S3ANCNFSM6AAAAAARS2RPCA . You are receiving this because you authored the thread.Message ID: @.***>