luceos I'm using a fork of mini-sendmail in a chroot which passes the email to Exim. It is working fine with PHP Mail and WordPress and Drupal and for Kimai, which also uses Swiftmailer, a local.yaml
file is needed containing:
swiftmailer:
transport: sendmail
command: /usr/sbin/sendmail -t -i
In order to get email from Kimai to work, this is in the Flarum Apache error log:
[Sun Dec 08 21:19:40.548198 2019] [proxy_fcgi:error] [pid 26931:tid 140584248121088] [client XXX.XXX.XXX.XXX:36226] AH01071: Got error 'PHP message: PHP Warning: proc_open() has been disabled for security reasons in /home/flarum/sites/flarum/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 299PHP message: PHP Notice: Undefined offset: 2 in /home/flarum/sites/flarum/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 300PHP message: PHP Warning: stream_set_blocking() expects parameter 1 to be resource, null given in /home/flarum/sites/flarum/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 300PHP message: PHP Notice: Undefined offset: 2 in /home/flarum/sites/flarum/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 301PHP message: PHP Warning: stream_get_contents() expects parameter 1 to be resource, null given in /home/flarum/sites/flarum/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php on line 301', referer: https://flarum.wsh.webarchitects.org.uk/
I believe that the -t
is needed in order that the emails are not buffered, see the documentation.