downtownallday
68bc176b00
Don't add firewall rules for the remote nextcloud if it's not accessible
2022-09-22 11:07:34 -04:00
downtownallday
912b78bb47
Change the remote_nextcloud web_update hook handler strategy
2022-09-22 09:35:50 -04:00
downtownallday
2b25111efa
Stop postgrey during shutdown
2022-09-21 19:27:38 -04:00
downtownallday
9ac1bdd045
LOCAL_MODS_DIR must be absolute
2022-09-21 19:04:18 -04:00
downtownallday
188eb9bee1
update test to get syslog output
2022-09-21 16:46:38 -04:00
downtownallday
a95bfd3e6b
Clarify wording on enabling a remote nextcloud
2022-09-21 15:53:08 -04:00
downtownallday
53cbabac75
Fix url redirection when a remote nextcloud is used so that .well-known/caldav and carddav work properly, as well as the redirecting /cloud to the remote Nextcloud. Since the nginx config is replaced by the management daemon whenever a new domain is added, this change adds a hooking mechanism for setup mods.Fix url redirection when a remote nextcloud is in use. This corrects redirection for /.well-known/caldav, /.well-known/carddav and /cloud to send the client to the remote nextcloud. This requires an nginx configuration change, and since the nginx config is replaced by the management daemon whenever a new domain is added, this change adds a hooking mechanism for setup mods allowing them to intercept and modify the resultant nginx config.
2022-09-21 15:52:47 -04:00
downtownallday
dae697e6af
fix case where value is None
2022-09-21 09:07:23 -04:00
downtownallday
ae0c69f3b9
disable postgrey when using encryption-at-rest. the postgrey database will be moving to user-data
2022-09-21 09:06:52 -04:00
downtownallday
65a3c7e243
Correct dav paths
2022-09-20 22:16:51 -04:00
downtownallday
39aaf94e7b
Add options to 1. re-use existing an existing backup 2. disable test runner
2022-09-20 10:15:36 -04:00
downtownallday
f321271e1c
Adjust formatting
2022-09-20 10:14:10 -04:00
downtownallday
59e78040bf
Hide nextcloud upgrade output
2022-09-20 10:13:34 -04:00
downtownallday
5f8ae763aa
Fix an issue where unattended upgrades randomly kick in during setup and cause apt installs, and therefore setup itself, to fail
2022-09-20 10:13:12 -04:00
downtownallday
76e7528b34
hook python's log to gunicorn's
2022-09-19 14:47:50 -04:00
downtownallday
bf63ca827e
Add copyright to source files
2022-09-19 14:45:11 -04:00
downtownallday
809a75765e
replace FLASK_ENV, which has been deprecated, with FLASK_DEBUG
2022-09-18 15:44:01 -04:00
downtownallday
603b716ac2
add additional protections to the management daemon's runtime environment
2022-09-18 15:43:10 -04:00
downtownallday
5e1dcc933f
close the multiprocessing pool to avoid hang
2022-09-18 15:42:15 -04:00
downtownallday
c33153c646
update roundcube contacts url
2022-09-17 21:54:42 -04:00
downtownallday
45d5b7cb25
Merge branch 'jammyjellyfish2204' of https://github.com/mail-in-a-box/mailinabox into jammyjellyfish2204
...
# Conflicts:
# setup/webmail.sh
# tools/editconf.py
2022-09-17 19:54:52 -04:00
downtownallday
688d1f668b
Add custom backup option to nuke current backup before full backup.
...
When short on disk space and storing backup locally, delete all local backups before a new one is created. Otherwise, enough disk space for a minimum of 2 full backups is needed, which may not be available.
2022-09-17 18:11:09 -04:00
kiekerjan
d584a41e60
Update Roundcube to 1.6.0 ( #2153 )
2022-09-17 09:20:20 -04:00
downtownallday
56074ae035
Tighten roundcube session config ( #2138 )
...
Merges #2138 .
2022-09-17 09:09:00 -04:00
downtownallday
30631b0fc5
Fix undefined variable 'val' in tools/editconf.py ( #2137 )
...
Merges #2137 .
2022-09-17 09:09:00 -04:00
Steve Hay
84da4e6000
Update dovecot to use same DH parameters file as the other services
...
Originally from #2157 .
2022-09-17 09:07:54 -04:00
Joshua Tauberer
58ded74181
Restore the backup S3 host select box if an S3 target has been set
...
Also remove unnecessary import added in 7cda439c
. Was a mistake from edits during PR review.
2022-09-17 09:07:54 -04:00
Steve Hay
3fd2e3efa9
Replace Flask built-in WSGI server with gunicorn ( #2158 )
2022-09-17 08:03:16 -04:00
Steve Hay
7cda439c80
Port boto to boto3 and fix asyncio issue in the management daemon ( #2156 )
...
Co-authored-by: Steve Hay <hay.steve@gmail.com>
2022-09-17 07:57:12 -04:00
downtownallday
2461e9a36c
tighten the cipher list
2022-09-07 16:17:22 -04:00
downtownallday
20646e43f8
single restore_backup script for miab and ciab
2022-09-06 11:47:04 -04:00
downtownallday
78e6755e6b
wait for the management daemon to be ready before ending the test
2022-09-05 20:35:36 -04:00
downtownallday
4a4ad258c6
keep trying to umount 3 times with 10 seconds between tries
2022-09-05 20:35:04 -04:00
downtownallday
3198923bbc
add upsteam upgrade test (MIAB -> MIAB-LDAP)
2022-09-05 18:45:09 -04:00
downtownallday
b731de2f66
fix capture state and populate working directory errors
2022-09-05 18:34:46 -04:00
downtownallday
80decc3f71
fix python error "cannot pickle 'dict_keys' object"
...
a deep copy of a dictionary with values of type `dict_keys`, required by the underlying ldap3 python3 library, is no longer allowed. they must be a `list` type
actual error:
Traceback (most recent call last):
File "/mailinabox/setup/migrate.py", line 461, in <module>
run_miabldap_migrations()
File "/mailinabox/setup/migrate.py", line 440, in run_miabldap_migrations
raise e
File "/mailinabox/setup/migrate.py", line 431, in run_miabldap_migrations
migration_func(env)
File "/mailinabox/setup/migrate.py", line 249, in migration_miabldap_1
users=m13.create_users(env, conn, ldap, ldap_base, ldap_users_base, ldap_domains_base)
File "/mailinabox/setup/migration_13.py", line 137, in create_users
dn = add_user(env, ldapconn, ldap_base, ldap_users_base, ldap_domains_base, email, password, privs.split("\n"), totp)
File "/mailinabox/setup/migration_13.py", line 90, in add_user
ldapconn.add(dn, objectClasses, attrs)
File "/usr/lib/python3/dist-packages/ldap3/core/connection.py", line 947, in add
_attributes = deepcopy(attributes) # dict could change when adding objectClass values
File "/usr/lib/python3.10/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/usr/lib/python3.10/copy.py", line 231, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/usr/lib/python3.10/copy.py", line 161, in deepcopy
rv = reductor(4)
TypeError: cannot pickle 'dict_keys' object
2022-09-05 17:20:41 -04:00
downtownallday
d87148292e
fix missing $
2022-09-05 17:08:41 -04:00
downtownallday
cc0a6d25cb
z-push hack for php 8.0: change a debug print statement and make a policies.ini change
2022-09-05 15:32:24 -04:00
downtownallday
9783b8bbbc
sync should be true for a nextcloud backend
2022-09-05 15:29:39 -04:00
downtownallday
cb50405864
roundcube 1.6
2022-09-05 14:12:52 -04:00
downtownallday
ae173fcdc6
Update app hashes for NC 21 and 22 upgrades
2022-09-05 14:12:29 -04:00
downtownallday
f63488aa1a
Merge branch 'master' into jammyjellyfish2204
...
# Conflicts:
# setup/management.sh
# setup/mods.available/connect-nextcloud-to-miab.sh
# setup/start.sh
# setup/webmail.sh
# tests/lib/carddav.sh
# tests/lib/system.sh
# tests/system-setup/setup-defaults.sh
# tests/system-setup/setup-funcs.sh
# tests/system-setup/upgrade.sh
2022-09-05 10:30:45 -04:00
downtownallday
549fdbf97a
Merge branch 'jammyjellyfish2204' of https://github.com/mail-in-a-box/mailinabox into jammyjellyfish2204
...
# Conflicts:
# setup/management.sh
2022-09-05 09:30:19 -04:00
downtownallday
a7739196b4
Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox into jammyjellyfish2204
2022-09-05 09:28:26 -04:00
Joshua Tauberer
91fc74b408
Setup fixes for Ubuntu 22.04
...
Nextcloud:
* The Nextcloud user_external 1.0.0 package for Nextcloud 21.0.7 isn't available from Nextcloud's releases page, but it's not needed in an intermediate upgrade step (hopefully), so we can skip it.
* Nextcloud updgrade steps should not be elifs because multiple intermediate upgrades may be needed.
* Continue if the user_external backend migration fails. Maybe it's not necessary. It gives a scary error message though.
* Remove a line that removes an old file that hasn't been in use since 2019 and the expectation is that Ubuntu 22.04 installations are on fresh machines.
Backups:
* For duplicity, we now need boto3 for AWS.
2022-09-03 07:50:36 -04:00
downtownallday
f6cd8f56c3
Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox
2022-08-21 14:07:30 -04:00
Sudheesh Singanamalla
d7244ed920
Fixes #2149 Append ; in policy strings for DMARC settings ( #2151 )
...
Signed-off-by: Sudheesh Singanamalla <sudheesh@cloudflare.com>
2022-08-19 13:23:42 -04:00
downtownallday
72bee52bd7
fix detection of installation status of contacts app - the grep for "contacts" should not match app "contactsintegration"
2022-08-18 10:36:09 -04:00
downtownallday
cac187756d
Merge branch 'jammyjellyfish2204' of https://github.com/mail-in-a-box/mailinabox into jammyjellyfish2204
...
# Conflicts:
# CHANGELOG.md
# README.md
# management/ssl_certificates.py
# setup/bootstrap.sh
# setup/dns.sh
# setup/management.sh
# setup/nextcloud.sh
# setup/preflight.sh
# setup/start.sh
# setup/webmail.sh
# tests/test_mail.py
# tools/editconf.py
2022-07-28 17:20:57 -04:00
David Duque
e0c0b5053c
Upgrade Nextcloud External User Backend to v3.0.0
...
Co-Authored-By: Joshua Tauberer <jt@occams.info>
2022-07-28 14:42:51 -04:00