Adrià Casajús
d324e2fa79
Fix: Add csrf verification to directory updates ( #1358 )
...
* Fix: Add csrf verification to directory updates
* Update templates/dashboard/directory.html
* Added csrf for delete account form
* Fix tests
* Added CSRF check for settings page
* Added csrf to batch import
* Added CSRF to alias dashboard and alias transfer
* Added csrf to contact manager
* Added csrf to mailbox
* Added csrf for mailbox detail
* Added csrf to domain detail
* Lint
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-10-27 10:04:47 +02:00
Adrià Casajús
d5ca316e41
Have custom domains set up multiple dkim records to be able to rotate keys ( #1334 )
...
* Have custom domains set up multiple dkim records to be able to rotate keys
* Apply suggestions from code review
* Some PR comments
* Keep dkim enabled if it is already
* Format
* PR updates
Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-10-11 07:17:37 +02:00
george
c415324932
Add flake8-bugbear
2022-02-06 20:37:43 +00:00
Son
5e7730c35c
refactor: move regex_match() to its own file
2021-12-14 15:00:32 +01:00
Son
f3e8fc10a9
use re instead of re2 if error "Argument 'pattern' has incorrect type (expected bytes, got PythonRePattern)"
2021-12-11 19:38:22 +01:00
Son
cd553608a5
fix
2021-11-23 14:35:37 +01:00
Son
f049da8c9a
Compare mx domains with priority order and not priority value
2021-11-23 14:31:53 +01:00
Son
ffc04c7fe9
redirect user to subdomain page if a subdomain is deleted
2021-11-17 17:34:53 +01:00
Son
05cf085511
fix
2021-10-13 13:32:27 +02:00
Son
cfe88b5df2
use job system to delete domain
2021-10-13 11:43:44 +02:00
Son
372466ab06
do not use flask-sqlalchemy
...
- add __tablename__ for all models
- use sa and orm instead of db
- rollback all changes in tests
- remove session in @app.teardown_appcontext
2021-10-12 14:36:47 +02:00
Son Nguyen Kim
469c2011aa
use ~all instead of -all for SPF
2021-09-23 10:30:59 +02:00
Son Nguyen Kim
1d09d76cb2
use re2 instead of re to avoid ReDOS attack
2021-09-21 10:57:36 +02:00
Son Nguyen Kim
84880ae32a
fix error with rule regex doesn't save if error
2021-09-21 10:42:32 +02:00
Son Nguyen Kim
1e3afa257c
validate regex before creating rule
2021-09-21 10:42:02 +02:00
Son Nguyen Kim
f160ebec4e
add debug zone to auto create page
2021-09-21 10:14:36 +02:00
Son Nguyen Kim
56c72d5fba
create auto create page, remove custom domain auto_create_regex part
2021-09-20 18:28:43 +02:00
Son Nguyen Kim
0b127216ee
user can set custom_domain.auto_create_regex
2021-09-17 17:41:36 +02:00
Son Nguyen Kim
b990c052ac
move domain mailboxes to domain detail page and only enable it if catch-all is on
2021-09-17 11:54:37 +02:00
Son Nguyen Kim
59e4dbb6a6
fix error display on domain ownership check
2021-08-17 19:39:58 +02:00
Son Nguyen Kim
9c6f3989a0
remove hack
2021-08-17 19:19:49 +02:00
Son Nguyen Kim
aa041708e3
add ownership verification via TXT record
2021-08-17 19:05:12 +02:00
Son Nguyen Kim
f4fead2542
generate a domain ownership txt token if needed
2021-08-17 19:03:15 +02:00
Son
e5308932a2
make mailbox deletion async
2021-08-15 17:50:47 +02:00
Renaud Boyer
4bf22771af
linting
2020-12-06 22:01:38 +01:00
Son NK
bcb2657de3
add remove button on custom domain name
2020-11-24 12:02:47 +01:00
Son NK
8aed5ced3f
make sure a custom domain name does not contain a linebreak
2020-11-20 18:40:07 +01:00
Son NK
25de8001e2
fix circular import
2020-11-12 17:56:03 +01:00
Son NK
1c061ceb59
Schedule domain deletion instead of deleting it immediately
2020-11-12 17:41:47 +01:00
Sylvia van Os
9702037573
Reformat with Black
2020-10-09 23:00:10 +02:00
Sylvia van Os
26d0437009
Make prefix generation configurable per domain
2020-10-09 22:54:13 +02:00
Son NK
e4c4797cdb
do not mark a domain as unverified if it fails the MX check
2020-08-31 17:11:18 +02:00
Son NK
fdedc24358
black new version
2020-08-27 10:20:48 +02:00
Son NK
a3ff19dac4
create custom domain trash page
2020-05-23 11:48:43 +02:00
Sibren Vasse
c7530947d3
On domain check fail, update database
2020-05-14 15:05:04 +02:00
Sibren Vasse
0e4799030d
Add default alias name to custom domain
2020-05-03 19:35:02 +02:00
Son NK
4ca6b02047
fix DKIM cname check
2020-05-03 12:48:42 +02:00
Son NK
753e82d490
Add DMARC
2020-05-03 12:01:31 +02:00
Son NK
6a42673229
remove the copy button, use CNAME for DKIM
2020-05-03 11:19:14 +02:00
Son NK
4f281bdbbb
rename GenEmail -> Alias, gen_email to alias whenever possible
2020-03-17 11:51:40 +01:00
Son NK
13283b6327
Support cancelled premium users in custom domain & directory
...
- Freemium user can see custom domain and directory but could not add new.
- user who has added custom domain or directory before could delete them
2020-01-16 22:21:19 +01:00
Son NK
ab3fe8a626
Flash errors when MX, SPF or DKIM fail
2020-01-02 22:22:09 +01:00
Son NK
02880fbc47
fix redirection
2019-12-30 21:11:31 +01:00
Son NK
757fff71af
Fix MX and SPF check
...
- take into account priority in MX check
- use EMAIL_DOMAIN in SPF instead of MX server
2019-12-30 19:37:50 +01:00
Son NK
ef8f87798b
Fix MX DNS record
2019-12-30 18:58:44 +01:00
Son NK
c3620a1e45
Fix formatting
2019-12-30 18:53:49 +01:00
Son NK
8d85ab35f1
Move delete domain to domain info page
2019-12-30 18:51:55 +01:00
Son NK
96bb37f0f6
User can enable/disable catch-all on custom domain
2019-12-30 18:20:49 +01:00
Son NK
4b6717d8dd
Split domain detail into Info and DNS page
2019-12-30 17:52:08 +01:00
doanguyen
6f256bcd3f
minor comments on domain-detail branch
2019-12-29 10:48:46 +01:00