mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Get rid of syslogd warning about kernel logging.
This commit is contained in:
parent
2629b57590
commit
bc95107b54
|
@ -220,6 +220,9 @@ RUN sed -i -r "/^#?compress/c\compress\ncopytruncate" /etc/logrotate.conf && \
|
||||||
# prevent syslog logrotate warnings \
|
# prevent syslog logrotate warnings \
|
||||||
sed -i -e 's/\(printerror "could not determine current runlevel"\)/#\1/' /usr/sbin/invoke-rc.d && \
|
sed -i -e 's/\(printerror "could not determine current runlevel"\)/#\1/' /usr/sbin/invoke-rc.d && \
|
||||||
sed -i -e 's/^\(POLICYHELPER=\).*/\1/' /usr/sbin/invoke-rc.d && \
|
sed -i -e 's/^\(POLICYHELPER=\).*/\1/' /usr/sbin/invoke-rc.d && \
|
||||||
|
# Prevent syslog warning about imklog permissions.
|
||||||
|
# We won't want to look at that inside a container anyway.
|
||||||
|
sed -i -e 's/^module\(load="imklog"\)/#module\(load="imklog"\)/' /etc/rsyslog.conf && \
|
||||||
# prevent email when /sbin/init or init system is not existing \
|
# prevent email when /sbin/init or init system is not existing \
|
||||||
sed -i -e 's|invoke-rc.d rsyslog rotate > /dev/null|/usr/bin/supervisorctl signal hup rsyslog >/dev/null|g' /usr/lib/rsyslog/rsyslog-rotate
|
sed -i -e 's|invoke-rc.d rsyslog rotate > /dev/null|/usr/bin/supervisorctl signal hup rsyslog >/dev/null|g' /usr/lib/rsyslog/rsyslog-rotate
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,7 @@ chmod a+x ./setup.sh
|
||||||
docker-compose up -d mail
|
docker-compose up -d mail
|
||||||
|
|
||||||
./setup.sh email add <user@domain> [<password>]
|
./setup.sh email add <user@domain> [<password>]
|
||||||
|
./setup.sh alias add postmaster@<domain> <user@domain>
|
||||||
./setup.sh config dkim
|
./setup.sh config dkim
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -131,6 +132,7 @@ Edit the files `.env` and `docker-compose.yml`. In `.env` uncomment the variable
|
||||||
docker-compose up -d mail
|
docker-compose up -d mail
|
||||||
|
|
||||||
./setup.sh -Z email add <user@domain> [<password>]
|
./setup.sh -Z email add <user@domain> [<password>]
|
||||||
|
./setup.sh -Z alias add postmaster@<domain> <user@domain>
|
||||||
./setup.sh -Z config dkim
|
./setup.sh -Z config dkim
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,8 @@ readme_directory = no
|
||||||
alias_maps = hash:/etc/aliases
|
alias_maps = hash:/etc/aliases
|
||||||
alias_database = hash:/etc/aliases
|
alias_database = hash:/etc/aliases
|
||||||
mydestination = $myhostname, localhost.$mydomain, localhost
|
mydestination = $myhostname, localhost.$mydomain, localhost
|
||||||
|
# Uncomment for container accounts to masquerade as the domain instead of the host
|
||||||
|
# myorigin = $mydomain
|
||||||
relayhost =
|
relayhost =
|
||||||
mynetworks = 127.0.0.0/8 [::1]/128 [fe80::]/64
|
mynetworks = 127.0.0.0/8 [::1]/128 [fe80::]/64
|
||||||
mailbox_size_limit = 0
|
mailbox_size_limit = 0
|
||||||
|
|
Loading…
Reference in a new issue