Pages

Thursday, February 5, 2015

OpenBSD Mail Server - Part 1, Initial Setup

1. Install OpenBSD 5.6. If using the auto-partitioner, make sure enough space is allocated to /usr and /usr/src to allow for extracting the sources (below). Edit /etc/rc.conf.local and add “-s” to ntpd_flags so time is set at boot if desired.

2. Add a rule to default /etc/pf.conf to allow incoming ssh connections, such as:

# cat /etc/pf.conf
...
pass in on egress proto tcp to any port ssh
...

3. Reload pf with:

# pfctl -f /etc/pf.conf

4. Update the system by fetching the sources via ftp and patching.

5. Set up $PKG_PATH to install packages.

6. Configure MX records etc. at domain registrar, perhaps with an unused domain for testing purposes.

2 comments:

  1. There's no need to enable 'pf' in '/etc/rc.conf.local' as it is already enabled by default in '/etc/rc.conf'.

    ReplyDelete
  2. @rjc - you are quite correct, thank you for pointing that out.

    ReplyDelete