Commit f32feead authored by w4t's avatar w4t

wtserver 0.55

parent d55aeb9a
...@@ -44,6 +44,7 @@ InstallMTA() { ...@@ -44,6 +44,7 @@ InstallMTA() {
echo -e "[${green}DONE${NC}]" echo -e "[${green}DONE${NC}]"
;; ;;
"dovecot") "dovecot")
local STORAGE_ROOT="/var/www"
echo -n -e "$IDENTATION_LVL_1 Installing POP3/IMAP Mail server ${red}Dovecot${NC} and Mail signing (OpenDKIM)...\n" echo -n -e "$IDENTATION_LVL_1 Installing POP3/IMAP Mail server ${red}Dovecot${NC} and Mail signing (OpenDKIM)...\n"
echo -n -e "$IDENTATION_LVL_2 Installing Dovecot and dependecies... " echo -n -e "$IDENTATION_LVL_2 Installing Dovecot and dependecies... "
apt_install dovecot-core dovecot-imapd dovecot-pop3d dovecot-mysql dovecot-sieve dovecot-lmtpd dovecot-managesieved dovecot-antispam opendkim opendkim-tools apt_install dovecot-core dovecot-imapd dovecot-pop3d dovecot-mysql dovecot-sieve dovecot-lmtpd dovecot-managesieved dovecot-antispam opendkim opendkim-tools
...@@ -346,6 +347,7 @@ EOF ...@@ -346,6 +347,7 @@ EOF
mkdir -p "$STORAGE_ROOT/mail/homes" mkdir -p "$STORAGE_ROOT/mail/homes"
chown -R mail:mail "$STORAGE_ROOT/mail/mailboxes" chown -R mail:mail "$STORAGE_ROOT/mail/mailboxes"
chown -R mail:mail "$STORAGE_ROOT/mail/homes" chown -R mail:mail "$STORAGE_ROOT/mail/homes"
#chmod -R 750 "$STORAGE_ROOT/mail/mailboxes"
# Same for the sieve scripts. # Same for the sieve scripts.
mkdir -p "$STORAGE_ROOT/mail/sieve" mkdir -p "$STORAGE_ROOT/mail/sieve"
...@@ -436,7 +438,7 @@ EOF ...@@ -436,7 +438,7 @@ EOF
# This removes mails from the index that have already been expunged and makes # This removes mails from the index that have already been expunged and makes
# sure that the next doveadm index will index all the missing mails (if any). # sure that the next doveadm index will index all the missing mails (if any).
#hide_output doveadm fts rescan -A #hide_output doveadm fts rescan -A
doveadm fts rescan -A >> $PROGRAMS_INSTALL_LOG_FILES 2>&1 doveadm fts rescan -A
# Adds unindexed files to the fts database # Adds unindexed files to the fts database
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment