Hello there,
New to mailcow, I chose it for its countless config options, and the spirit of the community here in the forum.
And I like the mooh-things around šŸ™‚

I have a few questions about options in the mailcow.conf config file :

1) I donā€™t need the groupware features, so I put :
SKIP_SOGO=y
.. but is there anything else I have to do to disable SoGo ?

2) In the ā€œOther bindingsā€ options, I have IMAP and IMAPS ports :

IMAP_PORT=143
IMAPS_PORT=993

Is that a good practice to disable IMAP port (143) just to strenghten the security of the server ?
Are there drawbacks if I disable it ?

3) Regarding POP :

POP_PORT=110
POPS_PORT=995

If I donā€™t want POP to be activated, can I just comment these two lines ?
Or there is a better way to completely disable it ?

Thanks,

ā€“
Leo.

  • D4niel and esackbauer replied to this.
  • Best practice would be to disable POP3 like this: https://community.mailcow.email/d/4741-bulk-change-of-mailboxes/2
    You could comment out ports that you donā€™t want to publish in the docker-compose file, but I wouldnā€™t do that in the config file since the config file probably always expects some value.

    gorby Is that a good practice to disable IMAP port (143) just to strenghten the security of the server ?

    Good practice would be to correctly configure your mail clients to use the correct protocols. Port 143 also supports StartTLS, so it isnā€™t unencrypted per se.

    • DD4niel

      • Community Hero
      Moolevel 45
    • Best Answerset by gorby

    Best practice would be to disable POP3 like this: mailcow community Icon bulk change of mailboxes


    You could comment out ports that you donā€™t want to publish in the docker-compose file, but I wouldnā€™t do that in the config file since the config file probably always expects some value.

    gorby Is that a good practice to disable IMAP port (143) just to strenghten the security of the server ?

    Good practice would be to correctly configure your mail clients to use the correct protocols. Port 143 also supports StartTLS, so it isnā€™t unencrypted per se.

    Have something to say?

    Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

    gorby . but is there anything else I have to do to disable SoGo ?

    No. But with disabling SOGo you lose also ActiveSync protocol (in case you wanted to use it)

    Thanks @esackbauer for your feedback.
    Correct me if Iā€™m wrong but ActiveSync is only useful for having push notiications on your ios smartphone ?

    ā€“
    LĆ©o.

    [unknown] Understood, thank you for the clarifications !

      gorby but ActiveSync is only useful for having push notiications on your ios smartphone

      Yes.

      gorby ActiveSync is only useful for having push notiications on your ios smartphone

      ActiveSync also connects your mailboxā€™ calendar and contacts automatically without further ado

        DocFraggle

        That is done by the config profile for iOS as well šŸ˜‰
        However ActiveSync has the advantage that shared calenders or additional calenders show up on iOS without additional config on the phone itself.
        WIth CalDAV you have to link the additional calenders yourself on the phone.

          esackbauer That is done by the config profile for iOS as well

          Ah okay, Iā€™m not an Apple user ā˜ŗļø

          Thank you everyone for the feedback.
          Iā€™m still testing the solution, and Iā€™m still hesitating between SoGo and Roundcube.
          In one hand I only use email (not caldav etc..) and Iā€™m used to Roundcube look & feel and its plugins, and on the other hand SoGo seems to have some nice features for email.

          I know some of you would answer me that if I only need email, maybe mailcow is not the good project for that, but I disagree : Just because I only need a fraction of the software doesnā€™t mean I should turn to solutions that seem better suited to my needs, but rather less aligned with the community spirit and the connection I feel to the project.

            gorby I have disabled Sogo as well, as I donā€™t need the groupware functionally, because I have separte Nextcloud instance for that. Also I donā€™t really like the UI of Sogo, but thatā€™s of course highly subjective. šŸ˜‰

            Regarding POP3, you can enable/disable it per mailbox in the UI and you can also set the encryption policy.

            Also, by setting (or not setting) certain SRV records, you can announce to the clients which ports they should prefer. You can also play with the priority and weight of certain records, or even explicitly tell clients not to use certain ports: docs.mailcow.email Icon DNS setup - mailcow: dockerized documentation

            If I understand correctly, this wonā€™t help if someone explicitly tries to connect to a less secure port (e.g. 587 instead of 465), or if a client only supports STARTTLS, or simply does not respect the RFC, but it should at least reduce the risk of your users connecting to less secure ports unintentionally, while still being able to connect to those ports if necessary for certain edge cases.

            If you donā€™t need those ports for anything, and want to be 100% sure that nobody can connect to them, donā€™t open them or block them with a firewall. Ideally, use a firewall in front of your server rather than on the Mailcow server itself (I use my VPS providerā€™s) - unless you know what youā€™re doing, as there are some potential pitfalls with the usual iptables/nftables front-ends like UFW, FirewallD and how they interact with Docker.

            No one is typing