downtownallday
da0506a1d7
Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox
...
# Conflicts:
# README.md
2023-01-29 10:41:53 -05:00
Joshua Tauberer
c77d1697a7
Revert "Improve error messages in the management tools when external command-line tools are run"
...
Command line arguments have user secrets in some cases which should not be included in error messages.
This reverts commit 26709a3c1d
.
Reported by AK.
2023-01-28 11:24:38 -05:00
Hugh Secker-Walker
7af713592a
feat(status page): Add summary of ok/error/warning counts ( #2204 )
...
* feat(status page): Add summary of ok/error/warning counts
* simplify a bit
---------
Co-authored-by: Hugh Secker-Walker <hsw+miac@hodain.net>
Co-authored-by: Joshua Tauberer <jt@occams.info>
2023-01-28 11:11:17 -05:00
Hugh Secker-Walker
4408cb1fba
fix(rsync-backup): Provide default port 22 for rsync usage in backup.py ( #2226 )
...
Co-authored-by: Hugh Secker-Walker <hsw+miac@hodain.net>
2023-01-28 11:04:46 -05:00
downtownallday
190d7195d3
Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox
...
The roundcube password plugin is not disabled.
# Conflicts:
# management/utils.py
# setup/start.sh
# setup/system.sh
# setup/webmail.sh
# tools/editconf.py
2023-01-15 20:35:08 -05:00
Joshua Tauberer
b3743a31e9
Add a status checks check that fail2ban is running using fail2ban-client
2023-01-15 10:17:10 -05:00
Joshua Tauberer
26709a3c1d
Improve error messages in the management tools when external command-line tools are run
2023-01-15 10:17:10 -05:00
Steven Conaway
7a79153afe
Remove old darkmode background color ( #2218 )
...
Removing this old background color solves the problem of the bottom of short pages (like `/admin`'s login page) being white. The background was being set to black, which would be inverted, so it'd appear white. Since the `filter:` css has [~97% support](https://caniuse.com/?search=filter ), I think that this change should be made. Tested on latest versions of Chrome (mac and iOS), Firefox, and Safari (mac and iOS).
2023-01-15 10:05:13 -05:00
Hugh Secker-Walker
a2565227f2
feat(rsync-port): Add support for non-standard ssh port for rsync backup ( #2208 )
2023-01-15 10:03:05 -05:00
Hugh Secker-Walker
02b34ce699
fix(backup-display): Fix parsing of rsync target in system-backup.html, fixes #2206 ( #2207 )
2023-01-15 10:01:07 -05:00
Hugh Secker-Walker
820a39b865
chore(python open): Refactor open and gzip.open to use context manager ( #2203 )
...
Co-authored-by: Hugh Secker-Walker <hsw+miac@hodain.net>
2023-01-15 08:28:43 -05:00
KiekerJan
0fc5105da5
Fixes to DNS lookups during status checks when there are timeouts, enforce timeouts better ( #2191 )
...
* add dns query handling changes
* replace exception pass with error message
* simplify dns exception catching
* Add not set case to blacklist lookup result handling
2023-01-15 08:20:08 -05:00
downtownallday
b810417676
management: fix crash when entering catch-all alias with no forward-to
2022-11-20 09:07:49 -05:00
downtownallday
e5eb7680ae
dns: ensure _caldavs._tcp and _carddavs._tcp SRV records point to the remote nextcloud
2022-11-13 12:45:38 -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
4d845a3618
Merge branch 'main' of https://github.com/mail-in-a-box/mailinabox
...
# Conflicts:
# README.md
2022-10-30 08:21:51 -04:00
alento-group
32c68874c5
Fix NSD not restarting ( #2182 )
...
A previous commit (0a970f4bb2
) broke nsd restarting. This fixes that change by reverting it.
Josh added: Use nsd-control with reconfig and reload if they succeed and only fall back to restarting nsd if they fail
Co-authored-by: Joshua Tauberer <jt@occams.info>
2022-10-30 08:16:03 -04:00
downtownallday
e4c20641c3
Add a hook in status_checks --show-changes
2022-10-29 10:00:17 -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
Joshua Tauberer
ddf8e857fd
Support Ubuntu 22.04 Jammy Jellyfish ( #2083 )
2022-10-11 21:18:34 -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
Joshua Tauberer
0a970f4bb2
Use nsd-control to refresh nsd after zone files are rewritten rather than 'service nsd restart'
...
I am not sure if this was the problem but nsd didn't serve updated zonefiles on my box and 'service nsd restart' must have been used, so maybe it doesn't reload zones.
2022-10-08 07:24:57 -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
jvolkenant
b8feb77ef4
Move postgrey database under $STORAGE_ROOT ( #2077 )
2022-09-24 13:17:55 -04:00
Steve Hay
1e1a054686
BUGFIX: Correctly handle the multiprocessing for run_checks in the management daemon ( #2163 )
...
See discussion here: #2083
Co-authored-by: Steve Hay <hay.steve@gmail.com>
2022-09-24 09:56:27 -04:00
downtownallday
912b78bb47
Change the remote_nextcloud web_update hook handler strategy
2022-09-22 09:35:50 -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
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
5e1dcc933f
close the multiprocessing pool to avoid hang
2022-09-18 15:42:15 -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
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
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
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
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
Joshua Tauberer
ab71abbc7c
Update to latest cryptography Python package, add missing source at top of management.sh so it can run standalone (needs STORAGE_ROOT)
2022-07-28 14:42:51 -04:00
Joshua Tauberer
78d71498fa
Upgrade from PHP 7.2 to 8.0 for Ubuntu 22.04
...
* Add the PHP PPA.
* Specify the version when invoking the php CLI.
* Specify the version in package names.
* Update paths to 8.0 (using a variable in the setup scripts).
* Update z-push's php-xsl dependency to php8.0-xml.
* php-json is now built-into PHP.
Although PHP 8.1 is the stock version in Ubuntu 22.04, it's not supported by Nextcloud yet, and it likely will never be supported by the the version of Nextcloud that succeeds the last version of Nextcloud that supports PHP 7.2, and we have to install the next version so that an upgrade is permitted, so skipping to PHP 8.1 may not be easily possible.
2022-07-28 14:02:46 -04:00
Joshua Tauberer
b41a0ad80e
Drop some hacks that we needed for Ubuntu 18.04
...
* certbot's PPA is no longer needed because a recent version is now included in the Ubuntu respository.
* Un-pin b2sdk (reverts 69d8fdef99
and d829d74048
).
* Revert boto+s3 workaround for duplicity (partial revert of 99474b348f
).
* Revert old "fix boto 2 conflict on Google Compute Engine instances" (cf33be4596
) which is probably no longer needed.
2022-07-28 14:02:46 -04:00
Rauno Moisto
78569e9a88
Fix DeprecationWarning in dnspython query vs resolve method
...
The resolve method disables resolving relative names by default. This change probably makes a7710e90
unnecessary. @JoshData added some additional changes from query to resolve.
2022-07-28 14:02:46 -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
23d895b509
Fix another postgrey reload error
2022-06-27 14:28:43 -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
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
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