Merge pull request 'lxc-php: Fix config for opensmtpd on bullseye' (#137) from mtrossevin/ansible-roles:opensmtpd-bullseye into unstable
continuous-integration/drone/push Build was killed Details

Reviewed-on: #137
This commit is contained in:
Mathieu Trossevin 2022-01-25 12:00:01 +01:00
commit 7a969a0be2
3 changed files with 29 additions and 1 deletions

View File

@ -34,8 +34,9 @@ The **patch** part changes is incremented if multiple releases happen the same m
* evolinux-base: fix alert5.service dependency syntax
* mysql : Create a default ~root/.my.cnf for compatibility reasons
* 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
* lxc-php: fix config for opensmtpd on bullseye containers
### Removed

View File

@ -11,3 +11,13 @@
dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/smtpd.conf"
mode: "0644"
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"]

View 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"