Skip to content

Instantly share code, notes, and snippets.

@congpeijun
Created April 27, 2013 05:23
Show Gist options
  • Select an option

  • Save congpeijun/5471986 to your computer and use it in GitHub Desktop.

Select an option

Save congpeijun/5471986 to your computer and use it in GitHub Desktop.
postfix maildir
maildirmake /etc/skel/Maildir
maildirmake /etc/skel/Maildir/.Drafts
maildirmake /etc/skel/Maildir/.Sent
maildirmake /etc/skel/Maildir/.Trash
maildirmake /etc/skel/Maildir/.Templates
Then, for an existing user:
cp -r /etc/skel/Maildir /home/myuser/
chown -R myuser:usergroup /home/myuser/Maildir
chmod -R 700 /home/myuser/Maildir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment