Commit Graph
100 Commits
Author SHA1 Message Date
downtownallday 4b50572dc9 testing: output elapsed time for provisioning 2022-11-06 07:56:47 -05:00
downtownallday 2ac391796e setup: add a setup mod to attach a logwatch report to daily status checks emails 2022-11-06 07:02:33 -05:00
downtownallday 93f7a84f44 roundcube: use the ldap_simple password driver 2022-11-06 06:58:29 -05:00
downtownallday 276cecac32 v60.1 2022-10-30 08:48:52 -04:00
downtownallday 2134d44730 Add license 2022-10-30 08:46:12 -04:00
downtownallday 82d756152a Adds a test to ensure dns is functional 2022-10-30 08:23:36 -04:00
downtownallday 4d845a3618 Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox
# Conflicts:
#	README.md
2022-10-30 08:21:51 -04:00
downtownallday 51ba8d8774 Try to determine what is causing umount to fail by using lsof 2022-10-29 19:34:15 -04:00
downtownallday e4c20641c3 Add a hook in status_checks --show-changes 2022-10-29 10:00:17 -04:00
downtownallday aad837b75e Add setup/enmod.sh to enable setup mods 2022-10-29 09:58:49 -04:00
downtownallday 085bec2e17 install packages in the same order as setup/start.sh 2022-10-29 09:56:35 -04:00
downtownallday a1c8b79c6f Change the default behavior to only prepare jammy unless "all" given on command line 2022-10-29 09:55:51 -04:00
downtownallday 7fa070aed8 avoid using PYTHONPATH to enable setup mod hooks, which is problematic for managment command line tool use
- save the directory path to setup mods in /etc/mailinabox.conf
- dynamically add the path to python during hook initialization
2022-10-24 16:24:44 -04:00
downtownallday bb969f16ae avoid prematurely termination of the processing pool 2022-10-24 06:44:59 -04:00
downtownallday cac796a5bb Enable compression for wget downloads.
This fixes an issue where unless compression=auto (or compression=gzip) is specified, using wget to download jquery.min.js by setup/management.sh fails with max redirects exceeded.
The man page says --compression is an experimental option, but it doesn't appear to have any problems.
Note that downloading jquery.min.js with curl works fine when wget without --compression fails.
2022-10-20 17:02:04 -04:00
downtownallday c787437317 Add a setup mod to install roundcube's "larry" skin, which was removed with roundcubemail version 1.6 2022-10-16 15:16:02 -04:00
downtownallday 06495298c9 honor STORAGE_ROOT if already set 2022-10-14 15:03:12 -04:00
downtownallday 1a0b94c878 restore backup: don't automatically unmount an ehdd drive 2022-10-14 15:02:44 -04:00
downtownallday 16679aa5ac preloaded: add support for clone at commit 2022-10-14 14:18:34 -04:00
downtownallday e636e63862 Setup fixes
1. Autodetect encryption-at-rest and run the correct setup in boostrap and /usr/local/bin/mailinabox
2. Fix bug where directories in the local mod folder are improperly executed causing setup to fail
3. Add a remote_nextcloud.sh setup mod cleanup function for cleaner removal of the mod
2022-10-14 09:27:24 -04:00
downtownallday 14a4f34d39 Clarify wording 2022-10-13 19:13:06 -04:00
downtownallday 9e5ce3e681 Enable "bootstrap" installs 2022-10-13 18:58:44 -04:00
downtownallday 9b62b5dc1a Use an explicit php exectable and package if specified by environment variables 2022-10-13 09:27:58 -04:00
downtownallday f38e275734 Changes for v60 - initial Jammy Jellyfish release 2022-10-12 08:46:34 -04:00
downtownallday 2f19ec19da Update tags now that upstream has merged jammy branch 2022-10-12 08:22:05 -04:00
downtownallday a9d34441fa Update hashes to match upstream's use of github/nextcloud-releases 2022-10-12 08:20:44 -04:00
downtownallday caf95b1efe Apply license 2022-10-12 07:18:30 -04:00
downtownallday ec2c878360 Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox into jammyjellyfish2204 2022-10-12 06:57:37 -04:00
downtownallday d786fa2790 Hide apt output when installing duplicity 2022-10-11 08:19:51 -04:00
downtownallday 26fa200014 Merge branch 'jammyjellyfish2204' of https://github.com/mail-in-a-box/mailinabox into jammyjellyfish2204
# Conflicts:
#	setup/management.sh
#	setup/nextcloud.sh
2022-10-09 09:30:12 -04:00
downtownallday cc54379ed2 Merge branch 'jammyjellyfish2204' of https://github.com/mail-in-a-box/mailinabox into jammyjellyfish2204
# Conflicts:
#	management/backup.py
2022-09-29 11:10:16 -04:00
downtownallday 9a381961c5 setting permissions on mail.log fixes the github actions failure for upgrade-to-upstream - this is just clean up 2022-09-22 18:31:59 -04:00
downtownallday 35aa9f7691 try setting mail.log permissions during setup 2022-09-22 18:06:03 -04:00
downtownallday c9eb90800b flush logs on other log scanning functions 2022-09-22 17:34:22 -04:00
downtownallday 4531c90434 restart rsyslogd on GITHUB_ACTIONS=true instead of HUP 2022-09-22 16:56:24 -04:00
downtownallday 86a61a7b12 try to deal with the flurry of messages from rsyslogd after a HUP on github actions 2022-09-22 15:53:45 -04:00
downtownallday e0f2ba84e2 update .gitignore 2022-09-22 13:41:42 -04:00
downtownallday 9b92b394f4 change wording 2022-09-22 13:38:17 -04:00
downtownallday f71b5f3229 Add additional vagrant definition that automatically connects to a cloudinabox 2022-09-22 11:10:16 -04:00
downtownallday 892c33af07 Automatically install .emacs on test vms 2022-09-22 11:08:46 -04:00
downtownallday f6e9fd628c Hide the output from apt-get unless an error occurs 2022-09-22 11:08:02 -04:00
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
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
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
downtownallday f6cd8f56c3 Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox 2022-08-21 14:07:30 -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
downtownallday 27dcb5d7ca Enable fail2ban for z-push and add a test for it 2022-07-18 15:52:04 -04:00
downtownallday 71b8b94276 Enable github actions 2022-06-29 12:57:13 -04:00
downtownallday ecf5e3ddfb Improve output formatting 2022-06-29 12:56:44 -04:00
downtownallday 8f1bb4f498 Add a z-push test suite 2022-06-29 10:42:09 -04:00
downtownallday 643a49676e rename ehdd/startup.sh ehdd/run-this-after-reboot.sh 2022-06-28 20:56:48 -04:00
downtownallday b2e4e8a38f output message only when appropriate 2022-06-28 16:44:21 -04:00
downtownallday 9b8fc905f6 rename script "remote-nextcloud-use-miab.sh" to "connect-nextcloud-to-miab.sh" 2022-06-28 16:43:27 -04:00
downtownallday f1cddb5bd1 Tighten roundcube session config 2022-06-28 07:43:11 -04:00
downtownallday 8ed4fcd363 Remove text about adding a firewall rule 2022-06-28 07:25:08 -04:00
downtownallday 88733f3d0e Ignore opendkim message
We only care about messages regarding the validity of incoming mail.
2022-06-27 14:31:00 -04:00
downtownallday 13d8e867a2 Add color to the output 2022-06-27 14:28:59 -04:00
downtownallday 23d895b509 Fix another postgrey reload error 2022-06-27 14:28:43 -04:00
downtownallday d4cbaaf356 Ensure users and groups are created so that duplicity properly restores permissions 2022-06-27 13:06:59 -04:00
downtownallday 6be8d732aa Fix comment 2022-06-27 11:03:58 -04:00
downtownallday fd0cd63462 Workaround postgrey reload issue in jammy 2022-06-27 11:03:31 -04:00
downtownallday 6ae3758874 Make ehdd/postinstall service disabling step quieter 2022-06-27 11:02:58 -04:00
downtownallday 9eacf3fe3f Simplify ehdd mount/umount code 2022-06-27 11:02:15 -04:00