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 am setting up an email system using Interspire Email Marketer with 5 user accounts, and each user has their own Sendgrid account.

We are trying to build a fast system, so we have a dedicated MySQL server with lots of RAM, a web server to host the Interspire software, and our current problem: a MTA server.

We want the MTA server to act as a gateway to Sendgrid since it can process emails in parallel instead of directly from Interspire with the PHP limitations. From what I've heard Postfix will not be able to be used since we all have our own Sendgrid accounts, and when Postfix is configured to act as a gateway, it only allows one set of credentials.

My question is, how can we still setup/use our own Sendgrid accounts, but pipe the emails via a MTA server to Sendgrid? Are there any alternatives?

I would almost like to have the MTA intercept the smtp requests from the web server (which includes the smtp authentication details) and then take over the delivery. Since the MTA is also a local server it should be quite fast.

share|improve this question

Charlie, you can use sender dependent SASL auth in postfix to use different relayhosts for different users.

share|improve this answer
That's what I thought too, but I am being told that I can only use one set of credentials per unique relayhost. I need 5 separate credentials all for one relayhost (sendgrid). – Charlie Feb 26 '13 at 12:02

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.