opensmtpd: support relaying mail
This commit is contained in:
parent
b252e451f6
commit
be8e47119f
3 changed files with 22 additions and 0 deletions
9
roles/opensmtpd/templates/smtpd.conf.j2
Normal file
9
roles/opensmtpd/templates/smtpd.conf.j2
Normal file
|
@ -0,0 +1,9 @@
|
|||
table aliases file:/etc/smtpd/aliases
|
||||
|
||||
listen on lo
|
||||
|
||||
action "local" maildir alias <aliases>
|
||||
action "relay" relay{% if mail_relay is defined %} host smtp+tls://{{ mail_relay }}{% endif +%}
|
||||
|
||||
match for local action "local"
|
||||
match from local for any action "relay"
|
Loading…
Add table
Add a link
Reference in a new issue