I have Request Tracker 4.4 up and running. Sometimes email messages that it sends are going to spam. So I decided to use msmtp to send messages through SMTP with authentication.
I used this manual: https://rt-wiki.bestpractical.com/wiki/Msmtp
Actual result is that mail is not sent, while log says sent and also log says:
RTmailer: CALL /usr/bin/msmtp -nt -oi -t RETURNED 78
If I use msmtp_wrapper manually from command line - it works perfectly, no errors.
Access rights are OK:
-rwxr-xr-x 1 root apache 272 May 22 16:24 msmtp_wrapper
-rw-r--r-- 1 root apache 539 May 22 13:51 msmtp_wrapper.conf
What am I doing wrong? How do I fix this?