special_use wants capital letters; file location changes

This commit is contained in:
juvilius 2023-04-07 17:11:58 +02:00
parent 3358b0123a
commit 39d9b9adb2
Signed by untrusted user who does not match committer: julius
GPG Key ID: 3EAC91A848E1D685

View File

@ -20,7 +20,7 @@ umask 0022
#A apt-get install -y postfix postfix-pcre dovecot-imapd dovecot-sieve opendkim opendkim-tools spamassassin spamc net-tools fail2ban
pacman -Syu postfix postfix-pcre dovecot pigeonhole opendkim spamassassin net-tools fail2ban cronie
mkdir /etc/dovecot
mkdir -p /etc/dovecot
cp /usr/share/doc/dovecot/example-config/dovecot.conf /etc/dovecot/dovecot.conf
cp -r /usr/share/doc/dovecot/example-config/conf.d /etc/dovecot
@ -180,23 +180,23 @@ mail_location = maildir:~/mail:INBOX=~/mail/inbox:LAYOUT=fs
namespace inbox {
inbox = yes
mailbox drafts {
special_use = \\drafts
special_use = \\Drafts
auto = subscribe
}
mailbox junk {
special_use = \\junk
special_use = \\Junk
auto = subscribe
autoexpunge = 60d
}
mailbox sent {
special_use = \\sent
special_use = \\Sent
auto = subscribe
}
mailbox trash {
special_use = \\trash
special_use = \\Trash
}
mailbox archive {
special_use = \\archive
special_use = \\Archive
}
}
@ -289,7 +289,7 @@ sed -i '/Socket/s/^#*/#/' /etc/opendkim.conf
grep -q '^Socket\s*inet:12301@localhost' /etc/opendkim.conf || echo 'Socket inet:12301@localhost' >> /etc/opendkim.conf
# OpenDKIM daemon settings, removing previously activated socket.
sed -i '/^SOCKET/d' /etc/default/opendkim && echo "SOCKET=\"inet:12301@localhost\"" >> /etc/default/opendkim
sed -i '/^SOCKET/d' /etc/opendkim && echo "SOCKET=\"inet:12301@localhost\"" >> /etc/opendkim
# Here we add to postconf the needed settings for working with OpenDKIM
echo 'Configuring Postfix with OpenDKIM settings...'
@ -317,7 +317,7 @@ enabled = true
enabled = true" > /etc/fail2ban/jail.d/emailwiz.local
# Enable SpamAssassin update cronjob.
sed -i "s|^CRON=0|CRON=1|" /etc/default/spamassassin
sed -i "s|^CRON=0|CRON=1|" /etc/spamassassin
for x in spamassassin opendkim dovecot postfix fail2ban; do
printf "Restarting %s..." "$x"