Forcing the from address when postfix relays over smtp

Posted by John Whitlock on Server Fault See other posts from Server Fault or by John Whitlock
Published on 2010-06-03T17:10:29Z Indexed on 2010/06/03 17:14 UTC
Read the original article Hit count: 279

Filed under:
|

I'm trying to get email reports from our AWS EC2 instances. We're using Exchange Online (part of Microsoft Online Services). I've setup a user account specifically for SMTP relaying, and I've setup Postfix to meet all the requirements to relay messages through this server. However, Exchange Online's SMTP server will reject messages unless the From address exactly matches the authentication address (the error message is 550 5.7.1 Client does not have permissions to send as this sender).

With careful configuration, I can setup my services to send as this user. But I'm not a huge fan of being careful - I'd rather have postfix force the issue. Is there a way to do this?

© Server Fault or respective owner

Related posts about postfix

Related posts about hosted-exchange