Collection of cookbooks for Podman Quadlets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
1.6 KiB

# -----------------------------------------------------------------------
# smtprelay configuration - relay-only SMTP server
#
# Copy this file to /etc/quadlets/smtprelay/smtprelay.ini and adjust the
# values for your environment.
# -----------------------------------------------------------------------
; Hostname for this SMTP server
hostname = mail.example.com
; File which contains username and password used for
; authentication before they can send mail (see allowed_users.txt example).
allowed_users = /etc/smtprelay/allowed_users.txt
; Networks that are allowed to send mails to us.
; The container uses the host network, so clients connect from outside -
; allow any address and rely on SMTP authentication instead.
allowed_nets = 0.0.0.0/0
; -----------------------------------------------------------------------
; Inbound TLS (certificates provided by the lego cookbook)
;
; Replace "localhost" with the actual certificate filename from
; /var/lib/quadlets/lego/certificates/.
; -----------------------------------------------------------------------
; Enable TLS for incoming connections on port 587
listen = starttls://0.0.0.0:587
local_cert = /etc/smtprelay/tls/localhost.crt
local_key = /etc/smtprelay/tls/localhost.key
; Enforce encrypted connection on STARTTLS ports before
; accepting mails from client.
local_forcetls = true
; -----------------------------------------------------------------------
; Outbound relay
; -----------------------------------------------------------------------
; Relay all mail through an upstream smarthost (ex: Mailgun).
; Adjust the credentials and host for your provider.
remotes = starttls://user:pass@smtp.mailgun.org:587