Discussion Forums



Thread: How to configure postfix to allow relay for all instance in security group?

Welcome, Guest Help
Login Login


Permlink Replies: 2 - Pages: 1 - Last Post: Sep 22, 2009 11:44 AM by: to999
to999

Posts: 6
Registered: 9/18/09
How to configure postfix to allow relay for all instance in security group?
Posted: Sep 18, 2009 11:03 AM PDT
  Click to reply to this thread Reply

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. 




dmitriycft

Posts: 22
Registered: 2/7/08
Re: How to configure postfix to allow relay for all instance in security gr
Posted: Sep 18, 2009 6:25 PM PDT   in response to: to999
  Click to reply to this thread Reply

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:

ec2auth postfix-group -P tcp -p 8825 -u XXXXXXXXXXXX -o frontend-servers-group

Port 8825 would be that port in this example.

Note I haven't actually tried this, but it should work.


to999

Posts: 6
Registered: 9/18/09
Re: How to configure postfix to allow relay for all instance in security gr
Posted: Sep 22, 2009 11:44 AM PDT   in response to: dmitriycft
  Click to reply to this thread Reply

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?



Point your RSS reader here for a feed of the latest messages in all forums