Merge pull request 'lxc-php: Fix config for opensmtpd on bullseye' (#137) from mtrossevin/ansible-roles:opensmtpd-bullseye into unstable
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
Reviewed-on: #137
This commit is contained in:
commit
7a969a0be2
|
@ -36,6 +36,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
||||||
* nginx : fix variable name and debug to actually use nginx-light
|
* nginx : fix variable name and debug to actually use nginx-light
|
||||||
* packweb-apache : Support php 8.0
|
* packweb-apache : Support php 8.0
|
||||||
* nagios-nrpe: Fix check\_nfsserver for buster and bullseye
|
* nagios-nrpe: Fix check\_nfsserver for buster and bullseye
|
||||||
|
* lxc-php: fix config for opensmtpd on bullseye containers
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -11,3 +11,13 @@
|
||||||
dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/smtpd.conf"
|
dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/smtpd.conf"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify: "Restart opensmtpd"
|
notify: "Restart opensmtpd"
|
||||||
|
when: lxc_php_container_releases[lxc_php_version] in ["jessie", "stretch", "buster"]
|
||||||
|
|
||||||
|
|
||||||
|
- name: "{{ lxc_php_version }} - Configure opensmtpd (in the container)"
|
||||||
|
template:
|
||||||
|
src: smtpd.conf.bullseye.j2
|
||||||
|
dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/smtpd.conf"
|
||||||
|
mode: "0644"
|
||||||
|
notify: "Restart opensmtpd"
|
||||||
|
when: not lxc_php_container_releases[lxc_php_version] in ["jessie", "stretch", "buster"]
|
||||||
|
|
17
lxc-php/templates/smtpd.conf.bullseye.j2
Normal file
17
lxc-php/templates/smtpd.conf.bullseye.j2
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# This is the smtpd server system-wide configuration file.
|
||||||
|
# See smtpd.conf(5) for more information.
|
||||||
|
|
||||||
|
# To accept external mail, replace with: listen on all
|
||||||
|
#listen on localhost
|
||||||
|
|
||||||
|
# If you edit the file, you have to run "smtpctl update table aliases"
|
||||||
|
table aliases file:/etc/aliases
|
||||||
|
|
||||||
|
action "mbox" mbox alias <aliases>
|
||||||
|
action "relay" relay host "smtp://127.0.0.1"
|
||||||
|
|
||||||
|
# Uncomment the following to accept external mail for domain "example.org"
|
||||||
|
#match from any for domain "example.org" action "mbox"
|
||||||
|
|
||||||
|
match for local action "mbox"
|
||||||
|
match for any action "relay"
|
Loading…
Reference in a new issue