Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Self-hosted Mailcow, relaying through MXRoute - Page 2
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Self-hosted Mailcow, relaying through MXRoute

2

Comments

  • armandorgarmandorg Member, Host Rep

    This is indeed very a very helpful tutorial!

  • This is cool, I can see why this is useful. Being able to have more control over your data and having that responsibility. Might be worth getting a cheap BuyVM or Hetzner box and mess about with this.

  • @MrLime said:
    This is cool, I can see why this is useful. Being able to have more control over your data and having that responsibility. Might be worth getting a cheap BuyVM or Hetzner box and mess about with this.

    Minimum ram is kinda high if you're using the whole suite

    Thanked by 1MrLime
  • BochiBochi Member

    @caracal said:

    @MrLime said:
    This is cool, I can see why this is useful. Being able to have more control over your data and having that responsibility. Might be worth getting a cheap BuyVM or Hetzner box and mess about with this.

    Minimum ram is kinda high if you're using the whole suite

    That is pretty much what keeps me from switching to mailcow: there is no (easy) way of disabling unused services from the stack... :/

  • @tjn said:
    Thanks for the tutorial @Daniel15 - very helpful!

    What does your inbound spam filter look like? :smile:
    I've found that the hardest to manage.

    It works pretty well for me. I'm using the standard rspamd config, plus @jar's MXRBL, and just tweaked the scores of a few rules.

    I have a catchall account and use a separate email address per site (e.g. [email protected]), so when a site is compromised and the data is leaked, I can just block all incoming emails to that particular address :smile: In particular, the address I used to use on LinkedIn gets a LOT of spam.

    @Bochi said:

    @caracal said:

    @MrLime said:
    This is cool, I can see why this is useful. Being able to have more control over your data and having that responsibility. Might be worth getting a cheap BuyVM or Hetzner box and mess about with this.

    Minimum ram is kinda high if you're using the whole suite

    That is pretty much what keeps me from switching to mailcow: there is no (easy) way of disabling unused services from the stack... :/

    You can disable ClamAV and Solr, as those two components take the most RAM. The options are documented here: https://mailcow.github.io/mailcow-dockerized-docs/prerequisite/prerequisite-system/. You'll lose virus scanning and fast search though.

    I'm running a secondary server on a system with 4GB RAM, but I disabled ClamAV, Solr, and SOGo.

    VPSes with 8GB RAM are quite cheap these days though. There's nothing in particular about Mailcow itself that takes RAM, it's just the full-featuredness of the suite. Manual configuration of all the same components would use a comparable amount of RAM.

    Thanked by 1tjn
  • pbxpbx Member

    @Daniel15 said: ZoneMTA

    Thanks, I'll check that out.

  • BochiBochi Member

    @Daniel15 said: You can disable ClamAV and Solr, as those two components take the most RAM. The options are documented here: https://mailcow.github.io/mailcow-dockerized-docs/prerequisite/prerequisite-system/. You'll lose virus scanning and fast search though.

    Thanks for pointing that out. :)
    Checked that already, but this are unfortunately the more relevant parts...I would be more happy to leave out the SOGo part. :P
    I get that there are other, more "minimal" solutions out there, but somehow put an eye years ago on mailcow and can't let the idea go.

  • Daniel15Daniel15 Veteran

    @Bochi said: .I would be more happy to leave out the SOGo part. :P

    The tricky thing is the SOGo provides the ActiveSync server (which is needed at least by the default Android email client to get real-time push) and the CalDAV server (for viewing calendar in your email app). If you use an email client that supports IMAP IDLE (like FairEmail) and don't need the calendar, it should be OK to disable SOGo? I've never tested it on a live server though.

  • @Daniel15 thanks for the tutorial!
    btw can you tell when will the Indian location be available again on dnstools.ws?
    thanks <3

  • Daniel15Daniel15 Veteran
    edited May 2022

    @jokesonyou said: btw can you tell when will the Indian location be available again on dnstools.ws?

    I was using a WebHorizon NAT VPS for it, but they discontinued their Indian location. Looking at moving it to MrVM if they have stock available, I'm just waiting to hear back from @mikho :)

  • @Daniel15 said:

    @jokesonyou said: btw can you tell when will the Indian location be available again on dnstools.ws?

    I was using a WebHorizon NAT VPS for it, but they discontinued their Indian location. Looking at moving it to MrVM if they have stock available, I'm just waiting to hear back from @mikho :)

    Why india?

  • caracalcaracal Member

    @ascicode said:

    @Daniel15 said:

    @jokesonyou said: btw can you tell when will the Indian location be available again on dnstools.ws?

    I was using a WebHorizon NAT VPS for it, but they discontinued their Indian location. Looking at moving it to MrVM if they have stock available, I'm just waiting to hear back from @mikho :)

    Why india?

    Yeah, you’d probably find it quite hard to have a non Indian VPS run a ping test from India

  • dosaidosai Member

    @Daniel15 said:

    @jokesonyou said: btw can you tell when will the Indian location be available again on dnstools.ws?

    I was using a WebHorizon NAT VPS for it, but they discontinued their Indian location. Looking at moving it to MrVM if they have stock available, I'm just waiting to hear back from @mikho :)

    https://clients.mrvm.net/cart.php?a=add&pid=110 is available to order

  • elliotcelliotc Member

    just checked mailcow...it takes a low ram :o

  • @awooooool said:
    In DirectAdmin, I just create another account for relaying without setting up catchall. Works fine.

    Also in the DirectAdmin, you could turn off the DKIM so only Mailcow's DKIM will be used.

    I have been running my own mailcow instance for a while now. Generally doing well except I can't find a host to run it on that has good rep with hotmail/microsoft. So I just signed up for the mxroute service so I can relay my mailcow stuff through it and have a better chance at being delivered. However I have a few questions. My mxroute instance is on DirectAdmin, not the cpanel like the op has. @awooooool, you say you just create another account for relaying. Do you mean just any general email that is not used in mailcow? For instance like [email protected] and [email protected] would work? Any help is appreciated.

  • NeoonNeoon Community Contributor, Veteran

    Mailcow eats memory like chrome.
    I suggest https://docker-mailserver.github.io/docker-mailserver/latest/

    Testing it since a few days, no database, just files, low memory usage.

    Thanked by 2loay iqbal
  • jarjar Patron Provider, Top Host, Veteran
    edited November 2023

    @kameleon said:

    @awooooool said:
    In DirectAdmin, I just create another account for relaying without setting up catchall. Works fine.

    Also in the DirectAdmin, you could turn off the DKIM so only Mailcow's DKIM will be used.

    I have been running my own mailcow instance for a while now. Generally doing well except I can't find a host to run it on that has good rep with hotmail/microsoft. So I just signed up for the mxroute service so I can relay my mailcow stuff through it and have a better chance at being delivered. However I have a few questions. My mxroute instance is on DirectAdmin, not the cpanel like the op has. @awooooool, you say you just create another account for relaying. Do you mean just any general email that is not used in mailcow? For instance like [email protected] and [email protected] would work? Any help is appreciated.

    Yeah, do that and then disable inbound mail for the domain in DirectAdmin. (Because you'll hit this: https://mxroutedocs.com/troubleshooting/nosuchrecipient/)

    Thanked by 2Daniel15 kameleon
  • Daniel15Daniel15 Veteran
    edited November 2023

    @Neoon said:
    Mailcow eats memory like chrome.
    I suggest https://docker-mailserver.github.io/docker-mailserver/latest/

    Testing it since a few days, no database, just files, low memory usage.

    Mailcow eats memory because it includes a full groupware suite (SOgo), virus scanning, etc. If you set up the same systems manually, you'd also see similar RAM usage. You can disable some of that functionality if you want to by modifying the mailcow.conf file, but note that disabling SOgo also disables ActiveSync. Mailcow's web UI is also very good.

  • NeoonNeoon Community Contributor, Veteran

    @Daniel15 said:

    @Neoon said:
    Mailcow eats memory like chrome.
    I suggest https://docker-mailserver.github.io/docker-mailserver/latest/

    Testing it since a few days, no database, just files, low memory usage.

    Mailcow eats memory because it includes a full groupware suite (SOgo), virus scanning, etc. If you set up the same systems manually, you'd also see similar RAM usage. You can disable some of that functionality if you want to. Mailcow's web UI is also very good.

    Mailcow asked me if it should disable them, I said yes.
    Despite that, It needed 2GB of Memory.

    So yea, the Dockerized mailserver uses 300MB.

  • @Neoon said: Despite that, It needed 2GB of Memory.

    Which parts are using the memory? Did you check it e.g. with htop or docker stats?

  • NeoonNeoon Community Contributor, Veteran

    @Daniel15 said:

    @Neoon said: Despite that, It needed 2GB of Memory.

    Which parts are using the memory? Did you check it e.g. with htop or docker stats?

    I didn't really checked what specific process that was.
    All I know, is that the tiny Netcup was swapping hard and nearly maxing out the 1GB swap file despite having all of that disabled.

    I double checked the config, would have to reinstall it for that.

  • Has anyone ever tested Wildduck?

  • @Neoon said:
    Mailcow eats memory like chrome.
    I suggest https://docker-mailserver.github.io/docker-mailserver/latest/

    Testing it since a few days, no database, just files, low memory usage.

    I was going to use docker-mailserver but wanted the full activesync functionality and spam filtering that mailcow offers. My host has plenty of ram so no issues here so far.

  • kameleonkameleon Member
    edited November 2023

    @jar said:

    @kameleon said:

    @awooooool said:
    In DirectAdmin, I just create another account for relaying without setting up catchall. Works fine.

    Also in the DirectAdmin, you could turn off the DKIM so only Mailcow's DKIM will be used.

    I have been running my own mailcow instance for a while now. Generally doing well except I can't find a host to run it on that has good rep with hotmail/microsoft. So I just signed up for the mxroute service so I can relay my mailcow stuff through it and have a better chance at being delivered. However I have a few questions. My mxroute instance is on DirectAdmin, not the cpanel like the op has. @awooooool, you say you just create another account for relaying. Do you mean just any general email that is not used in mailcow? For instance like [email protected] and [email protected] would work? Any help is appreciated.

    Yeah, do that and then disable inbound mail for the domain in DirectAdmin. (Because you'll hit this: https://mxroutedocs.com/troubleshooting/nosuchrecipient/)

    So do an email forwarder, not catchall?

    And to disable inbound in DA you do it under "Modify MX records and uncheck the "Use this server to handle my e-mails. If not, change the MX records and uncheck this option." correct?

  • Reading this makes me wish to self host email again lol. A while ago I switched to MXRoute because I was worried about downtime etc more than anything else. Aren't you worried about this?

  • BTW has anyone tried https://mailu.io/2.0/?

  • jarjar Patron Provider, Top Host, Veteran

    @kameleon said:

    @jar said:

    @kameleon said:

    @awooooool said:
    In DirectAdmin, I just create another account for relaying without setting up catchall. Works fine.

    Also in the DirectAdmin, you could turn off the DKIM so only Mailcow's DKIM will be used.

    I have been running my own mailcow instance for a while now. Generally doing well except I can't find a host to run it on that has good rep with hotmail/microsoft. So I just signed up for the mxroute service so I can relay my mailcow stuff through it and have a better chance at being delivered. However I have a few questions. My mxroute instance is on DirectAdmin, not the cpanel like the op has. @awooooool, you say you just create another account for relaying. Do you mean just any general email that is not used in mailcow? For instance like [email protected] and [email protected] would work? Any help is appreciated.

    Yeah, do that and then disable inbound mail for the domain in DirectAdmin. (Because you'll hit this: https://mxroutedocs.com/troubleshooting/nosuchrecipient/)

    So do an email forwarder, not catchall?

    And to disable inbound in DA you do it under "Modify MX records and uncheck the "Use this server to handle my e-mails. If not, change the MX records and uncheck this option." correct?

    Yeah just disabling inbound like that should do, actually.

  • Daniel15Daniel15 Veteran
    edited November 2023

    @vitobotta said: Aren't you worried about this?

    I have daily backups that I can restore pretty easily on a new server, plus I have a secondary server that can temporarily hold emails if the main server goes down (Mailcow has a guide for this). I'm considering having a hot standby too.

    A good thing about Docker is that backups are easy because the files aren't spread all over the system. Just backup the entire Mailcow directory (which has the docker-compose and the config files), plus all the Docker volumes (in /var/lib/docker/volumes on Debian)

    @kameleon said: My host has plenty of ram so no issues here so far.

    Same - I'm running mine on a GreenCloudVPS VPS with 16GB RAM.

  • @vitobotta said:
    Reading this makes me wish to self host email again lol. A while ago I switched to MXRoute because I was worried about downtime etc more than anything else. Aren't you worried about this?

    Not really, just monitor your services. E-mail will retry for up to 8 hours typically. So as long as your server is back online in 8 hours you should be fine. I do mine in docker and have DNS on a very short TTL so if I have to swap servers it is a few minutes, not hours.

  • @kameleon said: My host has plenty of ram so no issues here so far.

    Same - I'm running mine on a GreenCloudVPS VPS with 16GB RAM.

    you need this much ram for a mail server?

Sign In or Register to comment.