Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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 '11 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 '11 at 21:13
up vote 3 down vote accepted

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.

share|improve this answer
Thanks, that's a good idea.. – Ben May 9 '12 at 9:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.