Commit Graph
100 Commits
Author SHA1 Message Date
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
downtownallday 8838d5af82 Eliminate the manual firewall configuration step when connecting a remote Nextcloud's user_ldap 2022-06-27 11:00:36 -04:00
downtownallday 5c5d5c2aff Add a major upgrade test - bionic to jammy 2022-06-26 22:16:04 -04:00
downtownallday 6255ecb2f3 Include postfix, dovecot, opendkim in preloaded vm 2022-06-26 22:13:16 -04:00
downtownallday f05fa8ba01 Simplify alternate repo/branch installation 2022-06-26 22:10:47 -04:00
downtownallday 5de40fc9b1 Fixes for upgrading nextcloud; update calendar and contacts version 2022-06-26 22:04:05 -04:00
downtownallday 33d81e56ae Changed rcmcarddav release containing fix for guzzlehttp dependency 2022-06-26 21:55:51 -04:00
downtownallday 1448213eee Update php version 2022-06-26 21:51:55 -04:00
downtownallday c47807776b Update roundcube config for changes introduced in 1.6 2022-06-25 16:56:01 -04:00
downtownallday 9537282203 Roundcube 1.6-rc
includes update to rcmcarddav plugin v4.4.1
2022-06-25 12:39:52 -04:00
downtownallday cb76aec59d Tests that run php should run the version of php selected by setup 2022-06-25 12:37:11 -04:00
downtownallday fd44210ee7 Fix undefined variable 'val' 2022-06-25 12:35:03 -04:00
downtownallday 7c67ad49d0 nsd.log must exist or rsyslog won't write to it 2022-06-24 08:22:38 -04:00
downtownallday 577a39be85 Upgrade to user_external v3.0.0 required for Nextcloud 23+ 2022-06-24 07:49:14 -04:00
downtownallday 1423246419 Better handling of git formatted versions
eg "v57a-6-g82599e5"
2022-06-23 17:46:50 -04:00
downtownallday 7f18e6ca3c Upgrade persistent login plugin to version 5.3.0 2022-06-23 17:45:40 -04:00
downtownallday 1c0d9a3221 Allow .local domains as valid email address, which fixes an issue caused by the 'email_validator' python module that was recently updated to version 1.2.1 2022-06-22 19:33:19 -04:00
downtownallday 7bc77f644f Since JT decided to go with php 8.0 over 8.1, revert to roundcube 1.5.2 for vanilla vagrantfile 2022-06-22 16:22:35 -04:00
downtownallday 82599e542e If git describe fails, assume new undetermined version 2022-06-22 12:01:01 -04:00
downtownallday c79fca6a45 Allow .local domains as valid email address, which fixes an issue caused by the 'email_validator' python module that was recently updated to version 1.2.1 2022-06-22 11:23:32 -04:00
downtownallday 65a393cb3f Fix the installed state version parsing logic 2022-06-22 11:21:22 -04:00
downtownallday 1622b326d5 Update version used for upgrade-to-master tests 2022-06-22 11:20:41 -04:00
downtownallday cab78e8d9a Change comment 2022-06-22 11:19:58 -04:00
downtownallday 8e6e4480b2 Output message about ignoring errors 2022-06-22 11:19:33 -04:00
downtownallday c135bf1f77 Merge branch 'jammyjellyfish2204' of https://github.com/mail-in-a-box/mailinabox into jammyjellyfish2204
# Conflicts:
#	CHANGELOG.md
#	README.md
#	conf/nginx-top.conf
#	management/backup.py
#	setup/bootstrap.sh
#	setup/management.sh
#	setup/nextcloud.sh
#	setup/system.sh
#	setup/web.sh
#	setup/webmail.sh
#	setup/zpush.sh
#	tests/test_mail.py
2022-06-21 23:58:17 -04:00
downtownallday e710d3212f changelog 2022-06-21 20:39:05 -04:00
downtownallday 37a7088531 Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox
# Conflicts:
#	README.md
#	setup/management.sh
2022-06-21 20:38:01 -04:00
downtownallday 0ef7b33a55 Remove output prefix
It's too difficult to read, especially when getting user input via stdin
2022-06-14 05:39:32 -04:00
downtownallday c5afd69f50 Update changelog 2022-06-12 17:44:48 -04:00
downtownallday 1f8849021a Update changelog 2022-06-12 17:42:19 -04:00
downtownallday 379ae8ea8c Add .md file extension 2022-06-12 17:22:47 -04:00
downtownallday 639826b97a Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox
# Conflicts:
#	README.md
2022-06-12 17:22:13 -04:00
downtownallday 6ff93bb87e add miab directory as 'safe' for git 2022-06-05 21:34:59 -04:00
downtownallday ee8d627c3b Improve formatting of setup output 2022-06-05 21:34:52 -04:00
downtownallday eb83732000 Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox 2022-06-05 20:24:28 -04:00
downtownallday 48be363815 Merge branch 'jammyjellyfish2204' of https://github.com/mail-in-a-box/mailinabox into jammyjellyfish2204 2022-06-05 20:22:34 -04:00
downtownallday f1b904acc6 Enable apcu cli, required for nextcloud install 2022-06-05 20:21:15 -04:00
downtownallday 5caaab9a8f Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox 2022-05-04 17:15:45 -04:00
downtownallday 6dbab427f9 enable nextcloud installation 2022-05-04 11:20:54 -04:00
downtownallday 91ecf6e8d6 nextcloud 24 2022-05-04 11:20:07 -04:00
downtownallday e57e1a6252 add miab directory as 'safe' for git 2022-05-04 11:19:46 -04:00
downtownallday 05b135ba73 support nextcloud release candidate downloads 2022-05-04 10:44:44 -04:00
downtownallday ee1ffbdb21 Workaround vagrant's inability to authenticate during vagrant up (but can authenticate with vagrant ssh) 2022-04-09 18:55:11 -04:00
downtownallday 9b0da60c24 Fix detection of installed nc app
The script erroneously determined the contacts app was installed because it matched "contactsintegration"
2022-04-09 07:18:22 -04:00
downtownallday 70475cc294 Allow the nextcloud service account to be able to change user account passwords.
This should be removed once Nextcloud Server iss 18406 is fixed.
2022-04-08 10:05:34 -04:00
downtownallday e5ba7f8ceb improve output formatting 2022-04-08 06:57:16 -04:00
downtownallday 98f4e5b2fc Add a changelog of commits for each release 2022-03-06 17:42:51 -05:00
downtownallday 462e628e34 Fix pip execution 2022-03-06 10:54:09 -05:00
downtownallday 8e58a78b94 Upgrade system packages during system-setup 2022-03-06 10:53:53 -05:00
downtownallday a6c819eea0 Improve formatting of setup output 2022-03-06 10:53:00 -05:00
downtownallday b7c7187fa5 Fix the ownership of nsd.log on upgrade 2022-02-28 09:40:28 -05:00
downtownallday 8e3f361d70 Have nsd log to rsyslog only and not both rsyslog and nsd.log.
Have rsyslog populate nsd.log instead.
2022-02-28 09:28:40 -05:00
downtownallday 94f140d528 Prevent duplicate logging of mail-related output by configuring rsyslog to record only to mail.log and not also to syslog 2022-02-28 07:11:58 -05:00
downtownallday 72827f365d Change service and package names referring to php 8.0 to php 8.1 2022-02-25 19:47:30 -05:00
downtownallday 2c6474385e Address issues with postgrey, nsd, and rsyslogd introduced with jammy
1. `systemctl reload postgrey` is broken, so use restart in that case
2. `systemctl restart nsd` succeeds once /var/log is writable by systemd. However, nsd still fails to write to /var/log/nsd.log if the file already exists
3. the default configuration for rsyslogd is to no longer create a /var/run/rsyslogd.pid file, so use /usr/bin/pidof in that case
2022-02-25 19:45:46 -05:00
downtownallday ad5a647d36 Install latest roundcube (master) which supports php 8.1 2022-02-25 19:38:16 -05:00
downtownallday 15bcf678d9 Fixes to vagrant box creation for jammy 2022-02-25 19:35:25 -05:00
downtownallday fe2079ee8f Add setup mods for testing the latest version of roundcube 2022-02-25 19:32:29 -05:00
downtownallday 82e203b3ec Fix issue where a postfix/submission connection using TLS on port 465 would be reported as "insecure" 2022-02-08 11:35:27 -05:00
downtownallday fd2ff00a6e Use persistent_login plugin's "Auth Token" support for Roundcube. The old way was very insecure and is subject to dictionary attack of the unsalted encrypted password stored in a browser cookie. 2022-01-29 15:22:01 -05:00
downtownallday 54dc06416b Periodically clean the roundcube database 2022-01-29 12:19:31 -05:00
downtownallday c3ac810c19 Add o+x to storage root since jammy's default permissions on new home directories is 0750 and access by other users (daemons) is needed 2022-01-29 11:01:30 -05:00
downtownallday 46e0e6ff39 Get rid of globals.sh 2022-01-29 10:59:02 -05:00
downtownallday bdeb27c3f3 Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox
# Conflicts:
#	README.md
2022-01-20 06:58:40 -05:00
downtownallday 4e6550ed22 Merge branch 'jammyjellyfish2204' of https://github.com/mail-in-a-box/mailinabox into jammyjellyfish2204
# Conflicts:
#	README.md
#	setup/mail-dovecot.sh
#	setup/system.sh
#	setup/webmail.sh
#	setup/zpush.sh
#	tests/test_mail.py
2022-01-11 16:39:39 -05:00
downtownallday d6cd4e826c Ensure pip3 is installed before installing email_validator 2022-01-11 09:53:07 -05:00
downtownallday f5c92d936d Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox
# Conflicts:
#	setup/webmail.sh
2022-01-11 09:52:34 -05:00
downtownallday 8392eacd94 Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox 2021-12-28 08:59:09 -05:00
downtownallday d9cd7d2002 Add a setup mod to configure unattended-upgrades to email root on failures 2021-12-15 09:03:58 -05:00