12MB mail stuck in Outlook

Hi,
we are usign kopano 8.1 with univention/ucs4.1.3 -all patches applied.

When trying to send 12MB Excel sheet via KOE 1.1.44 and z-push 2.3.4 I get following messages an mail is stuck in „Postausgang”.

/var/log/z-push/z-push-error.log

16/02/2017 13:46:06 [ 5804] [FATAL] [BENUTZER] Fatal error: /usr/share/z-push/backend/kopano/kopano.php:466 - Allowed memory size of 134217728 bytes exhausted (tried to allocate 77 bytes) (1)
16/02/2017 13:46:06 [ 5804] [FATAL] [BENUTZER] Fatal error: /usr/share/z-push/backend/kopano/kopano.php:466 - Allowed memory size of 134217728 bytes exhausted (tried to allocate 77 bytes) (1)
16/02/2017 13:46:07 [ 6574] [ERROR] [BENUTZER] LoopDetection->ProcessLoopDetectionPreviousConnectionFailed(): Command 'SendMail' at 16/02/2017 13:02:13 with pid '6573' terminated unexpectedly or is still running.
16/02/2017 13:46:07 [ 6574] [ERROR] [BENUTZER] LoopDetection->ProcessLoopDetectionPreviousConnectionFailed(): Command 'SendMail' at 16/02/2017 13:02:13 with pid '6573' terminated unexpectedly or is still running.
16/02/2017 13:46:07 [ 6574] [ERROR] [BENUTZER] Please check your logs for this PID and errors like PHP-Fatals or Apache segmentation faults and report your results to the Z-Push dev team.
16/02/2017 13:46:07 [ 6574] [ERROR] [BENUTZER] Please check your logs for this PID and errors like PHP-Fatals or Apache segmentation faults and report your results to the Z-Push dev team.
16/02/2017 13:46:08 [ 6575] [ERROR] [BENUTZER] LoopDetection->ProcessLoopDetectionPreviousConnectionFailed(): Command 'SendMail' at 16/02/2017 13:02:57 with pid '6573' terminated unexpectedly or is still running.
16/02/2017 13:46:08 [ 6575] [ERROR] [BENUTZER] LoopDetection->ProcessLoopDetectionPreviousConnectionFailed(): Command 'SendMail' at 16/02/2017 13:02:57 with pid '6573' terminated unexpectedly or is still running.
16/02/2017 13:46:08 [ 6575] [ERROR] [BENUTZER] Please check your logs for this PID and errors like PHP-Fatals or Apache segmentation faults and report your results to the Z-Push dev team.
16/02/2017 13:46:08 [ 6575] [ERROR] [BENUTZER] Please check your logs for this PID and errors like PHP-Fatals or Apache segmentation faults and report your results to the Z-Push dev team.
16/02/2017 13:46:09 [11380] [FATAL] [BENUTZER] Fatal error: /usr/share/z-push/backend/kopano/kopano.php:466 - Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) (1)
16/02/2017 13:46:09 [11380] [FATAL] [BENUTZER] Fatal error: /usr/share/z-push/backend/kopano/kopano.php:466 - Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) (1)

/var/log/apache2/error.log

[Thu Feb 16 13:46:06 2017] [error] [client 1.2.3.4] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 77 bytes) in /usr/share/z-push/backend/kopano/kopano.php on line 466
[Thu Feb 16 13:46:09 2017] [error] [client 1.2.3.4] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /usr/share/z-push/backend/kopano/kopano.php on line 466
[Thu Feb 16 13:47:16 2017] [error] [client 1.2.3.4] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 77 bytes) in /usr/share/z-push/backend/kopano/kopano.php on line 466

memory_limit, upload_max_filesize and post_max_size:

root@master:~# egrep ^"memory_limit|upload_max_filesize|post_max_size" /etc/php5/*/php.ini
/etc/php5/apache2/php.ini:memory_limit = 1024M
/etc/php5/apache2/php.ini:post_max_size = 50M
/etc/php5/apache2/php.ini:upload_max_filesize = 20M
/etc/php5/cgi/php.ini:memory_limit = 1024M
/etc/php5/cgi/php.ini:post_max_size = 8M
/etc/php5/cgi/php.ini:upload_max_filesize = 20M
/etc/php5/cli/php.ini:memory_limit = 1024M
/etc/php5/cli/php.ini:post_max_size = 8M
/etc/php5/cli/php.ini:upload_max_filesize = 20M

When using WebApp and DeskApp bigger attachements are send - What can I do?

Hello @ThorstenS,

there is actually also a memory limit set in the apache vhost of z-push:

    # Setting memory limit higher (larger attachments)
    php_value memory_limit 128M

When you uncomment this and restart apache, the higher memory limit set in apache will be used and the mail will be sent.

We recently stumbled upon this problem with lager attachments ourselves and memory consumption therefore has been improved with Z-Push 2.3.5 beta as well.

PS: you should update KOE. There is now a 1.2.127.

Increasing the memory_limit is the easiest fix, but in some cases (e.g. when using send-as with KOE) the memory usage gets much higher. It could be that with 256 MB memory also gets exhausted.

SendMail memory usage has been improved drastically in 2.3.5: https://forum.kopano.io/topic/61/z-push-2-3-5-beta1-released

Final is scheduled for 01.03.2017, but feedback is of course very welcome before the final. ;)

Cheers,
Sebastian

@fbartels
Thanks, I commented this line - tomorrow we will do our tests.

Every version after KOE 1.1.44 crashed Outlook more worse and frequently, than 1.1.44 did. Today we installed 1.2.127 on some machine - looks much better. crossing fingers

@Sebastian
As we are running univention corporate server, I prefer installing debs.
Is there a repo for me? I will give it a try!

There is also a Univention repository for the betas.
You can find all information here: https://wiki.z-hub.io/display/ZP/Installation

Just use this repository (and proceed as described in the wiki): http://repo.z-hub.io/z-push:/pre-final/Univention_4.0/