Header RSS Feed
 
If you only want to see the articles of a certain category, please click on the desired category below:
ALL Android Backup BSD Database Hacks Hardware Internet Linux Mail MySQL Monitoring Network Personal PHP Proxy Shell Solaris Unix Virtualization VMware Windows Wyse

Changed UID of postfix - clean-up steps to do afterwards
Wednesday - Aug 7th 2013 - by - (0 comments)

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.

Go to Homepage home
Linux Howtos how to's
Monitoring Plugins monitoring plugins
Links links

Valid HTML 4.01 Transitional
Valid CSS!
[Valid RSS]

6938 Days
until Death of Computers
Why?