mirror of
https://git.myvelabs.com/docker/myvemail.git
synced 2025-12-18 09:06:19 +00:00
Try out busybox-syslog
This commit is contained in:
parent
44f66e819e
commit
b0444be489
3 changed files with 8 additions and 6 deletions
|
|
@ -25,6 +25,7 @@ RUN apt remove -y nano* exim*; \
|
||||||
&& apt dist-upgrade -y \
|
&& apt dist-upgrade -y \
|
||||||
&& bash -c "echo \"postfix postfix/main_mailer_type string 'Internet Site'\" | debconf-set-selections" \
|
&& bash -c "echo \"postfix postfix/main_mailer_type string 'Internet Site'\" | debconf-set-selections" \
|
||||||
&& apt install -y \
|
&& apt install -y \
|
||||||
|
busybox-syslogd \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
git wget bind9-host acl dbconfig-no-thanks at \
|
git wget bind9-host acl dbconfig-no-thanks at \
|
||||||
nginx \
|
nginx \
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,8 @@ ${reset}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Reset logs
|
# Reset logs
|
||||||
echo | tee /var/log/dovecot.log /var/log/postfix.log /usr/share/webapps/roundcube/logs/errors.log >/dev/null
|
echo | tee /var/log/maillog /usr/share/webapps/roundcube/logs/errors.log >/dev/null
|
||||||
|
syslogd -O /var/log/maillog
|
||||||
|
|
||||||
# Run all scripts in init folder
|
# Run all scripts in init folder
|
||||||
for file in /docker-entrypoint/init.d/*.sh
|
for file in /docker-entrypoint/init.d/*.sh
|
||||||
|
|
@ -36,4 +37,4 @@ postfix reload &&
|
||||||
echo -e "\n\e[1;32mMail service is ready\e[0m\n"
|
echo -e "\n\e[1;32mMail service is ready\e[0m\n"
|
||||||
|
|
||||||
# Monitor log
|
# Monitor log
|
||||||
tail -f /var/log/dovecot.log /var/log/postfix.log /usr/share/webapps/roundcube/logs/errors.log
|
tail -f /var/log/maillog /usr/share/webapps/roundcube/logs/errors.log
|
||||||
|
|
|
||||||
|
|
@ -67,8 +67,8 @@ postconf -e "smtp_tls_mandatory_protocols = >=TLSv1.2"
|
||||||
postconf -e "smtpd_tls_protocols = >=TLSv1.2"
|
postconf -e "smtpd_tls_protocols = >=TLSv1.2"
|
||||||
postconf -e "smtp_tls_protocols = >=TLSv1.2"
|
postconf -e "smtp_tls_protocols = >=TLSv1.2"
|
||||||
|
|
||||||
# Logging
|
# # Logging
|
||||||
postconf -e "maillog_file = /var/log/postfix.log"
|
# postconf -e "maillog_file = /var/log/postfix.log"
|
||||||
|
|
||||||
# Virtual mailboxes
|
# Virtual mailboxes
|
||||||
postconf -e "mailbox_transport = lmtp:unix:private/dovecot-lmtp"
|
postconf -e "mailbox_transport = lmtp:unix:private/dovecot-lmtp"
|
||||||
|
|
@ -178,8 +178,8 @@ tee -a /etc/dovecot/dovecot.conf >/dev/null <<- dovecot.conf
|
||||||
protocols = imap lmtp
|
protocols = imap lmtp
|
||||||
dovecot.conf
|
dovecot.conf
|
||||||
|
|
||||||
# Logging
|
# # Logging
|
||||||
echo "log_path = /var/log/dovecot.log" >/etc/dovecot/conf.d/10-logging.conf
|
# echo "log_path = /var/log/dovecot.log" >/etc/dovecot/conf.d/10-logging.conf
|
||||||
|
|
||||||
# 10-auth.conf
|
# 10-auth.conf
|
||||||
sed '/include auth-sql.conf.ext\|disable_plaintext_auth =\|auth_username_format =\|auth_mechanisms =\|auth_default_realm =\|include auth-system.conf.ext/d' \
|
sed '/include auth-sql.conf.ext\|disable_plaintext_auth =\|auth_username_format =\|auth_mechanisms =\|auth_default_realm =\|include auth-system.conf.ext/d' \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue