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

  • Can I ask why you use sendgrid? What's the benefit? Also, would you send to sendgrid using SMTP? Please explain, I can probably put you in the right direction for adding headers.
    – MichielB
    Oct 11, 2011 at 20:50
  • @Mike. For stats & for signing. Need to add headers to place in a category and also to enable signing of emails. And yes, SMTP seems the way to go
    – Ben
    Oct 11, 2011 at 21:13

1 Answer 1


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.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .