First off you need to setup Postfix and Dovecot, and optional Webmin (Used in this tutorial). Please refer to Ubuntu – Mailserver Setup first. Now you may also setup Webmin for Ubuntu/Debian downloaded here.

Now that you have the software configured and tested properly, we will now setup mailboxes and our new pop/imap & smtp server in our favorite email program.

I am using Ubuntu Server Edition 9.10. In this tutorial we will take the necessary steps to add a Linux user for a new Email Account and how to set it up using the Webmin Interface.

  1. Add a Webmin user. By going to System > Users and Groups. Then click create a new user at the bottom of the listing of users.
  2. Adding a new user in Webmin

    Make sure to use a password as shown and also to use a home directory as the mail folder will be used under the home directory for our user account.

    Click Save and move on to the next step.

  3. Now that you have the user and new password created, you are ready to setup the new user mailbox on the server. You now want to go over to Servers > Postfix Mail Server. Now in order to use your new user as an outgoing email you must next click on the icon labeled “Virtual Domains” then.. Next simply go to “Add New Mapping”.
  4. Add Postfix Email Account

    For "Name:" this is going to be our new Email Address. And "Maps to..." is the user account we just setup (this is going to be use for the mailbox).

    Note: To make a Catchall Account in the Name: just use the as the first part and direct it to a user account as shown. This will direct all emails not already declared to this user mailbox.

    Click Save and move on to the next step.

  5. Now we are ready to setup our new account in our pop3 or imap email account in our favorite email program. (I am using Portable Thunderbird if you want to use the same).
  6. Thunderbird Add New Account

    Just Follow the steps with the information that we already setup for the User Account

  7. Now we want to change some settings after this so now go to Tools > Account Settings… > Server Settings and update with the same settings formats. Make sure you have STARTTLS and Normal Password selected.
    Thunderbird Settings > Server Settings

    Don't hit okay after the settings.. just go to the next step.

  8. Okay.. Now Finally go to Outgoing Server (SMTP) on the left hand side for the SMTP settings, then select your new server and click “Edit”. Here just do the same thing and make sure that you have “STARTTLS” and “Normal Password” selected again.
    Thunderbird SMTP Settings

    That is it. Just make sure you have the new relaying setup as seen here.

Additional Settings for Windows Live Mail and Outlook

Now there are a couple additional changes if you are choosing to use Windows Live mail or Outlook.

Now you need to the edit the /etc/dovecot/dovecot.conf file.

sudo vim /etc/dovecot/dovecot.conf


# uncomment this and change to no.
disable_plaintext_auth = no

Change :

pop3_uidl_format = %08Xu%08Xv

Restart Dovecot using the following command:

/etc/init.d/dovecot restart

Here is a screen shot of the Windows Live Mail / Outlook Settings.

Live Mail and Outlook Settings

This is using pop3 as the incoming mail server. But you may use imap if you like also.

Thanks and enjoy! If you have any questions feel free to post here or contact me through the site.