[Fixed] Critical bug core-8.4.0~273: Dagent not delivering mails if plugin-manager is enabled.

@fbartels
yes,

cd  core-8.4.0~301_64.1-RHEL_6_PHP_56-x86_64
yum update *.rpm
...
Untersuche python-kopano-8.4.0~301-64.1.x86_64.rpm: python-kopano-8.4.0~301-64.1.x86_64
python-kopano-8.4.0~301-64.1.x86_64.rpm: aktualisiert installierte Pakete nicht.
...

core kc-git-master 8.5.81.211
webapp git-master 3.4.5.106-gd01b9b0
z-push 2.4.0beta1+0
CentOS 6.9
nginx/1.11.10
PHP 7.1.14 (fpm-fcgi)
Python 2.6.6

@fbartels Hi Felix,

Even after disabling dagent plugin, mails are not delivering. This is on CentOS 7.3

Apr 18 23:45:55 kcn postfix/local[5299]: B980B60D72CF: to=, relay=local, delay=485, delays=485/0.03/0/0.06, dsn=4.3.0, status=deferred (temporary failure. Command output: [ 5300] [error  ]   Python type: (null) [ 5300] [error  ]   Python error: 'module' object has no attribute 'DAgentPluginmanager' [ 5300] [crit   ] K-1732: Unable to initialize the dagent plugin manager: Unknown error code (1). )![alt text](image url)


[root@kcn kopano]# grep -i ^plugin_enabled dagent.cfg 
plugin_enabled = no

[root@kcn kopano]# rpm -qa | egrep -i 'kopano-server|python-kopano'
kopano-server-8.4.0~344-71.1.x86_64
kopano-server-packages-8.4.0~344-71.1.x86_64
python-kopano-8.4.0~344-71.1.x86_64
[root@kcn kopano]#

Since I had a Centos 7 machine up to test something else, I decided to give this another try. But still no luck in reproducing this.

Kopano Core 8,4,0,344
CentOS Linux release 7.3.1611 (Core)

@fbartels

  • I followed the installation procedure from here
  • Its the exact same version of CentOS Linux release 7.3.1611 (Core)
  • postfix config are basic.

Hi @fbartels ,

I was using below settings in main.cf which was the issue. I commented it out

mail_command = /usr/sbin/kopano-dagent "$USER" 

Instead I started using below and it worked.

mailbox_transport = lmtp:127.0.0.1:2003

Ok, thanks to your additional information I was finally able to reproduce this issue and it seems to indeed only happen, when delivering via pipe. I have created https://jira.kopano.io/browse/KC-642 to followup on this issue.

@fbartels
Great, you discovered that!
Just changed my postfix-config from PIPE to LMTP transport and can confirm your findings for Centos 6.9/ Python 2.7:
No dagent-plugin problem with LMTP transport - the issue seems to concern piped connections, only.
++umgfoin.

core kc-git-master 8.5.81.211
webapp git-master 3.4.5.106-gd01b9b0
z-push 2.4.0beta1+0
CentOS 6.9
nginx/1.11.10
PHP 7.1.14 (fpm-fcgi)
Python 2.6.6

…fixed with commit c699e000835 .

Thanks,
++umgfoin.

core kc-git-master 8.5.81.211
webapp git-master 3.4.5.106-gd01b9b0
z-push 2.4.0beta1+0
CentOS 6.9
nginx/1.11.10
PHP 7.1.14 (fpm-fcgi)
Python 2.6.6

Looks like your connection to Kopano Community Forum was lost, please wait while we try to reconnect.