A simple method to quickly create an Ubuntu email server

Source: Internet
Author: User
$ Sudoapt-getinstallapache2 $ sudoapt-getinstalldovecot-common for a long time, has been looking for methods, the following method is relatively simple, small companies are enough. ----------------------------------------------- Select [LAMP] Because squirrelmail (webmail $ sudo apt-get install apache2 when the Ubuntu-server-8.04 is installed to the end
$ Sudo apt-get install dovecot-common has been searching for methods for a long time. The following method is relatively simple and small companies are enough.
-------------------------------------------------
Ubuntu-server-8.04
End of Installation
Select [LAMP] Because squirrelmail (webmail) uses www and php,
Select [Mail] to automatically install postfix and dovecot-imap.
Install webmail again
$ Sudo apt-get install squirrelmail
Configure webmail
$ Sudo squirrelmail-configure
--------------------------------------------------
Main directory
Select d
Enter dovecot to determine the program used by the system (webmail) to read emails in the mailbox
(It turns out to be confused at this point. In fact, the default installation of ubuntu is a combination of postfix + dovecot)
Select r to return to the home directory
Select 1
Set some content
Select r to return to the home directory
Select 2
Domain: yourdomain (it should be the end-bound examlpe.com)
Select r to return to the home directory
Select 10 Language
Zh_CN
UTF-8
Select r to return to the home directory
Select s (SAVE)
Quit
-------------------------------------------------
Modify apache2 settings
$ Sudo cp/etc/squirrelmail/apache. conf/etc/apache2/sites-enabled/squirrelmail
(Put squirrelmail's apache configuration file in the Standard Location of apache2 so that it can work)
-------------------------------------------------
Start dovecot
$ Cd/etc/dovecot
$ Sudo nano dovecot. conf
Protocols = imap imaps (you must have this line before starting the Service)
Listen = * (this enables the port)
-------------------------------------------------
This paragraph was moved in, not yet understood
$ Sudo nano/etc/postfix/main. cf
Home_mailbox = Maildir/(note that the mail storage method of a single file type is skewed at the end)
# Mailbox_command = procmail-a "$ EXTENSION" (note that you must add "#" to comment out this sentence, which is not understood yet)
------------------------------------------------
This paragraph does not understand
Modify pam Authentication
$ Cd/etc/pam. d
$ Sudo cp common-session common-session.20081207.bak (back up the files that need to be modified for emergency purposes)
$ Sudo nano common-session
Session required pam_mkhomedir.so umask = 0022 skel =/etc/skel)
-----------------------------------------------
$ Cd/etc/skel
$ Ls skel
Example Maildir (the two directories look like this, if no need to add)
$ Cd Maildir
$ Ls Maildir
Cur new tmp (this is the directory style of the mailbox, if not added)
-----------------------------------------------
Add an account (all accounts added here are system accounts, which are slightly insufficient in this application)
$ Sudo adduser taandtadengdeng
-----------------------------------------------
Now you can restart apache2 $ sudo/etc/init. d/apache2 restart.
Enter:
Http: // 127.0.0.1/squirrelmail/
-----------------------------------------------
It comes from practice and is useful to everyone.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.