OTRS – configure smtp to add a custom sendgrid header

emailotrssendgridsendmailsmtp

I'd like to be able to configure OTRS ticket system to send email through sendgrid but I also want to add some configuration parameters through the X-SMTPAPI sendgrid header.

There's no obvious config setting I can see that would allow me to add a header to sent email through smtp in OTRS.

Any idea how I could do this?

A couple of notes of importance:

  • The server itself uses qmail, but I can't configure the entire local server to go through sendgrid because it runs some other services that shouldn't go through sendgrid

  • I'd like to avoid as much as possible changing the OTRS source files if possible because a) i don't know perl that well and b) that's asking for trouble

Best Answer

If you have a working sendmail installation, you can add the SMART_HOST parameter to relay all mail to sendgrid.

See this SendGrid documentation for details.