Debian upgrade van Squeeze naar Wheezy

Amedee doet nog eens van upgrade:

sudo su -
apt-get -y purge resolvconf
apt-get update ; apt-get upgrade ; apt-get dist-upgrade
apt-get autoremove ; apt-get clean
dpkg --audit
find /etc/apt/ -type f -print0 | \
xargs -0 grep -lIZ 'squeeze' | \
xargs -0 sed 's/squeeze/wheezy/g'
apt-get update ; apt-get upgrade ; apt-get dist-upgrade
debfoster -nq

Er moest nog wat aangepast worden in Dovecot:

cp /etc/dovecot/conf.d/10-mail.conf \
/etc/dovecot/conf.d/10-mail.conf.orig
sed 's/^mail_location.*/mail_location=maildir:~\/Maildir/' \
/etc/dovecot/conf.d/10-mail.conf.orig > \
/etc/dovecot/conf.d/10-mail.conf

cat << EOF > /etc/dovecot/conf.d/10-master.conf.patch
— 10-master.conf.orig
+++ 10-master.conf
@@ -87,15 +87,15 @@
# something else than 0666 and Dovecot lets the kernel enforce the
# permissions (e.g. 0777 allows everyone full permissions).
unix_listener auth-userdb {
– #mode = 0666
– #user =
– #group =
+ mode = 0666
+ user = postfix
+ group = postfix
}

# Postfix smtp-auth
– #unix_listener /var/spool/postfix/private/auth {
– # mode = 0666
– #}
+ unix_listener /var/spool/postfix/private/auth {
+ mode = 0666
+ }

# Auth process is run as this user.
#user = $default_internal_user
EOF

patch /etc/dovecot/conf.d/10-master.conf \
/etc/dovecot/conf.d/10-master.conf.patch
/etc/init.d/dovecot restart

En uiteindelijk:

reboot

Als ik de grapjas te pakken krijg die dacht dat het een leuk idee was om de config files van Dovecot helemaal dooreen te gooien, die gaat er niet goed van zijn…

Debian

Follow on Bloglovin

Leave a Reply