Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running multiple websites on a single server. I'm using sendgrid to send my email.

Right now, I have postfix relay all outgoing mail to a single sendgrid account, using smtp_sasl for authentication.

I need to be able to send each domain's email to a different sendgrid account. So, for domain1.com, I'd want to relay to sendgrid using one account, and for domain2.com, I'd need postfix to use a different account to authenticate.

share|improve this question
I don't think so -- they need to go to the same host, but with different authentication. – Joe Van Dyk Jun 13 '11 at 18:55

1 Answer

sender_dependent_relayhost_maps and sender_dependent_default_transport_maps are your friends.

share|improve this answer
Hm, I'm still a little confused. I don't need to change the host, just the username and passwords. – Joe Van Dyk Jun 13 '11 at 20:55

Your Answer

 
discard

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.