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:

smtpd config line

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

blog comments powered by Disqus

Subscribe

Subscribe via RSS

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).