Link maildir to mailpile
This commit is contained in:
parent
bd09d83b81
commit
2fbd344f69
|
@ -407,8 +407,18 @@ function install_mailpile {
|
||||||
if [ -d /var/www/$MAILPILE_DOMAIN_NAME/mail/.gnupg ]; then
|
if [ -d /var/www/$MAILPILE_DOMAIN_NAME/mail/.gnupg ]; then
|
||||||
mv /var/www/$MAILPILE_DOMAIN_NAME/mail/.gnupg /var/www/$MAILPILE_DOMAIN_NAME/mail/.gnupg_orig
|
mv /var/www/$MAILPILE_DOMAIN_NAME/mail/.gnupg /var/www/$MAILPILE_DOMAIN_NAME/mail/.gnupg_orig
|
||||||
fi
|
fi
|
||||||
|
if [ -d /var/www/$MAILPILE_DOMAIN_NAME/mail/Maildir ]; then
|
||||||
|
mv /var/www/$MAILPILE_DOMAIN_NAME/mail/Maildir /var/www/$MAILPILE_DOMAIN_NAME/mail/.Maildir_orig
|
||||||
|
fi
|
||||||
|
if [ -f /var/www/$MAILPILE_DOMAIN_NAME/mail/.procmailrc ]; then
|
||||||
|
mv /var/www/$MAILPILE_DOMAIN_NAME/mail/.procmailrc /var/www/$MAILPILE_DOMAIN_NAME/mail/.procmailrc_orig
|
||||||
|
fi
|
||||||
ln -s /home/$MY_USERNAME/.gnupg /var/www/$MAILPILE_DOMAIN_NAME/mail/
|
ln -s /home/$MY_USERNAME/.gnupg /var/www/$MAILPILE_DOMAIN_NAME/mail/
|
||||||
|
ln -s /home/$MY_USERNAME/.procmailrc /var/www/$MAILPILE_DOMAIN_NAME/mail/
|
||||||
|
ln -s /home/$MY_USERNAME/Maildir /var/www/$MAILPILE_DOMAIN_NAME/mail/
|
||||||
chown -R mailpile:mailpile /var/www/$MAILPILE_DOMAIN_NAME/mail/.gnupg
|
chown -R mailpile:mailpile /var/www/$MAILPILE_DOMAIN_NAME/mail/.gnupg
|
||||||
|
chown -R mailpile:mailpile /var/www/$MAILPILE_DOMAIN_NAME/mail/Maildir
|
||||||
|
chown mailpile:mailpile /var/www/$MAILPILE_DOMAIN_NAME/mail/.procmailrc
|
||||||
# unless the directory is executable we can't log in
|
# unless the directory is executable we can't log in
|
||||||
chmod +x /var/www/$MAILPILE_DOMAIN_NAME/mail/.gnupg
|
chmod +x /var/www/$MAILPILE_DOMAIN_NAME/mail/.gnupg
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue