Adding email accounts to Postfix without MySql

I can never remember how to add users to Postfix, mostly because I don't have to do it often enough to commit it to memory. Here it is...hopefully I can remember where I wrote it down next time...

These instructions assume a new user named 'new_user'. Credit to falko and his post on howtoforge for part of this code.

Create the new Unix user, and assign him to the 'users' group

root@jupiter:/home# useradd -d /home/new_user -g users new_user

Give the new user a password in the system

root@jupiter:/home# passwd new_user

Actually create the 'home' folder for your new user (/home/new_user)

root@jupiter:/home# mkdir new_user

Create the 'Maildir' folder inside your user's home folder

root@jupiter:/home# mkdir new_user/Maildir

Change the ownership of the new home folder to 'new_user' in the 'users' group. The '-R' switch tells this command to change ownership of all the contents of the /home/new_user too!

root@jupiter:/home# sudo chown new_user:users -R new_user

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <blockquote> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Images can be added to this post.
  • You may use [inline:xx] tags to display uploaded files or images inline.
  • Glossary terms will be automatically marked with links to their descriptions.
  • Use [fn]...[/fn] (or <fn>...</fn>) to insert automatically numbered footnotes.
  • Use [# ...] to insert automatically numbered footnotes. Textile variant.

More information about formatting options