Quoting Martijn Rijkeboer <mart...@bunix.org>:
Hi,
I'm trying to migrate our Postfix setup to OpenSMTPD. The setup consists of
two MX servers that run Spamd and that forward the incoming mail to a
internal mail server that contains the mailboxes. In Postfix a transport
map is used to accomplish this. Is it possible to create the same setup with
OpenSMTPD? The servers are running OpenBSD 5.5 AMD64.
Kind regards,
Martijn Rijkeboer
################################################################################
# OpenSMTPD configuration for email gateway/relay
################################################################################
# only listen on loopback because spamd is handling the initial connections
# and Pf is redirecting them to loopback
listen on lo0
# this is not important as we are only a relay, just here by default
table aliases db:/etc/mail/aliases.db
# the full list of our mail-enabled domains
table domains { foo.com, bar.net, vvv.com }
# incoming mail for our domains is relayed to "i-mail" server
accept from any for domain <domains> relay hostname i-mail
# authenticated users are treated as if they are local
accept from local for any relay
-mike