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

    Dagent don't deliver mails

    Kopano Groupware Core
    3
    8
    2616
    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.
    • tommi
      tommi last edited by

      Hi,

      i try a few days to get Dagent working.

      mailbox_transport = lmtp:127.0.0.1:2003
      
      smtpd_helo_required = yes
      
      smtpd_helo_restrictions =
      	permit_sasl_authenticated,
      	permit_mynetworks,
      	reject_non_fqdn_hostname,
      	reject_invalid_hostname,
      	reject_unauth_destination,
      	reject_non_fqdn_sender,
      	reject_non_fqdn_recipient,
      	reject_unknown_recipient_domain,
      	reject_rbl_client zen.spamhaus.org,
      	reject_unauth_pipelining,
      	permit
      
      
      

      After incrasing the loglevel i found

      Apr 23 16:32:24 server postfix/qmgr[25109]: 76E94B6245C: from=<xxx@xx.xxx>, size=3193, nrcpt=1 (queue active)
      Apr 23 16:32:24 server kopano-dagent[20978]: Accepted connection from [::ffff:127.0.0.1]:56228
      Apr 23 16:32:24 server kopano-dagent[25152]: Starting worker for LMTP request pid 25152
      Apr 23 16:32:24 server kopano-dagent[25152]: < 220 2.1.5 LMTP server is ready
      Apr 23 16:32:24 server kopano-dagent[25152]: > EHLO xx.xxx
      Apr 23 16:32:24 server kopano-dagent[25152]: < 555 5.5.4 Command not recognized
      Apr 23 16:32:24 server kopano-dagent[25152]: > HELO xx.xxx
      Apr 23 16:32:24 server kopano-dagent[25152]: < 555 5.5.4 Command not recognized
      Apr 23 16:32:24 server postfix/smtp[25151]: 76E94B6245C: to=<xxx@xx.xxx>, relay=127.0.0.1[127.0.0.1]:2003, delay=648, delays=648/0.02/0.03/0, dsn=5.5.4, status=bounced (host 127.0.0.1[127.0.0.1] refused to talk to me: 555 5.5.4 Command not recognized)
      Apr 23 16:32:24 server kopano-dagent[25152]: > QUIT
      Apr 23 16:32:24 server kopano-dagent[25152]: < 221 2.0.0 Bye
      Apr 23 16:32:24 server kopano-dagent[25152]: LMTP thread exiting
      Apr 23 16:32:24 server postfix/cleanup[25155]: 558EEB6245B: message-id=<20170423143224.558EEB6245B@xx.xxx>
      Apr 23 16:32:24 server postfix/bounce[25154]: 76E94B6245C: sender non-delivery notification: 558EEB6245B
      

      I know that lmtp needs LHLO and not EHLO is there a paramenter to change that.

      1 Reply Last reply Reply Quote 0
      • fbartels
        fbartels Kopano last edited by

        Crosspost: https://forums.zarafa.com/showthread.php?13544-dagent-tls-problems

        I must say that I have never seen a case, where Postfix tried to speak smtp to a lmtp service. I would advice to remove non-standard postfix options one by one until you find the offending one.

        Regards Felix

        Resources:
        https://kopano.com/blog/how-to-get-kopano/
        https://documentation.kopano.io/
        https://kb.kopano.io/

        Support overview:
        https://kopano.com/support/

        1 Reply Last reply Reply Quote 0
        • ahilles
          ahilles last edited by fbartels

          Hi!
          Yesterday i was install a fresh version 8.4.0.825 of K.C. and i have the same issue:

          main.cf

          queue_directory = /var/spool/postfix
          unknown_local_recipient_reject_code = 550
          smtpd_banner = $myhostname ESMTP $mail_name
          biff = no
          append_dot_mydomain = no
          readme_directory = no
          compatibility_level = 2
          smtpd_tls_cert_file=/etc/ssl/A4D2AFCCA07D1D5D4E065D506459B891.pem
          smtpd_tls_key_file=/etc/ssl/private/A4D2AFCCA07D1D5D4E065D506459B891.key.pem
          smtpd_use_tls=yes
          smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
          smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
          smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
          myhostname = FQDN
          alias_maps = hash:/etc/aliases
          alias_database = hash:/etc/aliases
          myorigin = /etc/mailname
          mydestination = $myhostname, domain.name, FQDN, localhost.domain.name, localhost
          relayhost = 
          mynetworks = [fc00:10:101::]/64 10.101.0.0/24 [::ffff:127.0.0.0]/104 [::1]/128 127.0.0.0/8
          mailbox_size_limit = 0
          recipient_delimiter = +
          inet_interfaces = all
          inet_protocols = all
          mail_spool_directory = /var/mail
          mailbox_transport = lmtp:127.0.0.1:2003
          #virtual_mailbox_domains = domain.name
          virtual_mailbox_maps = ldap:/etc/postfix/ldap/domain.name-ldap-users.cf
          virtual_alias_maps = ldap:/etc/postfix/ldap/domain.name-ldap-aliases.cf, ldap:/etc/postfix/ldap/domain.name-ldap-groups.cf, ldap:/etc/postfix/ldap/domain.name-ldap-groups-expand.cf
          

          dagent.cfg

          server_socket = file:///var/run/kopano/server.sock
          log_method	=	file
          log_level	=	6
          log_file = /var/log/kopano/dagent.log
          log_timestamp	=	1
          log_raw_message = all
          log_raw_message_path = /tmp
          tmp_path = /tmp
          server_bind = 127.0.0.1
          lmtp_port = 2003
          lmtp_max_threads = 20
          pid_file = /var/run/kopano/dagent.pid
          coredump_enabled = no
          spam_header_name = X-Spam-Status
          spam_header_value = Yes,
          archive_on_delivery = no
          plugin_enabled = yes
          plugin_manager_path = /usr/share/kopano-dagent/python
          plugin_path = /var/lib/kopano/dagent/plugins
          set_rule_headers = yes
          no_double_forward = no
          default_charset = us-ascii
          forward_whitelist_domains = *
          

          dagent.log

          Thu Jun 22 16:16:36 2017: [info   ] [ 8926] Accepted connection from 127.0.0.1:58974
          Thu Jun 22 16:16:36 2017: [info   ] [ 9853] Starting worker for LMTP request pid 9853
          Thu Jun 22 16:16:36 2017: [debug  ] [ 9853] < 220 2.1.5 LMTP server is ready
          Thu Jun 22 16:16:36 2017: [debug  ] [ 9853] > EHLO FQDN
          Thu Jun 22 16:16:36 2017: [debug  ] [ 9853] < 555 5.5.4 Command not recognized
          Thu Jun 22 16:16:36 2017: [debug  ] [ 9853] > HELO FQDN
          Thu Jun 22 16:16:36 2017: [debug  ] [ 9853] < 555 5.5.4 Command not recognized
          Thu Jun 22 16:16:36 2017: [debug  ] [ 9853] > QUIT
          Thu Jun 22 16:16:36 2017: [debug  ] [ 9853] < 221 2.0.0 Bye
          Thu Jun 22 16:16:36 2017: [info   ] [ 9853] LMTP thread exiting
          
          1 Reply Last reply Reply Quote 0
          • fbartels
            fbartels Kopano last edited by

            the one thing that strikes me as add (and indeed was already the case for @tommi ) is the mailbox_transport = lmtp..., since you define virtual_* you should also configure a virtual_transport.

            Regards Felix

            Resources:
            https://kopano.com/blog/how-to-get-kopano/
            https://documentation.kopano.io/
            https://kb.kopano.io/

            Support overview:
            https://kopano.com/support/

            ahilles 2 Replies Last reply Reply Quote 0
            • ahilles
              ahilles last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • ahilles
                ahilles @fbartels last edited by ahilles

                @fbartels

                OK.
                What i was change:
                Remove domain.name from mydestination, now, it look like
                mydestination = $myhostname, FQDN, localhost.domain.name, localhost

                Uncomment the virtual_mailbox_domains line

                rename mailbox_transport to virtual_transport, now it look like
                virtual_transport = lmtp:127.0.0.1:2003

                TEST!!! and see…

                Thu Jun 22 17:19:17 2017: [info ] [ 8926] Accepted connection from 127.0.0.1:59840
                Thu Jun 22 17:19:17 2017: [info ] [10498] Starting worker for LMTP request pid 10498
                Thu Jun 22 17:19:17 2017: [debug ] [10498] < 220 2.1.5 LMTP server is ready
                Thu Jun 22 17:19:17 2017: [debug ] [10498] > EHLO FQDN
                Thu Jun 22 17:19:17 2017: [debug ] [10498] < 555 5.5.4 Command not recognized
                Thu Jun 22 17:19:17 2017: [debug ] [10498] > HELO FQDN
                Thu Jun 22 17:19:17 2017: [debug ] [10498] < 555 5.5.4 Command not recognized
                Thu Jun 22 17:19:18 2017: [debug ] [10498] > QUIT
                Thu Jun 22 17:19:18 2017: [debug ] [10498] < 221 2.0.0 Bye

                1 Reply Last reply Reply Quote 0
                • ahilles
                  ahilles @fbartels last edited by

                  @fbartels

                  I successfully solve this issue. The problem was in the my default master.cf in this line:
                  lmtp unix - - - - - smtp
                  I fix it on
                  lmtp unix - - - - - lmtp

                  And messages go on ! )))))

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

                    Hi,

                    I don’t know why, but now it runs with:

                    mailbox_transport=lmtp:127.0.0.1:2003
                    

                    Maybe an update in Dagent?

                    Tommi

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