/etc/opensmtpd/smtpd.conf (1)

From RaySoft
#-----------------------------------------------------------------------
# smtpd.conf
# ==========
#
# Project   Gentoo 4 Shuttle DS57Ux
# Scope     Native
# Copyright (C) 2022 by RaySoft, Zurich, Switzerland
# License   GNU General Public License (GPL) 2.0
#           https://www.gnu.org/licenses/gpl2.txt
#
#-----------------------------------------------------------------------
#
# WARNING: This configuration file is based of the syntax before
#          OpenSMTPD version 6.4.0.
#
#-----------------------------------------------------------------------

listen on lo inet4

table secrets db:/etc/opensmtpd/secrets.db

table catchall { "@" = "alex.the.lion@gmail.com" }

accept from any virtual <catchall> deliver to mbox
accept from local for any relay \
  via tls+auth://gmail@smtp.gmail.com:587 auth <secrets>

#-----------------------------------------------------------------------

Usage

See OpenSMTPD Howto (1)