Commit graph

261 commits

Author SHA1 Message Date
Son
cfe88b5df2 use job system to delete domain 2021-10-13 11:43:44 +02:00
Son
fbabe6fb44 use job system for deleting mailbox 2021-10-13 11:40:15 +02:00
Son Nguyen Kim
de3207ac4b Add ALIAS_AUTOMATIC_DISABLE 2021-09-17 18:05:18 +02:00
Son Nguyen Kim
3441d2ccf1 add new param TEMP_DIR 2021-09-15 09:28:08 +02:00
Son Nguyen Kim
106358da5f handle yahoo complaint 2021-09-13 19:49:40 +02:00
Son Nguyen Kim
b3012376c3 use another DKIM header if one fails 2021-09-13 16:04:32 +02:00
Son Nguyen Kim
6dd6b74073 black 2021-09-07 11:13:28 +02:00
Son Nguyen Kim
b53da25a41 handle hotmail complaint 2021-09-06 19:44:18 +02:00
Son
1384ccc459 remove RESET_DB config 2021-08-15 17:32:33 +02:00
Son Nguyen Kim
8ab840933f Add NEWRELIC_CONFIG_PATH config 2021-07-23 15:48:50 +02:00
Raymond Nook
4469a64de6
Merge branch 'simple-login:master' into master 2021-06-24 02:57:17 -07:00
Son NK
6532e0de93 Return 550 instead of 421 when rate limited. Rename greylisting to rate limit 2021-06-24 09:47:01 +02:00
Son NK
e8cee6de80 increase greylisting threshold 2021-06-23 19:55:41 +02:00
Raymond Nook
258d505cbf
Merge branch 'master' into master 2021-05-26 22:33:20 -07:00
Son NK
a918cc3670 Add BOUNCE_PREFIX_FOR_REPLY_PHASE 2021-05-25 17:59:40 +02:00
Sylvia van Os
bee468e055 Black 2021-05-15 18:04:50 +02:00
devStorm
4a0fc8380f
variable naming 2021-05-14 11:03:16 -07:00
Sylvia van Os
f67f5297f2 Add HIBP checks 2021-05-14 19:50:32 +02:00
devStorm
30183ac8c3
🐛 fix style 2021-05-13 19:34:54 -07:00
devStorm
3fc250018d
basic implementation of random suffix 2021-05-13 16:13:19 -07:00
Son NK
7946879308 schedule account deletion 2021-04-23 11:50:26 +02:00
Son NK
2270ccf35d Add ENABLE_SPAM_ASSASSIN setting 2021-03-26 10:00:16 +01:00
Son NK
0bb8f9a227 make ALIAS_LIMIT configurable 2021-03-26 09:56:04 +01:00
Son NK
0c62ac4b1f set rate limit for creating alias endpoint 2021-03-24 16:26:42 +01:00
Son NK
d59cee0bcc improve welcome email 2021-03-23 18:47:16 +01:00
Son NK
3c8ec8fcf2 make DKIM_PRIVATE_KEY_PATH optional 2021-03-08 15:18:03 +01:00
Son NK
819738f55c remove unused DKIM_PUBLIC_KEY_PATH, DKIM_DNS_VALUE 2021-03-08 15:14:37 +01:00
Son
23a0861790 Improve alias transfer. Use alias transfer_token. Add a limiter on /alias_transfer/receive 2021-03-06 18:08:42 +01:00
Son
80d80657d6 remove cloudwatch params 2021-03-06 16:09:27 +01:00
Son NK
3af98026e3 refactor config: do not use eval() 2021-03-05 17:26:47 +01:00
Son NK
a65680b5ba remove DEBUG param 2021-03-05 17:26:47 +01:00
Son NK
9e486fc2c0 add alias transfer 2021-02-17 12:56:28 +01:00
Son NK
e7063b6514 highlight reddit in welcome mail 2021-02-12 13:03:31 +01:00
Son NK
bbb6049351 Add POSTFIX_PORT_FORWARD 2021-01-28 13:49:40 +01:00
Son NK
4cd49b66c2 use VERP for transactional email: remove SENDER, SENDER_DIR 2021-01-26 09:59:22 +01:00
Son NK
8e49fc40d4 fix 2021-01-20 13:28:23 +01:00
Son NK
202f28722e make MAX_SPAM_SCORE, MAX_REPLY_PHASE_SPAM_SCORE configurable 2021-01-20 13:27:30 +01:00
Son NK
d6cc2a4bf3 Add AWS_REGION env var 2021-01-12 09:54:46 +01:00
Son NK
13f3deb671 fix 2021-01-11 15:06:56 +01:00
Son NK
c83b146f14 Add BOUNCE_PREFIX, BOUNCE_SUFFIX config 2021-01-11 14:51:29 +01:00
Son NK
f19a7e1bca Add COINBASE_API_KEY and COINBASE_YEARLY_PRICE config 2020-12-14 11:33:39 +01:00
Son NK
0542adb761 Add COINBASE_WEBHOOK_SECRET, COINBASE_CHECKOUT_ID config 2020-12-13 19:11:49 +01:00
Son Nguyen Kim
bf139f83b3
Merge pull request #342 from herrboyer/linting
Linting
2020-12-07 17:45:50 +01:00
Son NK
ce3dae2a07 inform user when an alias can't be created when a directory is disabled 2020-12-07 10:55:13 +01:00
Renaud Boyer
a46a03be85 linting 2020-12-06 17:57:10 +01:00
Son NK
3489e41fdb Add NOREPLY setting 2020-11-14 15:53:20 +01:00
Son NK
2c46d1db8e Add PGP_SIGNER and display if it's set 2020-11-14 13:00:14 +01:00
Son NK
a35256d161 fix paddle 2020-11-09 17:34:58 +01:00
Son NK
15466903d1 Support OTHER_PADDLE_MONTHLY_PRODUCT_IDS, OTHER_PADDLE_YEARLY_PRODUCT_IDS config 2020-11-09 16:56:17 +01:00
Son NK
6c626520d3 handle_bounce_reply_phase 2020-11-04 12:32:15 +01:00
Son NK
3f150e5944 add new param PGP_SENDER_PRIVATE_KEY_PATH 2020-11-02 19:06:47 +01:00
Son NK
0a4fc76b61 optimize import 2020-10-15 16:45:28 +02:00
Son NK
cd15c64731 Add PREMIUM_ALIAS_DOMAINS config 2020-10-15 16:01:44 +02:00
Son NK
f664243e42 add batch-import page 2020-09-10 20:14:55 +02:00
Son NK
4cb3e54821 send at max 1 email / 30 days for DNS issue on custom domain 2020-08-31 17:36:27 +02:00
Son NK
e117726cd9 send alert email when a mailbox is an email alias 2020-08-30 19:06:50 +02:00
Son NK
ab911fd55e do not forward cycle email: email sent to alias from its mailbox 2020-08-25 12:51:19 +02:00
Son Nguyen Kim
637bc569eb
Merge pull request #260 from FabioWidmer/improvements-1
Improvements for Self Hosting & More
2020-08-24 20:16:59 +02:00
Son NK
ef196c5b4a use 5.5 as max spam score 2020-08-22 16:58:51 +02:00
Son NK
bf555ed605 detect spam in reply phase 2020-08-15 16:53:57 +02:00
Son NK
08db23658a add SPAMASSASSIN_HOST param 2020-08-15 16:33:48 +02:00
Son NK
d8e4396a70 add HOST param 2020-08-14 19:09:45 +02:00
Fabio Widmer
8e71e8e7f4
A few (self hosting) improvements 2020-08-12 16:12:41 +02:00
Fabio Widmer
d0ed69f8aa
Add Plausible Analytics support 2020-08-12 15:24:34 +02:00
Son NK
307e3c93c6 Add HCAPTCHA_SECRET, HCAPTCHA_SITEKEY param 2020-07-23 12:40:50 +02:00
Son NK
c41bffbbae refactor: use SESSION_COOKIE_NAME instead of hardcoding "slapp" 2020-06-28 21:17:18 +02:00
Son NK
9abfa3e98c Add new param SENDER, SENDER_DIR 2020-06-10 13:54:42 +02:00
Son NK
62017592e1 Add ALIAS_DOMAINS config 2020-05-25 19:51:30 +02:00
Son NK
817e4e0f87 add POSTFIX_PORT param 2020-05-21 20:43:12 +02:00
Son NK
93d972df09 make sure to use lowercase for alias email 2020-05-20 18:12:14 +02:00
Son NK
92cd75f14a Add DISABLE_ONBOARDING param 2020-05-10 14:43:41 +02:00
Son NK
178515dbde alert user when spf fails 2020-05-09 23:00:30 +02:00
Son NK
d9f1fb9130 Create send_email_with_rate_control(): same as send_email() but with rate control 2020-05-09 20:43:17 +02:00
Sibren Vasse
001079bdc5 Enforce SPF 2020-05-09 14:15:08 +02:00
Son NK
84c529c867 optimize import 2020-05-07 17:49:29 +02:00
devStorm
282cbe25a3
Calculate RP_ID in config 2020-05-07 02:39:30 -07:00
Son NK
db92003e5f Anti tamper: avoid submitting any suffix 2020-05-02 12:15:03 +02:00
Son NK
9c60cd3d88 Add MACAPP_APPLE_API_SECRET param 2020-04-29 15:47:03 +02:00
Son NK
ca6350cc27 optimize import in all files 2020-04-25 13:49:39 +02:00
Son NK
1bba38edb6 Add POST /apple/process_payment 2020-04-19 11:13:38 +02:00
Son NK
7b965e4121 Add APPLE_API_SECRET param 2020-04-18 20:47:11 +02:00
Son NK
6fa46042dc Add DISPOSABLE_FILE_PATH param 2020-04-16 09:42:34 +02:00
Son NK
8ebc26f4e7 add FIRST_ALIAS_DOMAIN param 2020-04-15 22:36:50 +02:00
Son NK
6cfd534192 Add LOAD_PGP_EMAIL_HANDLER param. Load PGP keys if LOAD_PGP_EMAIL_HANDLER is set 2020-04-14 12:46:12 +02:00
Son NK
e44860329b Make sure user cannot create more than 50 directories 2020-04-12 20:14:49 +02:00
Son NK
bb2476203f User can create referrals 2020-04-09 22:39:39 +02:00
Son NK
a54ac0b3da Add LANDING_PAGE_URL param 2020-04-09 22:18:03 +02:00
Son NK
eccc8a71e9 use MAX_ACTIVITY_DURING_MINUTE instead of MIN_TIME_BETWEEN_ACTIVITY 2020-04-04 17:22:27 +02:00
Son NK
8caebc0142 Return 421 when there's too much activity on an alias or mailbox 2020-04-04 16:27:22 +02:00
Son NK
58ca77e2ae Add browser extension onboarding email 2020-04-02 23:26:17 +02:00
Son NK
88d63bd931 add UNSUBSCRIBER config 2020-03-28 23:15:45 +01:00
Son NK
9e04081186 send mailbox onboarding email 2020-03-24 21:19:45 +01:00
Son NK
c02b8298fc send pgp onboarding email to user on 2nd day 2020-03-24 21:01:38 +01:00
Son NK
88039844ef remove "subject" from DKIM 2020-03-22 15:08:26 +01:00
Son NK
a9fdfc799f Add LOCAL_FILE_UPLOAD param 2020-03-13 14:37:48 +01:00
Son NK
c1c3224a41 Merge branch 'cancel-sub' into staging 2020-03-08 23:13:23 +01:00
Son NK
f905fa626c add GNUPGHOME config 2020-03-08 11:54:59 +01:00
Son NK
8aacd5e6da Add PADDLE_AUTH_CODE config 2020-03-08 10:27:26 +01:00
Son NK
3410475223 Add POSTFIX_SUBMISSION_TLS config 2020-03-03 10:48:27 +01:00
Son NK
7e4eb9e0db use MAILBOX_SECRET instead of FLASK_SECRET 2020-02-29 18:18:52 +07:00
Son NK
ec248dcae6 use another sentry project for the front-end using SENTRY_FRONT_END_DSN param 2020-02-05 14:38:29 +07:00
Son NK
40cac56986 GET /api/aliases 2020-02-04 23:26:59 +07:00
Son NK
61229200a5 create job runner 2020-02-03 13:11:11 +07:00
Son NK
f76bdd8fe6 set DISABLE_REGISTRATION param to disable registration 2020-01-28 11:50:25 +07:00
Son NK
4dfa45886e add SUPPORT_NAME param 2020-01-28 09:29:04 +07:00
Son NK
9b9a3e7d07 fix formatting 2020-01-28 00:15:48 +07:00
Son NK
69e87137ec Fix PADDLE params 2020-01-28 00:02:59 +07:00
Son NK
a8bceac8a7 fix FLASK_SECRET 2020-01-28 00:02:47 +07:00
Son NK
2644996eee Make some params optional or with acceptable default values:
MAX_NB_EMAIL_FREE_PLAN
FLASK_SECRET
BUCKET
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
PADDLE_*
OPENID_PRIVATE_KEY_PATH
OPENID_PUBLIC_KEY_PATH
WORDS_FILE_PATH
GITHUB_*, GOOGLE_*, FACEBOOK_*
2020-01-27 23:27:41 +07:00
Son NK
d6020d5fa0 pass highlight_gen_email_id via url query instead of session. Remove HIGHLIGHT_GEN_EMAIL_ID 2020-01-23 20:15:47 +01:00
Son NK
a6507a39e4 Add optional OTHER_ALIAS_DOMAINS setting. Create ALIAS_DOMAINS setting that is the list of domain user can use when creating alias. 2020-01-22 10:24:17 +01:00
Son Nguyen Kim
204ccd34c9
Merge pull request #37 from simple-login/disable-suffix-option
Disable suffix option
2020-01-20 13:35:22 +01:00
Son NK
f56ba95b4d disable alias suffix by setting DISABLE_ALIAS_SUFFIX 2020-01-20 09:23:17 +01:00
Son NK
b865be760c Use CloudFlare DNS nameserver 2020-01-19 10:22:20 +01:00
doanguyen
8f1c56baf9 forget to push this local configuration 2020-01-05 23:03:56 +01:00
doanguyen
5ffdc45c87 fix DEBUG flag is not default in os environment 2020-01-05 22:53:00 +01:00
doanguyen
5af974fc5d alias log dashboard 2020-01-05 22:49:48 +01:00
doanguyen
4e84815375 let debug configurable 2020-01-05 19:45:29 +01:00
Son NK
e609404e6f Add FLASK_PROFILER_PATH, FLASK_PROFILER_PASSWORD setting 2020-01-01 22:54:33 +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
doanguyen
45c49f1e1a minor comments on domain-detail branch 2019-12-29 10:48:46 +01:00
Son NK
90bd84e9cc add DKIM_PUBLIC_KEY_PATH setting 2019-12-29 10:46:00 +01:00
doanguyen
d026c596ac remove lambda function from config.py 2019-12-28 14:20:10 +01:00
doanguyen
1393b80970 considering lazy loading for non-critical loc 2019-12-28 14:20:10 +01:00
Son NK
e5b10b28a6 Create MFA Setup page if user enable MFA 2019-12-27 16:53:07 +00:00
Son NK
1eefb9228f only parse CLOUDWATCH_LOG_GROUP, CLOUDWATCH_LOG_STREAM if CLOUDWATCH is enabled 2019-12-27 10:39:39 +01:00
Son NK
91e38a744b remove GenEmail.custom column 2019-12-22 16:32:55 +00:00
Son NK
a61b900675 Sign DKIM at app level
- add DKIM_PRIVATE_KEY_PATH param
- create email_utils.add_dkim_signature
- add DKIM signature for transactional emails
- add DKIM signature for forward & reply emails. In reply phase, only non-custom-domain emails have DKIM added.
2019-12-17 18:50:26 +02:00
Son NK
f8293bc618 make ADMIN_EMAIL optional 2019-12-16 19:36:59 +02:00
Son NK
66091b4f9e replace ENABLE_SENTRY by SENTRY_DSN 2019-12-16 19:30:17 +02:00
Son NK
88cef1b90d add new param IGNORED_EMAILS and use it in cronjob 2019-12-15 18:55:18 +02:00
Son NK
d58f9d4c89 add new param PADDLE_PUBLIC_KEY_PATH 2019-12-15 18:55:18 +02:00
Son NK
dc66cf76e2 allow overriding postfix server 2019-12-15 18:55:18 +02:00
Son NK
4e6922adad disable late_payment in cron job 2019-12-15 18:55:18 +02:00
Son NK
df3838480d add COLOR_LOG config 2019-12-15 18:55:17 +02:00
Son NK
2e23a1bf19 add RESET_DB back 2019-12-15 18:55:17 +02:00
Son NK
6e387444f5 do not use RESET_DB to avoid potential error: uncomment fake_date locally if necessary 2019-12-15 18:55:17 +02:00
Son NK
5d9420a763 add EMAIL_SERVERS_WITH_PRIORITY and EMAIL_SERVERS config 2019-12-15 18:55:16 +02:00
Son NK
b59ffb94b2 Remove Stripe usage 2019-12-15 18:55:16 +02:00
Son NK
2ec89afac2 add ADMIN_EMAIL and send notif to this email 2019-12-15 18:55:15 +02:00
Son NK
34cf72eaee create POSTFIX server 2019-12-15 18:55:15 +02:00
Son NK
6f93f419c2 send by postfix only 2019-12-15 18:55:14 +02:00
Son NK
4a56d2eef5 add billing and pricing page 2019-12-15 18:55:13 +02:00
Son NK
62c3b4cd02 highlight newly created gen-email 2019-12-15 18:55:12 +02:00
Son NK
9a8282107f avatarURL returned in user_info is expired in 1 week 2019-12-15 18:55:12 +02:00
Son NK
5ff317538c remove monthly pricing, display 20$ for monthly pricing 2019-12-15 18:55:12 +02:00
Son NK
d7d2ea04a9 replace lyra by GA 2019-12-15 18:55:12 +02:00
Son NK
40f8c610d2 do not change FLASK_SECRET at each new deployment 2019-12-15 18:55:11 +02:00
Son NK
ea123b0922 remove partner code 2019-12-15 18:55:10 +02:00
Son NK
ddf188f146 add ClientUser.name,default_avatar, GenEmail.custom column 2019-12-15 18:55:10 +02:00