Configuring Postfix for Incoming Connections Using a FreeBSD Jail
12 Nov2006
When I configured FreeBSD jails, I added this line to /usr/local/etc/postfix/main.cf:
inet_interfaces configuration line
This stops postfix from listening on all network interfaces on the machine, and means that jail processes can run separate postfix instances.
However, I didn't use this machine to receive incoming mail at first, only for sending mail out through a relay (mostly from web applications).
I want to start using this machine as my main mail server, and also wanted to have bugmail@workingsoftware.com.au deliver mail to the Bugzilla mail interface script, but even though postfix was listening on port 25, as shown by this command and the corresponding output:
lsof command showing postfix listening on port 25
I was unable to connect on port 25. I couldn't figure out how to fix it, but adding this line to /usr/local/etc/postfix/master.cf seems to work:
and I can now see this process listening on port 25:
lsof command showing new smtpd process
telnet socata.scoastnet.com.au 25 now works also, so I assume this has done the trick.
This entry was posted on Sunday, November 12th, 2006 at 5:00 pm freebsd, system administration, postfix, mail, jail, recipe, postfixes, mails, jails, recipes
Subscribe
Building software in the real world - the Working Software blog
We write about our experiences, ideas and interests in business, software and the business of software. We also sometimes write about our own products (in order to promote them).
Recent Posts
- RSS is only dead if we let it die
- Kill your index.php
- 18 Things I Wish I Knew 7 Years Ago
- When does automation become coding
- A list of things you can do to afford Mixergy Premium in 2012
- Thanks Louis now here is my dad
- Your templating engine sucks and everything you have ever written is spaghetti code yes you
- Energy for Opportunity website is now live
- Escaping single and double quotes in XPath queries in PHP
- The reason that outsourcing software is so difficult