Hi, is it possible disable users password change in SoGO in mailcow? I tried edit sogo.conf file in /opt/mailcow-dockerized/data/conf/sogo/sogo.conf and add here SOGoPasswordChangeEnabled = NO but that dont works.

Thanks

  • diekuh

    • Community Hero
    • volunteer
    Moolevel 110

Hi,

Run docker-compose restart sogo-mailcow memcached-mailcow after changing that. Should work. 🙂

    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!

    diekuh

    Thanks, I tried but it didnt work. 🙁

    I see more sogo.conf files after I install mailcow.

    /var/lib/docker/overlay2/761bf9095310820acd01400e502287ffe874b0b8be79647162b74bf95ff1a561/diff/etc/sogo/sogo.conf
    /var/lib/docker/overlay2/761bf9095310820acd01400e502287ffe874b0b8be79647162b74bf95ff1a561/diff/var/lib/dpkg/info/sogo.conffiles
    /var/lib/docker/overlay2/644277a22dd63e8f0e202ca7d69e9345175fc2dffe12c9aba242e392edb999b8/merged/etc/sogo/sogo.conf
    /var/lib/docker/overlay2/644277a22dd63e8f0e202ca7d69e9345175fc2dffe12c9aba242e392edb999b8/merged/var/lib/dpkg/info/sogo.conffiles
    /opt/mailcow-dockerized/data/conf/sogo/sogo.conf

    I stoped mailcow
    docker-compose stop

    Add “no password change definitions” to file
    /opt/mailcow-dockerized/data/conf/sogo/sogo.conf

    Start mailcow
    docker-compose start
    Tried
    docker-compose restart memcached-mailcow sogo-mailcow

    But user still can change password..

    • diekuh

      • Community Hero
      • volunteer
      Moolevel 110

    Why would you look into the overlayfs? :/

    Just modify data/conf/sogo/sogo.conf. Do not run stop, run down.

    But you don’t need to run down at all. I just tried and can confirm it works fine. Check your installation, please. Or your config. Perhaps there’s a duplicate. It is not a bug.

      diekuh

      I was looking for sogo.conf file in the system. It is fresh install of CentOS 7 and mailcow. I dont edit any overlayfs.
      I edit only

      /opt/mailcow-dockerized/data/conf/sogo/sogo.conf

      and run docker-compose restart memcached-mailcow sogo-mailcow.
      `{
      SOGoCalendarDefaultRoles = (
      PublicViewer,
      ConfidentialDAndTViewer,
      PrivateDAndTViewer
      );

      SOGoPasswordChangeEnabled = NO;
      `

      Pass change still here.

      • diekuh

        • Community Hero
        • volunteer
        Moolevel 110
      • Edited

      You are doing something wrong, really.

      Perhaps it is in your cache. Or memcached is not fully flushed. I just tested it on two installations without a problem. I cannot help you then. :/

      Set it to “NO”, run down, up -d and clean your browser cache.

      In my tests it was not necessary to do that though.

      Perhaps, even worse, another instance of SOGo is running as container.

      It is always a fresh installation, it does not mean it is messed up. 🙂

        diekuh

        Thanks for help 🙂

        Perhaps, even worse, another instance of SOGo is running as container.

        What does it mean? I do only step follow this manual https://mailcow.github.io/mailcow-dockerized-docs/i_u_m_install/

        I dont know why is there more sogo.conf files 🙁

        /var/lib/docker/overlay2/761bf9095310820acd01400e502287ffe874b0b8be79647162b74bf95ff1a561/diff/etc/sogo/sogo.conf
        /var/lib/docker/overlay2/761bf9095310820acd01400e502287ffe874b0b8be79647162b74bf95ff1a561/diff/var/lib/dpkg/info/sogo.conffiles
        /var/lib/docker/overlay2/40cfa78ae8a1e6cd794be1cf87116d6e96172d4e6f8a824c8cd1fcc865500340/merged/etc/sogo/sogo.conf
        /var/lib/docker/overlay2/40cfa78ae8a1e6cd794be1cf87116d6e96172d4e6f8a824c8cd1fcc865500340/merged/var/lib/dpkg/info/sogo.conffiles
        /opt/mailcow-dockerized/data/conf/sogo/sogo.conf

        No one is typing