Johannes Zellner
65f949e669
Add settings.getSubscription()
2017-06-19 13:26:49 +02:00
Girish Ramakrishnan
9ead482dc6
Make verifyDnsConfig take zone name
...
part of #110
2017-06-15 19:55:24 -07:00
Girish Ramakrishnan
0cc980f539
Add setting for catch all address
...
Note that this is not a flag on the mailboxes because we might theoretically
support forwarding to some other external domain in the future.
Part of #33
2017-06-15 07:48:46 -07:00
Girish Ramakrishnan
ddb69eb25c
remove native-dns and use dig directly
...
native-dns module is unmaintained and we keep getting sporadic
errors from that module
Fixes #220
2017-05-26 16:51:05 -07:00
Johannes Zellner
374130d12a
Only set local dns server if run on a cloudron
2017-05-11 15:37:44 +02:00
Girish Ramakrishnan
ddf7823b19
Make box come up regardless of dns config
...
Part of #302
2017-04-25 16:53:14 -07:00
Girish Ramakrishnan
abe72442ae
Set default retentionSecs
...
Set to 2 days for filesystem provider and -1 (never) for s3/minio.
Part of #310
2017-04-22 21:46:26 -07:00
Girish Ramakrishnan
0584ace954
Remove StorageError from backends
2017-04-20 18:12:29 -07:00
Girish Ramakrishnan
5424a658f3
Do not read PTR records from /etc/hosts
...
Fixes #306
2017-04-19 19:34:22 -07:00
Girish Ramakrishnan
b268a18695
Just destroy the client socket
2017-04-19 09:14:00 -07:00
Johannes Zellner
06f1b9dd1b
Ensure we only call callback once for port 25 check
...
On a caas cloudron we saw timeout and end events raised, causing the box
to crash as async throws on double callbacks
2017-04-19 14:35:22 +02:00
Girish Ramakrishnan
7e44e7de82
Check outbound port 25
...
Fixes #243
2017-03-09 16:20:53 -08:00
Girish Ramakrishnan
32e2377828
sysinfo: getIp -> getPublicIp
2017-02-23 22:03:48 -08:00
Girish Ramakrishnan
d8273719d2
more robust detection and injection of SPF record
...
Fixes #210
2017-02-15 23:03:56 -08:00
Girish Ramakrishnan
69aa771d44
Fix dkim dns crash
...
Fixes #207
2017-02-08 14:02:30 -08:00
Johannes Zellner
480cface63
Do not crash if we did not receive a dmarc txt record
2017-02-08 16:55:08 +01:00
Girish Ramakrishnan
b91674799b
Create/destroy event listeners
...
mocha loads all the tests in same process. This means that when
we start a new test, the old state still persists. For event
listeners, this means that they get multiple duplicate event handlers.
2017-02-07 10:30:52 -08:00
Girish Ramakrishnan
9d3cf990d1
Fix app test
2017-02-07 00:45:24 -08:00
Girish Ramakrishnan
509bd7e79b
Make settings-test pass
2017-02-06 16:02:30 -08:00
Girish Ramakrishnan
c6d9cfc0d7
Passing IP never worked
2017-02-02 15:33:19 -08:00
Girish Ramakrishnan
f7d2e262f4
Always fill spf record
2017-02-02 14:20:25 -08:00
Girish Ramakrishnan
7635482191
Query via unbound
...
The timeout applies to each server. This resulted in us frequently
getting timeout out when we have more than one name server.
2017-02-02 13:58:49 -08:00
Girish Ramakrishnan
b23001e43f
better error log
2017-02-02 13:58:49 -08:00
Girish Ramakrishnan
06c8e8f0cb
Query dns in parallel
2017-02-02 13:58:49 -08:00
Girish Ramakrishnan
ce2cd00fbf
Fix crash when no MX record is found
2017-02-02 13:58:49 -08:00
Girish Ramakrishnan
87755c6097
ignore errors and continue
2017-02-01 23:38:06 -08:00
Girish Ramakrishnan
73f56efe2c
Fix typo
2017-02-01 23:25:13 -08:00
Girish Ramakrishnan
20eaa60a97
clear timeout
2017-02-01 23:20:11 -08:00
Girish Ramakrishnan
b80f0082e9
subdomain -> domain
2017-02-01 23:06:41 -08:00
Girish Ramakrishnan
1ff800a842
Display mx, dmarc, ptr status
...
Fixes #169
2017-02-01 22:59:06 -08:00
Johannes Zellner
90efb96635
parse mailConfig blob
2017-01-31 16:36:09 -08:00
Johannes Zellner
0b03018a7b
Add constant for special 'never' autoupdate pattern
2017-01-26 15:36:24 -08:00
Girish Ramakrishnan
5bff7ebaa1
remove dead comment
2017-01-12 11:46:52 -08:00
Girish Ramakrishnan
b929adf2dd
Fix migration
2017-01-10 16:23:01 -08:00
Girish Ramakrishnan
80d65acd0d
Set the domain only during dns setup
...
If we change the domain when dns settings are changed, then migration
fails because we callout to appstore API via the domain (for example,
backup url call will fail because it uses the new domain name).
2017-01-10 16:16:32 -08:00
Johannes Zellner
35404a2832
Return expected dns records also if we hit NXDOMAIN
2017-01-10 15:51:53 +01:00
Johannes Zellner
a20b331095
Convert settings JSON to objects
2017-01-10 15:24:16 +01:00
Johannes Zellner
0a154339e6
Fix the normal case of changing dns provider
2017-01-10 13:15:14 +01:00
Johannes Zellner
1d44d0a987
Remove dns validation code in settings.js
2017-01-10 11:33:33 +01:00
Johannes Zellner
babfb5efbb
Make the verifyDnsConfig() api return the valid credentials
2017-01-10 11:32:44 +01:00
Johannes Zellner
684e7df939
At least resolve nameservers for dns settings validator
2017-01-06 11:08:10 +01:00
Johannes Zellner
d9865f9b0f
Allow box to startup without fqdn
2017-01-05 14:02:04 +01:00
Johannes Zellner
55fad3d57e
Convert booleans for the correct object
2017-01-02 14:15:20 +01:00
Johannes Zellner
424c36ea49
Convert boolean settings values
...
The db table only stores strings
2017-01-02 13:47:51 +01:00
Johannes Zellner
b26cb4d339
Add dynamic dns settings key
2017-01-02 13:05:48 +01:00
Girish Ramakrishnan
f07e6b29a3
Check for manual DNS provider
2016-12-21 15:10:56 -08:00
Girish Ramakrishnan
ca8b61caba
Allow backup encryption key to be set
2016-12-19 12:41:35 -08:00
Girish Ramakrishnan
ec75b14d9e
Set timeout for dns queries
2016-12-15 12:00:51 -08:00
Johannes Zellner
eaebf9fd73
Fix typo when comparing dkim values
2016-12-15 16:57:29 +01:00
Johannes Zellner
66a4abeb50
Ensure txtRecords is a valid array
...
The dns api will respond with undefined if no records are found
Mostly related to https://github.com/tjfontaine/node-dns/issues/95
2016-12-15 16:57:29 +01:00