|
@@ -1081,6 +1081,18 @@ function configure_email {
|
1081
|
1081
|
exit 48
|
1082
|
1082
|
fi
|
1083
|
1083
|
|
|
1084
|
+ # configure for Maildir format
|
|
1085
|
+ sed -i 's/MAIL_DIR/#MAIL_DIR/g' /etc/login.defs
|
|
1086
|
+ sed -i 's|#MAIL_FILE.*|MAIL_FILE Maildir/|g' /etc/login.defs
|
|
1087
|
+
|
|
1088
|
+ if ! grep -q "export MAIL" /etc/profile; then
|
|
1089
|
+ echo 'export MAIL=~/Maildir' >> /etc/profile
|
|
1090
|
+ fi
|
|
1091
|
+
|
|
1092
|
+ sed -i 's|pam_mail.so standard|pam_mail.so dir=~/Maildir standard|g' /etc/pam.d/login
|
|
1093
|
+ sed -i 's|pam_mail.so standard noenv|pam_mail.so dir=~/Maildir standard|g' /etc/pam.d/sshd
|
|
1094
|
+ sed -i 's|pam_mail.so nopen|pam_mail.so dir=~/Maildir nopen|g' /etc/pam.d/su
|
|
1095
|
+
|
1084
|
1096
|
echo 'dc_eximconfig_configtype="internet"' > /etc/exim4/update-exim4.conf.conf
|
1085
|
1097
|
echo "dc_other_hostnames='$DOMAIN_NAME'" >> /etc/exim4/update-exim4.conf.conf
|
1086
|
1098
|
echo "dc_local_interfaces=''" >> /etc/exim4/update-exim4.conf.conf
|