Commit Graph

327 Commits

Author SHA1 Message Date
Girish Ramakrishnan 6ac0cd421a use the @cloudron/superagent module 2025-07-10 10:56:05 +02:00
Girish Ramakrishnan 0427d08ede mail: dnsbl can give empty records 2025-06-28 16:52:37 +02:00
Girish Ramakrishnan a7aec70bc1 mail: add rbl6
abuse.ch is using spamhaus
sorbs is dead
2025-06-28 14:17:51 +02:00
Girish Ramakrishnan c7d36ac06e mail: fix status variable checks 2025-06-28 12:57:05 +02:00
Girish Ramakrishnan 9428cf0d06 mail: make status a tristate
status can be 'passed', 'failed' or 'skipped'. The motivation for this
change is that when using a relay, we can provide a message indicating
why the check was skipped.
2025-06-28 12:20:25 +02:00
Girish Ramakrishnan 4e54e4c22a Fix relay UI password display 2025-06-27 13:06:55 +02:00
Girish Ramakrishnan 565859b2aa relay: force STARTTLS when testing outbound relay
haraka only supports STARTTLS
2025-06-27 10:23:05 +02:00
Girish Ramakrishnan 1672217dd9 replace mysql module with mysql2
mysql is deprecated since years now
2025-06-19 12:41:49 +02:00
Johannes Zellner e6d8115e52 Allow to set enablePop3 when adding a mailbox 2025-06-13 17:38:55 +02:00
Girish Ramakrishnan ee0ac7cbed mail: remove duration in message 2025-05-15 13:25:47 +02:00
Girish Ramakrishnan 785db03650 unbound: increase tries, since it fails often 2025-03-26 14:47:46 +01:00
Girish Ramakrishnan ba1636033e typo 2025-03-10 21:23:55 +01:00
Girish Ramakrishnan 8a51582d8a mail: restart apps using email addon
move this logic from frontend to backend
2025-03-10 21:15:06 +01:00
Girish Ramakrishnan f0848e23c7 replace validator module 2025-03-07 12:32:50 +01:00
Girish Ramakrishnan 8e58349bfa replace with custom superagent based on fetch API 2025-02-15 15:14:09 +01:00
Girish Ramakrishnan dd5e4adc73 replace underscore with our own
we only need like 5 simple functions
2025-02-13 14:14:34 +01:00
Girish Ramakrishnan 979e91a2eb skip check when no ipv4/ipv6
(cherry picked from commit c478ace8bd)
2025-02-02 08:41:43 +01:00
Girish Ramakrishnan 6fcfa6cac0 mail: add ipv6 rdns check 2025-01-08 17:28:28 +01:00
Girish Ramakrishnan d3b82d68e7 add todo for ipv6 ptr 2024-12-22 12:39:33 +01:00
Girish Ramakrishnan 1d0f3a08f4 porkbun: it is really slow 2024-12-16 09:46:38 +01:00
Girish Ramakrishnan 746e694d7e notifications: rename alert to pin and unpin 2024-12-11 17:31:32 +01:00
Girish Ramakrishnan ead419003b notifications: rename ALERT_ to TYPE_ 2024-12-11 15:29:20 +01:00
Girish Ramakrishnan a9e1d7641d shell: make require take a tag 2024-10-14 21:08:32 +02:00
Girish Ramakrishnan 6d4cc4a6b8 const fixes 2024-05-23 10:58:59 +02:00
Girish Ramakrishnan 4229e9921c blacklisted -> blocked 2024-05-23 09:53:47 +02:00
Girish Ramakrishnan 44c61f7bd7 mail: do port 25 connectivity check with ipv4 2024-02-28 20:47:46 +01:00
Girish Ramakrishnan ceb908bee7 Use constants.TEST 2023-10-01 13:52:19 +05:30
Girish Ramakrishnan 4cdf37b060 settings: move mailFqdn/Domain into mailServer 2023-08-04 22:02:24 +05:30
Girish Ramakrishnan 946e5caacb split mail and mailserver
mail = all the per-domain code
mailserver = all the mail server level code
2023-08-04 20:54:39 +05:30
Girish Ramakrishnan 2cdbf4d2c5 move server routes into /system 2023-08-04 13:42:21 +05:30
Girish Ramakrishnan 47d57a3971 fold sysinfo into network
the backends are network backends
2023-08-03 13:38:42 +05:30
Girish Ramakrishnan a4d57e7b08 refactor into getServiceConfig 2023-08-03 12:52:47 +05:30
Girish Ramakrishnan bbc6ba1a35 settings: move service setting into services.js
this also introduces getJson/setJson
2023-08-03 11:50:00 +05:30
Girish Ramakrishnan e410844350 mail: validate the mail server hostname 2023-07-10 23:05:17 +05:30
Girish Ramakrishnan ab2056138e Give more time to resolve 2023-06-30 19:10:23 +05:30
Girish Ramakrishnan aea58a2b76 lint 2023-06-30 18:27:18 +05:30
Girish Ramakrishnan e6ba2a6e7a replace usage of _.extend with Object.assign 2023-05-25 11:45:14 +02:00
Girish Ramakrishnan f40c4b9b2c notifications: clear email status when message is empty 2023-04-04 11:26:20 +02:00
Girish Ramakrishnan e4e36ff90c make it clear it is the flipped IP 2023-03-27 12:11:59 +02:00
Girish Ramakrishnan fe21aa12ee Remove CBL check
From https://www.abuseat.org/ ,

"IMPORTANT TO ALL CBL users: If you were using the CBL to filter access to your mail servers or anything else, you will need to take note of several changes to the CBL that occured in January 2021. In short, the CBL infrastructure was replaced by the Spamhaus XBL structure, the lookup pages and access methods have changed. Full details on our CBL Cutover page "
2023-03-26 16:24:47 +02:00
Girish Ramakrishnan 3616fbb51c dns: add porkbun
domain setup ui
2023-03-16 20:21:39 +01:00
Girish Ramakrishnan d5793bc7c0 Fix crash in RBL check 2022-12-08 23:53:21 +01:00
Girish Ramakrishnan f27847950c reverseproxy: notify cert change only in cron job
notifying this in ensureCertificate does not work if provider changed in the middle anyway.
might as well get them to be in sync in the cronjob.

this change also resulted in tls addon getting restarted non-stop if you change from wildcard
to non-wildcard since ensureCertificate notifies the change.
2022-11-30 15:55:32 +01:00
Girish Ramakrishnan e942b8fe7e better debugs 2022-11-30 13:08:05 +01:00
Girish Ramakrishnan 15cc624fa5 do string compare in certs 2022-11-30 09:59:19 +01:00
Girish Ramakrishnan 302f975d5c handle type mismatch 2022-11-29 17:13:58 +01:00
Girish Ramakrishnan 89127e1df7 reverseproxy: rework cert logic
9c8f78a059 already fixed many of the cert issues.

However, some issues were caught in the CI:

* The TLS addon has to be rebuilt and not just restarted. For this reason, we now
  move things to a directory instead of mounting files. This way the container is just restarted.

* Cleanups must be driven by the database and not the filesystem . Deleting files on disk or after a restore,
  the certs are left dangling forever in the db.

* Separate the db cert logic and disk cert logic. This way we can sync as many times as we want and whenever we want.
2022-11-29 11:07:23 +01:00
Girish Ramakrishnan b70572a6e9 dns: fqdn only needs domain string
This is from the caas days, when we had hyphenated subdomains flag
2022-11-28 21:56:25 +01:00
Girish Ramakrishnan 9dac5e3406 typo 2022-11-06 11:57:45 +01:00
Girish Ramakrishnan 549cb92ce7 return swap listing in the disk route 2022-11-04 15:25:12 +01:00