diff --git a/seqs/mailserver.sh b/seqs/mailserver.sh index 425290e..984ef8d 100755 --- a/seqs/mailserver.sh +++ b/seqs/mailserver.sh @@ -150,11 +150,13 @@ step_8() { echo " }" echo " }" echo - echo "# Auto-create Sent and Trash Folder" + echo "# Auto-subscribe Drafts, Sent, Junk and Trash Folder" + echo " and auto delete after 30 days" echo " [/etc/dovecot/conf.d/15-mailboxes.conf]" echo " # Add \"auto = create\" to folder e.g.:" echo " mailbox Trash {" - echo " auto = create" + echo " auto = subscribe" + echo " autoexpunge = 30d" echo " special_use = \\Trash" echo " }" echo @@ -290,14 +292,26 @@ step_25() { echo " sieve_plugins = sieve_extprograms" echo " sieve_user_log = file:/var/vmail/%d/%n/sieve/sieve.log" echo - echo "# Enable excution of external programs (e.g. to send xmpp messages on certain keywords)" - echo " [$mdaConfDir/90-sieve-extprograms.conf]" - echo " sieve_execute_bin_dir = /usr/lib/dovecot/sieve-extprograms" - echo echo "# Enable sieve for lmtp" echo " [$mdaConfDir/20-lmtp.conf]" echo " postmaster_address = postmaster@$MAS_DOMAIN" echo " mail_plugins = $mail_plugins sieve" + echo + echo "# Enable excution of external programs (e.g. to send xmpp messages on certain keywords)" + echo " [$mdaConfDir/90-sieve-extprograms.conf]" + echo " sieve_execute_bin_dir = /usr/lib/dovecot/sieve-execute" + echo + echo "# Notes on execution of scripts" + echo " * Scripts are executed with the $MAS_VIRTUAL_USER user" + echo " * Scripts must no be writeable by others" + echo " (chown root:$MAS_VIRTUAL_USER script; chmod 750 script)" + echo " * \$HOME is set to the virtual users home" + echo " (e.g. /var/vmail/$MAS_DOMAIN/max)" + echo + echo "# Notes about sendxmpp" + echo " * .sendxmpprc resides in every virtual users home" + echo " and must be owned by $MAS_VIRTUAL_USER" + echo " (chown $MAS_VIRTUAL_USER: .sendxmpprc; chmod 700 .sendxmpprc) } step_50_info() { echo "Adding relay host for sending mails"; }