Changed UID of postfix - clean-up steps to do afterwards

Written by - 0 comments

Published on August 7th 2013 - Listed in Linux Mail


If you change the UID of the postfix user and the GID of postfix and postdrop, the following steps are required to clean-up the system and have a working postfix again.

Note: This was done on a Debian Wheezy 7.1 Linux.

/var/spool/postfix: (postfix's home dir):

chown -R postfix /var/spool/postfix/active
chown -R postfix /var/spool/postfix/bounce
chown -R postfix /var/spool/postfix/corrupt
chown -R postfix /var/spool/postfix/defer
chown -R postfix /var/spool/postfix/deferred
chown -R postfix /var/spool/postfix/flush
chown -R postfix /var/spool/postfix/hold
chown -R postfix /var/spool/postfix/incoming
chown -R postfix /var/spool/postfix/private
chown -R postfix /var/spool/postfix/saved
chown -R postfix /var/spool/postfix/trace
chown -R postfix:postdrop /var/spool/postfix/maildrop
chown -R postfix:postdrop /var/spool/postfix/public

/var/lib/postfix:

chown -R postfix:postfix /var/lib/postfix

Permission change/verification on special mail commands:

chown root:postdrop /usr/sbin/postqueue
chown root:postdrop /usr/sbin/postdrop
chmod g+s /usr/sbin/postqueue
chmod g+s /usr/sbin/postdrop

At the end (re-)start Postfix:

/etc/init.d/postfix start



Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.