Is there an easy way to setup postfix to allow mail to relay from any instance inside its own security group? Maybe something with the mynetworks setting? I want to allow all my frontend servers to relay mail through a centralized mail server running postfix.
If you can get postfix to listen on a special port and allow relaying of all messages that are coming in to you on that port, then what you are asking should be easy.
Just set up your security group such that only hosts from a certain security group can connect to that port:
Yeah, I think that would work. Im pretty sure I know how to get postfix to listen on a non-standard port. I think the bigger challenge is how to tell it to allow all connections from that port. Never done that before. Anyone know an easy config to do this?