Msmtp RETURNED 78

Hello.

I’m trying to set up RT to use external SMTP server with authentication. I used https://rt-wiki.bestpractical.com/wiki/Msmtp manual and it doesn’t work. Log says:

RTmailer: CALL /usr/bin/msmtp -nt -oi -t RETURNED 78

This works:

./msmtp_wrapper < mail.txt

 cat mail.txt
To: test@domain.com
Subject: sendmail test two
From: support@domain.com

(“domain.com” is obviously real, just changed for posting purpose)

RTmailer: CALL /usr/bin/msmtp -nt RETURNED 0

What am I doing wrong? How do I fix this “RETURNED 78” error?

Solved. mstmp_wrapper.conf should be owned by exact user that RT runs as. Also access rights should be 600.

1 Like