1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-22 02:17:26 +00:00

set dovecot postmaster_address setting, fixes #31

This commit is contained in:
Joshua Tauberer 2014-04-24 11:58:53 +00:00
parent ac13f7ffca
commit 07b43c2bba
2 changed files with 5 additions and 0 deletions

View File

@ -192,6 +192,10 @@ protocol imap {
} }
EOF EOF
# postmaster_address seems to be required or LMTP won't start
tools/editconf.py /etc/dovecot/conf.d/15-lda.conf \
postmaster_address=postmaster@$PUBLIC_HOSTNAME
# Drew Crawford sets the auth-worker process to run as the mail user, but we don't care if it runs as root. # Drew Crawford sets the auth-worker process to run as the mail user, but we don't care if it runs as root.
# Enable SSL and specify the location of the SSL certificate and private key files. # Enable SSL and specify the location of the SSL certificate and private key files.

View File

@ -81,5 +81,6 @@ if [ -z "`tools/mail.py user`" ]; then
read -e -i "user@`hostname`" -p "Email Address: " EMAIL_ADDR read -e -i "user@`hostname`" -p "Email Address: " EMAIL_ADDR
tools/mail.py user add $EMAIL_ADDR # will ask for password tools/mail.py user add $EMAIL_ADDR # will ask for password
tools/mail.py alias add hostmaster@$PUBLIC_HOSTNAME $EMAIL_ADDR tools/mail.py alias add hostmaster@$PUBLIC_HOSTNAME $EMAIL_ADDR
tools/mail.py alias add postmaster@$PUBLIC_HOSTNAME $EMAIL_ADDR
fi fi