Commit Graph

204 Commits

Author SHA1 Message Date
andryyy
b82bf5073b
[Web] Feature: Expand alias over alias domains 2021-03-19 09:28:45 +01:00
andryyy
a3c6c51b35
[Web] Feature: Expand alias over alias domains 2021-03-19 09:11:55 +01:00
Shea Ramage
4feceb08da
Refactor support for pre-hashed passwords (#4024) 2021-03-10 21:06:32 +01:00
andryyy
6b3ea28501
[Web] Minor fixes 2021-03-01 10:21:26 +01:00
andryyy
64264767d7
[Web] Fix quota-left calculations when editing a mailbox (respect max domain quota) 2021-02-23 08:42:04 +01:00
andryyy
f2453e316f
[Ejabberd] More fixes for Ejabberd integration (WIP) 2021-02-12 10:04:19 +01:00
andryyy
386d6109c8 Merge branch 'master' of github.com:mailcow/mailcow-dockerized 2021-02-11 09:36:18 +01:00
andryyy
06c89bac7d
[Web] Implement XMPP
[Web] Various small fixes and enhancements
2021-02-11 09:34:21 +01:00
Felix Kaechele
31805f1656
[Web] Implement all supported dovecot password schemas (#3974)
When migrating from other Dovecot based installations it can be very
convenient to just copy over existing hashed passwords.
However, mailcow currently only supports a limited number of password
schemes.

This commit implements all password schemes that do not require
challenge/response or OTP mechanisms.

A convenient way to generate the regex with all supported schemas is
`docker-compose exec dovecot-mailcow doveadm pw -l | awk -F' ' '{printf
"/^{("; for(i=1;i<=NF-1;i++){printf "%s%s", sep, $i; sep="|"}; printf
")}/i\n"}'`

Note that this will also include unsupported challenge/response and OTP
schemas.

Furthermore this increases the vsz_limit for the dovecot auth service to
2G for the use of ARGON2I and ARGON2ID schemas.

Signed-off-by: Felix Kaechele <felix@kaechele.ca>
2021-02-11 09:31:53 +01:00
andryyy
a76d5628bc
[Web] Accept prehashes password on both edit and add mailbox 2020-12-07 08:13:26 +01:00
andryyy
3b1a87f9a7
[Web] Accept raw SSHA hashes as passwords 2020-12-07 08:07:41 +01:00
Joerg Lehmann
bcffebaabe
support pre-hashed passwords (#3884) 2020-12-02 20:32:39 +01:00
andryyy
ba20db2e08
[Web] Allow a user to choose notification categories (junk folder, rejected mail, both/all) + user ACL 2020-11-28 17:41:48 +01:00
andryyy
b9a8b8a3e7
[Web] More custom_params 2020-11-06 14:26:48 +01:00
andryyy
29104ddf4c
[Web] Compatibility: Re-add _int vars 2020-09-26 22:04:55 +02:00
andryyy
d9b91fc04f [Web] Important: Removed unnecessary *_int attributes from GET elements, _only_ returning int values now (same for all attributes which were provided as html char and int)
[Web] Feature: Allow to toggle protocols (imap, pop3, smtp) per user (defaults can be configured using vars.local.inc.php, see vars.inc.php)

Signed-off-by: andryyy <andre.peters@debinux.de>
2020-09-17 19:49:15 +02:00
andryyy
1f36ae28d4
[Postfix, Web] Feature: Show last SMTP login 2020-09-15 11:02:53 +02:00
andryyy
9274b7b8e1
[Web] Allow to set force_pw_update, tls_enforce_in, tls_enforce_out, sogo_access and quarantine_notification when adding a domain (via API) 2020-08-22 22:59:13 +02:00
andryyy
155dfc66ee
[Web] Create ACL to toggle permission of a domain administrator to change a domain desc 2020-08-19 15:31:54 +02:00
andryyy
2d049f37da
[Web] Allow mins_interval of max 1 month for sync jobs, fixes #3642 2020-07-08 19:36:05 +02:00
andryyy
ab5d78f675
[Postfix] Fix "disallow login": A catch-all will not catch mail for mailboxes with disallowed login 2020-06-06 01:12:31 +02:00
Programmierus
8b02acbef5
Fix a bug that failed to edit Alias by address (#3574) 2020-05-25 21:59:13 +02:00
Programmierus
e3d9a53eeb
Some minor changes to Aliases handling (#3572)
* Allows to get mailbox Aliases by both ID and address
Returns ID within the msg for newly created Aliases

* Uses different query for get Aliases

* Allows to get mailbox Aliases by both ID and address
Returns ID within the msg for newly created Aliases

* Uses different query for get Aliases

* Allows to delete aliases by address

* Update lang files
Reflect id information when adding an alias

Co-authored-by: programmierus <programmierus@icloud.com>
2020-05-25 16:20:59 +02:00
andryyy
0d4ba462c4
[Web] Fixes blank page and fixes #3502 2020-04-25 11:58:55 +02:00
andryyy
1db85df0db
[Web] Fix time limited alias creation via API, thanks to @ntimo 2020-04-25 09:44:04 +02:00
andryyy
c67bb75071
[Rspamd] More pushover options 2020-04-16 11:32:53 +02:00
andryyy
59a2ea0959
[Web, Dovecot] Show last IMAP and POP3 logins, toggle via vars.inc.php SHOW_LAST_LOGIN 2020-04-13 20:34:39 +02:00
andryyy
aca16f68d1
[Web] Fix typo and missing Dovecot restart function (fixes #3466) 2020-04-12 19:26:32 +02:00
andryyy
ad536fd43a
[Web] Restart Dovecot when changing global sieve filters, add a warning 2020-04-11 21:44:53 +02:00
andryyy
8f4540d5d9 [Web] r/o API keys, Pushover integration (can be limited by ACL), other minor changes 2020-04-10 21:00:23 +02:00
andryyy
92f8b4a091
[Web] Add domain statistics 2020-04-06 08:52:27 +02:00
andryyy
0095388f27 [Web] Show label for relayed domains; Return total bytes and msgs of domain in API (WIP) 2020-04-05 11:35:37 +02:00
andryyy
ef0b40085b
[Postfix] Allow to relay only non-local mailboxes 2020-04-03 20:39:53 +02:00
andryyy
3e2cbac778
[Rspamd] 2.5 RC3 2020-03-31 10:03:40 +02:00
andryyy
e1897b0631
[Web] Allow to set global sieve filters 2020-03-19 12:23:48 +01:00
andryyy
c785c8f700
[Dovecot] Show last mail (pop3, imap) login in web interface 2020-02-25 19:38:20 +01:00
andryyy
ebf292531d
[Web] Set desc == domain name, when desc is empty, implements #3341 2020-02-21 08:59:50 +01:00
andryyy
6686152ce0
[Web] Use redis master where necessary, hide UI if not master, create replicate quota2 table 2020-02-05 11:04:14 +01:00
andryyy
f2ae0db9a2
[Web] Minor fixes, some style adjustments 2019-12-23 14:46:57 +01:00
Max
3243bf42cd Include domain-admins in domain-table (#3136)
Adds a listing of the domain-admins to each domain in the domain listing.
2019-11-11 09:55:15 +01:00
andryyy
8783ec4415
[Web] Remove dangling domain admins after deleting domain, fixes #3027 - again 2019-10-11 16:47:39 +02:00
andryyy
6213d6ee02
[Web] Remove dangling domain admins after deleting domain, fixes #3027 2019-10-11 08:25:23 +02:00
heavygale
a997a2e462 Undo automatic whitespace cleanup 2019-10-06 18:56:24 +02:00
heavygale
48838d9fd7 Don't update sogo_access when editing without acl
Disabled checkboxes send 0 even if checked -> don't change sogo_access at all, if mailbox gets edited by domain admin without sogo_access acl.
2019-10-05 18:07:46 +02:00
heavygale
292923a1cc Fix mistake in mailbox-edit 2019-10-05 17:34:25 +02:00
heavygale
2e42cfbd5f Added sogo_access acl for domain admin
- new sogo_access acl is added for domain admins
- changing sogo_acces on a mailbox is only allowed if attempted by admin or by an domain admin with sogo_access acl.
- new Mailboxes are created with SOGo access if "$MAILBOX_DEFAULT_ATTRIBUTES['sogo_access'] = true;" AND if created by admin or domain admin with sogo_access acl. Otherwise sogo_access is forbidden for the new mailbox.
2019-10-05 17:29:16 +02:00
andryyy
b5ac86f86d Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized 2019-10-02 19:40:37 +02:00
André Peters
4f6d407fdd
Revert "extend debug page to show assigned domain quota" 2019-10-02 19:23:09 +02:00
andryyy
23dcb68f50 Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized 2019-10-02 19:01:12 +02:00
andryyy
1c35002505
[Web] Do not allow to add domain admin for non existing domain
[Web] oAuth2 implementation (wip)
2019-10-02 19:00:36 +02:00
heavygale
ecda554e53 finalizing disk usage rework
- changed dockerapi to not return human readable values for df
- all caluclations now in KiB
- moved code from domain_admin to mailbox functions
- using actual occupied bytes as used quota
- all outputs now in *iB using formatBytes()
2019-10-01 20:27:06 +02:00
heavygale
f01e3e59c5 don't count assigned domain quota for inactive domains
now only summing up the assigned domain quota for active domains, and not subtracting disc base occupied by mailboxes of inactive domains (inactive_bytes)
2019-09-29 19:04:00 +02:00
andryyy
c3be04560b
[Web] mailbox.php uses dropups
[Web] Allow to set visibility of aliases in SOGo
[Web] Refresh window when session timed out
[Web] Increase default log lines and pagination trigger
[Web] Increase delay when filtering tables
2019-09-22 15:10:56 +02:00
andryyy
1207c6e865
[Web] Do not check hostname is is_valid_domain_name 2019-09-21 10:44:08 +02:00
André Peters
cdd91bcb9b
Update functions.mailbox.inc.php 2019-09-05 10:54:35 +02:00
andryyy
893ce5a789
[Web] Allow to add external sender addresses, can be disabled by domain admin ACL and is disabled by default 2019-09-02 11:11:41 +02:00
andryyy
0d8a92a365
[Web] Show ratelimit inheritance
[Web] Do not allow TLS-wrapped next shops (SMTPS) in transports
[Web] Minor fixes or preparations
2019-08-25 16:02:58 +02:00
andryyy
03259d66bb
[Web] Minor fixes 2019-08-10 16:12:06 +02:00
andryyy
d8dfd5061b
[Web] Minor fixes and changes 2019-08-10 15:57:07 +02:00
andryyy
9a500a7068
[Web] Verify OPTIONAL license plus minor fixes 2019-08-09 14:16:52 +02:00
andryyy
2193378982
[Web] unlimited_quota fix for domain admins 2019-07-29 16:16:31 +02:00
Timo N
9325bb6f4e
Merge pull request #2594 from FELDSAM-INC/domain-default-mailbox-quota
Default quota for mailbox
2019-06-09 10:49:43 +02:00
andryyy
2508ee5b69
[Web] Delete from sender_acl when deleting an alias 2019-05-26 09:39:04 +02:00
andryyy
d5612cf60f
[Web] More fixes for alias as sender_acl 2019-05-26 09:22:06 +02:00
andryyy
5087d5ce96
[Web] Allow aliases as send-as 2019-05-26 08:29:10 +02:00
Kristián Feldsam
b8b6450753 Default quota for mailbox
Signed-off-by: Kristián Feldsam <feldsam@gmail.com>
2019-05-11 11:16:40 +02:00
andryyy
05a2301ea6
[Web] Allow to rename alias to Alias 2019-05-05 20:01:53 +02:00
andryyy
e94c9e1ca6
[Web] Fix class for full mailbox 2019-04-05 13:08:16 +02:00
andryyy
14e57cf80f
[Web] Add ACL for unlimited quota (default 0) 2019-03-30 19:14:24 +01:00
andryyy
49492dff61
[Web, Dovecot] Allow empty/unlimited quota 2019-03-28 22:05:12 +01:00
andryyy
1fcecd0350
[Web] Fix js when adding resource
[Web] Reload view and memcached when changing a resource
2019-03-18 10:16:33 +01:00
andryyy
d8dbcfac92
[Web] Continue when a check in add_alias fails
[Web] Fix "null" output in mailbox table when comments are missing
[Update] Remove obsolete check/replace command
2019-03-14 01:46:15 +01:00
andryyy
78b2bde942
[Web] Change core to dovecot-fts 2019-03-10 10:20:49 +01:00
andryyy
97adcbe5f8
[Web] Strip < and > from start/end of full name 2019-02-26 09:23:16 +01:00
andryyy
c111c4e429
[Web] Delete from quarantine and user_acl when deleting mailbox 2019-02-06 09:24:13 +01:00
andryyy
1e764009bf
[Web] Use INTL_IDNA_VARIANT_UTS46 in idn_to_ascii (thanks to @Knight1 !)
[Web] Some PHP fixes (warnings, notices)
[Web] Add quota notification tools
2019-02-05 00:10:21 +01:00
Guilherme Capanema de Barros
6f7e47ee40
Adds missing values to alias INSERT statement.
public_comment and private_comments were missing from the VALUES array in PDO prepare statement.
2019-01-31 09:38:18 -02:00
andryyy
07392b7437
[Watchdog] Use stackoverflow.com for DNS check
[Git] Ignore mail_plugins*
[Dovecot] Read mail_plugins from dynamically generated file
[Dovecot] Encrypt FTS
[Dovecot] Add break_imap_seach option to Solr
[Web] Add ability to send quarantine notification mails
[Web] Minor style fixes
[Web] Add new MAILBOX_DEFAULT_ATTRIBUTES (doc updates, anyone? :-( )
[Web] Use rcpt_smtp if rcpt_mime is not set
[Web] Other minor fixes
2019-01-29 00:20:39 +01:00
andryyy
8dde735a0a
[Web] Allow to turn off GAL for each domain 2019-01-16 23:41:02 +01:00
andryyy
2d07a0d6e6
[Web] Delete index data from Solr when deleting mailbox 2019-01-16 19:10:47 +01:00
andryyy
05e14401ad [Web] Edit domain, allow set max mailboxes to 0, fixes #2021 2018-11-16 23:12:46 +01:00
andryyy
2515a91ac3 [Web] Add "alias_domains" ACL to prevent alias domains to add alias domains (by default!)
[Web] Edit alias domains: use select menu
[Web] Minor fixes
2018-11-14 08:20:56 +01:00
andryyy
d82c2bfdb7 [Web] Adjust mailbox format
[Web] Include IMAP lib for future use
[Web] Fix default exception handler
[Web] Fix sync job edit forms
[Web] Other minor fixes
2018-11-12 10:03:50 +01:00
andryyy
0d4e89e62b [Web] Fix maildir cleanup after deleting mailbox 2018-10-25 22:39:20 +02:00
André
e30dfd6751 [Web] Queue manager for Postfix
[Web] Add sogo_access mail attribute
[Web] Allow to wipe SOGo profiles
2018-10-23 21:14:57 +02:00
André
2ac664ceb7 [Web] Fix missing return msg when resetting spam score 2018-10-18 22:32:37 +02:00
André
67658c1a07 [Web] Read default actions from Rspamd instead of using/printing "5,15"
[Web] Allow to reset spam score to server default (which deletes the custom spam score from the database and prints the default action values of Rspamd in use)
2018-10-18 21:48:30 +02:00
André
788e32b328 [Web] Set new expire date for time limited aliases via actions button, fixes #1903 2018-10-16 20:08:52 +02:00
André
9f0be1d8a8 [Web] Fix require_once to always include document root
[Web] Add system mails (send mails to all mailboxes via LMTP)
[Web] Allow to add more administrators
[Web] Fix domain administrator editing
[Web] Remove some foreign keys
[Web] Remove username from API
[Web] Remove more .php extension from code
[Web] More minor fixes
2018-10-11 11:59:23 +02:00
André
76530b7e6d [Web] Use json_encode for mail attrs when creating a mailbox 2018-10-03 11:28:25 +02:00
André
668a0927ac [Web] Fix deletion of domain, fixes #1818 2018-10-02 21:20:11 +02:00
André
0fb43f4916 [Docker API] Use TLS encryption for communication with "on-the-fly" created key paris (non-exposed)
[Docker API] Create pipe to pass Rspamd UI worker password
[Dovecot] Pull Spamassassin ruleset to be read by Rspamd (MANY THANKS to Peer Heinlein!)
[Dovecot] Garbage collector for deleted maildirs (set keep time via MAILDIR_GC_TIME which defaults to 1440 minutes)
[Web] Flush memcached after mailbox item changes, fixes #1808
[Web] Fix duplicate IDs, fixes #1792
[Compose] Use SQL sockets
[PHP-FPM] Update APCu and Redis libs
[Dovecot] Encrypt maildir with global key pair in crypt-vol-1 (BACKUP!), also fixes #1791
[Web] Fix deletion of spam aliases
[Helper] Add "crypt" to backup script
[Helper] Override file for external SQL socket (not supported!)
[Compose] New images for Rspamd, PHP-FPM, SOGo, Dovecot, Docker API, Watchdog, ACME, Postfix
2018-09-29 22:01:23 +02:00
André
c8a1cbd25a Merge branch 'temp-master' 2018-09-09 21:21:43 +02:00
André
c9554ca022 [Compose] Update watchdog image
[Watchdog] Fix IP detection with multiple networks
[Web] Show API field (no docs, no support, wip)
[Web] haveibeenpwned.com implementation
[Web] User and domain admin ACL (no docs, no support, wip)
[Web] Some minor fixes
2018-09-09 21:18:38 +02:00
André Peters
4b09b5b1bb
Update functions.mailbox.inc.php
[Web] Remove invalid parameter from sieve_filters update query, fixes #1714
2018-08-26 18:31:44 +02:00
André
5b4b184778 [Web] Fixes to mailcow logo (stickers are coming!)
[Web] Fix adding multiple domain aliases, fixes #1705
2018-08-23 08:49:02 +02:00
André
1dea230b7b [Web] Fix setting a rate limit when adding a domain 2018-08-21 21:23:06 +02:00
André
d28fd4070b [Web] Allow to set rate limit in add_domain modal
[Web] Cleanup rate limits when deleting objects
2018-08-21 21:06:22 +02:00
André
d64a89473e [Web] Add multiple DKIM at once (+ button to auto-fill missing keys)
[Web] Duplicate DKIM keys from a single domain to a single or multiple domains
[Web] WIP: Started Ratelimit rework
[Web] Show RL in overview of mailbox and domains
[Web] Move RL function out of mailbox functions file
[Web] Some language fixes/changes
2018-08-21 17:41:04 +02:00
André
1791383eab [Web] Fix duplicate success message after editing a domain as domain administrator
[Web] Add "login as" button for domain admin table
2018-08-15 00:05:18 +02:00