Girish Ramakrishnan
f3483e6a92
fix typo in mail.ini
2017-07-18 17:38:21 -07:00
Girish Ramakrishnan
631b830f4c
Add setting to toggle from address validation check
...
part of #366
2017-07-18 16:33:42 -07:00
Girish Ramakrishnan
63364ae017
Use settings.getAll in createMailConfig
2017-07-18 13:50:39 -07:00
Girish Ramakrishnan
8d9fbb9cea
Create mail config regardless of whether owner exists
2017-07-05 11:31:51 -05:00
Girish Ramakrishnan
1007a85fde
Use latest haraka and restart on relay change
2017-06-30 09:07:43 -05:00
Girish Ramakrishnan
1c40e51999
Only starttls is supported by haraka
...
In addition, auth_type has to be set to PLAIN (or LOGIN)
2017-06-30 09:07:43 -05:00
Girish Ramakrishnan
c07df68558
Fix typos
2017-06-30 09:07:37 -05:00
Girish Ramakrishnan
7edf43c627
Select tls based on port
...
Note that starttls is always supported
part of #188
2017-06-28 16:56:11 -05:00
Girish Ramakrishnan
01d0e56332
refactor code to have a relay provider
...
part of #188
2017-06-28 11:39:45 -05:00
Girish Ramakrishnan
c4d313a2c0
generate smtp_forward.ini
...
part of #188
2017-06-27 11:08:50 -05: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
cbb93ef7ad
For low end cloudrons, give a delay between addon starts
...
Starting them all at once, sometimes hogs cpu/memory too much
and makes the startup scripts of the addons error.
The new addons setup a .setup file to confirm initialization.
In a future commit, we can use those .setup files to check if
the addon has started up instead of a timeout
2017-05-10 15:43:02 -07:00
Girish Ramakrishnan
923e1d0524
Kill more event based logic
2017-04-25 16:36:38 -07:00
Girish Ramakrishnan
41edd3778d
Merge branch 'dns-fixes' into 'master'
...
Set DNS per container rather than the daemon
Closes #307
See merge request !6
2017-04-25 17:06:31 +00:00
Ian Fijolek
0ac69cc6c9
Add DNS args to platform containers
2017-04-25 15:21:23 +00:00
Girish Ramakrishnan
8ddb670445
simplify: start/stop taskmanager from platform logic
2017-04-24 15:48:23 -07:00
Girish Ramakrishnan
d891058f8c
Restore apps if the existingInfra version is not semver (as in, old infra)
2017-04-04 12:15:29 -07:00
Johannes Zellner
72dd7c74d5
Introduce major/minor infra versions
...
The strategy now is that major infra version changes make apps restore,
whereas minor infra version changes only reconfigure and thus restart
them
2017-04-04 12:34:55 +02:00
Johannes Zellner
649092ecb0
Fix typo PLATFORM_CONFIG_DIR -> PLATFORM_DATA_DIR
2017-04-04 12:34:55 +02:00
Johannes Zellner
602f8bcd04
Split platform and app data folders and get rid of btrfs volumes
2017-04-04 12:34:55 +02:00
Girish Ramakrishnan
b65fee4b73
Pass ENABLE_MDA flag to mail addon
2017-03-22 20:42:28 -07:00
Girish Ramakrishnan
1bd89ca055
Wait for platform ready after box restarts
...
This is required for the case where the box restarts apptasks.
For example, the server can reboot mid-way when apptask is running
(as in cloudron-setup + appBundle case) and then when it comes back
up it doesn't wait for the platform to be ready. And the apps fail
to install (mysql takes a bit to startup)
2017-03-15 20:35:44 -07:00
Girish Ramakrishnan
d6fec4f2b9
alertsTo must be an array
2017-02-28 18:17:17 -08:00
Girish Ramakrishnan
03924be491
self-hosted: do not cc support for bounce mails from apps
...
part of #242
2017-02-24 10:34:07 -08:00
Girish Ramakrishnan
68a8155f49
skip redis addon incremental update
...
Part of #223
2017-02-16 10:31:02 -08: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
2fac7dd736
delete old nginx configs on infra update
...
we changed the cert location and reloading nginx fails...
2017-01-28 09:10:49 -08:00
Girish Ramakrishnan
d84666fb43
Move mail data out of box
...
This will help us with putting a size on box data
Mail container version is bumped because we want to recreate it
Part of #186
2017-01-20 20:22:08 -08:00
Girish Ramakrishnan
f8374929ac
generate mail.ini and not mail_vars.ini
2017-01-18 09:11:34 -08:00
Girish Ramakrishnan
5f93290fc7
Fix crash
2017-01-18 08:43:11 -08:00
Girish Ramakrishnan
804947f039
use dir mount instead of file mount
...
file mounting is fraught with problems wrt change notifications.
first, we must be carefule that the inode does not change.
second, changes outside container do not result in fs events inside the container.
haraka cache settings files and relies on fs events. So, even
though the file gets updated inside the container, haraka doesn't
see it.
https://github.com/docker/docker/issues/15793
2017-01-17 23:59:23 -08:00
Girish Ramakrishnan
89fb2b57ff
recreate mail config when we have owner email id
2017-01-17 23:34:05 -08:00
Girish Ramakrishnan
1262d11cb3
Prefix event enum with EVENT_
2017-01-17 23:18:08 -08:00
Girish Ramakrishnan
ebf1dc1b08
listen for cert changed events and restart mail container
...
neither haraka nor dovecot restarts on cert change
Fixes #47
2017-01-17 10:59:00 -08:00
Girish Ramakrishnan
7dd52779dc
generate cert files for mail container
...
this allows us to not track paths anymore
part of #47
2017-01-17 10:21:44 -08:00
Girish Ramakrishnan
055e41ac90
Make unbound reply on cloudron network
...
Because of the docker upgrade, dnsbl queries are failing again
since we are not using the unbound server from the containers.
For some reason, docker cannot query 127.0.0.1 (https://github.com/docker/docker/issues/14627 ).
Make unbound listed on the cloudron network and let docker proxy
DNS calls to unbound (docker always use the embedded DNS server
when using UDN).
See also #130
2017-01-12 19:28:23 -08:00
Girish Ramakrishnan
7742c8a58e
Remove unused function
2017-01-12 11:50:59 -08:00
Girish Ramakrishnan
9e2f43c3b1
initialize platform only when domain is available
2017-01-09 10:28:25 -08:00
Girish Ramakrishnan
56c4908365
restart mail container on configure event
2017-01-07 23:33:20 -08:00
Girish Ramakrishnan
d0ea1a4cf4
Send bounce alerts to cloudron owner
...
Fixes #166
2017-01-07 23:24:12 -08:00
Girish Ramakrishnan
aa75824cc6
Pass alerts_from and alerts_to to mail container
...
Part of #166
2017-01-07 22:31:40 -08:00
Girish Ramakrishnan
61d5005c4b
Use mail_vars.ini to pass mail container config
2017-01-07 16:42:24 -08:00
Girish Ramakrishnan
af69ddc220
Email needs atleast 256m even on 1gb droplet
2016-12-29 18:33:59 -08:00
Girish Ramakrishnan
21b28d3dcc
Dynamically scale addon memory
...
Simple math for now: we bump up memory in slabs of 4gb
Fixes #79
2016-10-13 13:13:09 -07:00
Johannes Zellner
9872ac424f
Increase mail container memory
...
This is only a temporary fix for the next release, in case
we have not yet implemented a dynamic setting
2016-10-13 13:56:55 +02:00
Girish Ramakrishnan
a75cefa38f
Email now allows relay from 172.18.0.1 with no auth
2016-09-27 10:28:20 -07:00
Girish Ramakrishnan
00ee2eea39
Remove code to push aliases
...
The mail-addon will query via LDAP
2016-09-23 15:14:07 -07:00
Girish Ramakrishnan
563b2a3042
Do not add dmarc record unless mail is enabled
...
the dmarc records depends on the DKIM signing as well. if the
cloudron is not using the cloudron mail service, that means that
the mails are not dkim signed and thus mails get rejected.
2016-09-22 09:52:25 -07:00
Girish Ramakrishnan
ecc9d1bc02
rename subdomains.update to subdomains.upsert
2016-09-05 16:58:13 -07:00
Girish Ramakrishnan
f083d81b35
Fix typo
2016-09-04 11:38:36 -07:00