Question

Understanding Postfix relay config

  • Posted June 20, 2014

HI all,

Could someone quickly run through the essentials of a ‘normal’ relay set-up on Postfix. My understanding is that, out of the box, it will only forward mail sent from nodes on its subnet, or ranges specified in the mynetworks directive. So, the big question is this: how do we accommodate mobile clients who might be sending from any IP anywhere? The reason I ask is that until I added the public IP of my router to the ‘mynetworks’ entry, I was getting relay denied. I feel as though Postfix should be able to recognise that the incoming send request is from one of the accounts it is hosting, no? What am I missing? I’ve asked this question over on the Virtualmin forum so apologies if it looks familiar :)

If I can set all this up in Virtualmin, that would be of interest too, though config files hold no fear for me ;-)

Merci et bon weekend Mark

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I believe you need to setup sasl authentication.

http://www.postfix.org/SASL_README.html