mjl- / mox

modern full-featured open source secure mail server for low-maintenance self-hosted email
https://www.xmox.nl
MIT License
3.71k stars 113 forks source link

Add a fly.op deployment yaml #14

Closed gedw99 closed 1 year ago

gedw99 commented 1 year ago

It will help to make it easy to deploy .

gere is a blog article showing the god and bad of fly.io.

It would cost nothing for users m.

mit might also make it easy to do HA..

https://benhoyt.com/writings/flyio/

mjl- commented 1 year ago

Thanks, this was a good reason for me to finally try out fly.io, I tried setting up mox on fly.io just now. I haven't succeeded.

What I did:

Despite the config file issue, I don't think running on fly.io is going to work. At least not for sending email. Receiving email probably will work. For outgoing email, mox would have to send it through an external email submission service. Mox cannot do that yet, and it's not great to begin with. The reasons it won't work:

And it could very well be that fly.io blocks outgoing SMTP connections as a spam prevention measure. But I didn't get to that.

For reference, I used this fly.toml:

app = "mox"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []

[build]
  image = "docker.io/moxmail/mox:v0.0.2-0.20230303234902-15e262b0431d-go1.20.1-alpine3.17.2"

[env]

[mounts]
  destination = "/mox"
  source = "mox"

[[services]]
  http_checks = []
  internal_port = 8080
  protocol = "tcp"
  script_checks = []

Perhaps the info I found is outdated, or you would like to give it a try?

gedw99 commented 1 year ago

Hey @mjl-

thanks for going through the attempt .

i jumped the gun and should have realised their anycast setup would make it hard.

gedw99 commented 1 year ago

I can definitely give it a try.

Am running a few thing there and can get over sone of the road blocks .

From an email point of view what ports etc do you need ? You know that way better than me.

also is your fly and docker file in he repo so I can work it up from there ?

gedw99 commented 1 year ago

Also do you have a list of known to work clouds ? Would be good to compare the setups

gedw99 commented 1 year ago

https://community.fly.io/t/allow-mailserver-ports/3215/4 Indicates they are not opposed to it

matbe reach out to Kurt to see latest . I know me is pretty responsive to open source needs

mjl- commented 1 year ago

I don't think this can happen anytime soon due to fly limitations. So closing it now. If the situation at fly.io changes, we can reopen.