Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    LMTP with unix socket (core 8.7.8, Debian 9.6)

    Kopano Groupware Core
    8
    15
    1513
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Caldwell
      Caldwell last edited by

      For my part, I ran the commands as listed in the documentation on Ubuntu 18.x, and the socket file NEVER gets created. I had to revert to *:2003 config style.

      Whether using “run_as” kopano or root, the socket file never gets created.

      Any details on how to make that happen?

      1 Reply Last reply Reply Quote 0
      • thctlo
        thctlo last edited by thctlo

        Why not…

        dpkg-statoverride --add kopano postfix 770 /var/spool/kopano
        and you on Debian with systemd.

        see: systemctl cat kopano-dagent

        fix it with : systemctl edit kopano-dagent

        add:

        [Unit]
        # optional, but helps is the start up process. 
        After=kopano-server.service
        Wants=kopano-server.service
        
        [Service]
        LimitNOFILE=8192:16384
        User=kopano
        Group=kopano
        

        and try again

        1 Reply Last reply Reply Quote 0
        • BMWfan
          BMWfan last edited by BMWfan

          I have the same problem as mapo.

          Dec 30 20:32:07 servername postfix/error[11706]: DB1844C1F50: to=<max@mustermann.de>, relay=none, delay=0.01, delays=0.01/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to servername.server.de[/var/spool/kopano/dagent.sock]: No such file or directory)
          

          The problem is not fixed after the suggested doings from thctlo.

          1 Reply Last reply Reply Quote 0
          • jengelh
            jengelh Banned last edited by

            Ubuntu may be using AppArmor.

            BMWfan 1 Reply Last reply Reply Quote 0
            • BMWfan
              BMWfan @jengelh last edited by

              @jengelh and what do you want to tell me with this information?
              I’am using Debian 9 as mapo.

              1 Reply Last reply Reply Quote 0
              • jengelh
                jengelh Banned last edited by

                Well, that the LSM may interfere? Investigation needs shells, since no one has crystal balls (and won’t for the—ha—foreseeable future!)

                1 Reply Last reply Reply Quote 0
                • pks57
                  pks57 last edited by

                  Hi,

                  similar problem on ubuntu 18.04

                  The postfix/lmtp process runs chrooted in /var/spool/postfix and can therefore not access the socket in /var/spool/kopano.

                  my solution:
                  create the kopano spooldir in /var/spool/postfix instead of /var/spool (same chown, chmod and setfacl as in original instructions apply)

                  in dagent.conf:

                  lmtp_listen = unix:/var/spool/postfix/kopano/dagent.sock
                  

                  In postfix/main.cf:

                  virtual_transport = lmtp:unix:/kopano/dagent.sock
                  

                  worked for me…

                  jengelh 1 Reply Last reply Reply Quote 0
                  • jengelh
                    jengelh Banned @pks57 last edited by

                    similar problem on ubuntu 18.04
                    The postfix/lmtp process runs chrooted in /var/spool/postfix and can therefore not access the socket in /var/spool/kopano.

                    Yep. Just as I postulated on 2018-11-30:

                    The other idea is that, because postfix reports “No such file or directory”, that it might be running in some kind of mount namespace.

                    1 Reply Last reply Reply Quote 0
                    • crankshaft
                      crankshaft last edited by crankshaft

                      @pks57 said in LMTP with unix socket (core 8.7.8, Debian 9.6):

                      /var/spool/postfix/kopano/dagent.sock

                      I have the same problem with a fresh install on Ubuntu 18.

                      connect to kopano[/var/spool/kopano/dagent.sock]: No such file or directory
                      

                      So as suggested, I created: /var/spool/postfix/kopano/

                      And set permissions and facl, and updated main.cf and dagent.cfg etc etc and rebooted.

                      The dagent.sock file is never created and postfix now errors with:

                      connect to kopano[/var/spool/postfix/kopano/dagent.sock]: No such file or directory
                      

                      Any suggestions ??

                      jengelh 1 Reply Last reply Reply Quote 0
                      • jengelh
                        jengelh Banned @crankshaft last edited by

                        Look at the dagent log and see what it says about dagent.sock.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post