Set up SquirrelMail mail server in UBUNTU

Source: Internet
Author: User
Tags imap squirrelmail
Article Title: Set up SquirrelMail mail server in UBUNTU. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

I have not installed SquirrelMail on UBUNTU. but I always want to learn how to install it. I will post some posts here and no one will reply. I will share some of the documents I recently found online on the SquirrelMail server and learn from you.
UBUNTU security? I don't? Now.
?. (Application-> attachment-> terminal) You see the symbol "$,

1. Upgrade "Source" to Breezy (6.00 ).

Press the terminal key, for example, open source list.
Sudo cp/etc/apt/sources. list/etc/apt/sources. list_backup
Sudo gedit/etc/apt/sources. list
Replace all content in the file with the following:
Deb http://ubuntu.cn99.com/ubuntu/ breezy main restricted universe multiverse
Deb http://ubuntu.cn99.com/ubuntu/ breezy-updates main restricted universe multiverse
Deb http://ubuntu.cn99.com/ubuntu/ breezy-security main restricted universe multiverse
Deb http://ubuntu.cn99.com/ubuntu/ breezy-backports main restricted universe multiverse
Deb http://ubuntu.cn99.com/ubuntu-cn/ breezy main restricted universe multiverse
Save the edited File
Sudo apt-get update (source upgrade)

2. Set the local environment

Enter sudo dpkg-reconfigure locales in the terminal

Make sure that the zh_CN.UTF-8 is selected, and the local is the zh_CN.UTF-8 by default
Install Dapper (6.06)
Enter sudo apt-get install language-support-zh in the terminal
Sudo locale-gen zh_CN

3. Install the Chinese support environment

Enter: sudo apt-get install language-pack-gnome-zh-base language-pack-zh-base language-support-zh

4. Install Chinese Fonts

If [Y/n] or [y/N] is required, enter y and press Enter.

Enter sudo apt-get install ttf-arphic-ukai ttf-arphic-uming in the terminal

5. Installation input method (optional, not installed)

Xianan? : Fcitx
Enter sudo apt-get install fcitx in the terminal
Enter sudo sh-c "echo 'export XMODIFIERS = @ im = fcitx; export GTK_IM_MODULE =" fcitx "; fcitx'>/etc/X11/Xsession in the terminal. d/95 xinput"
Enter sudo chmod + 755/etc/X11/Xsession. d/95 xinput in the terminal
Activate Input Method
Restart Xwindow. Press Ctrl + space to activate the input method.


6. Install imap

Method 1: Enter sudo apt-get install courier-imap in the terminal (I have not tested)

Method 2: Install courier-imap
Courier-IMAP supports IMAP/SIMAP access
Reference: http://www.inter7.com/courierimap

Courier-imap has released courier-authlib independently since version 4. You need to install courier-authlib first.
Install courier-imap
Cd/home/pkg
Tar-xjf courier-imap-4.0.2.tar.bz2
Cd courier-imap-4.0.2
Chown-R vpopmail: vchkpw ../courier-imap-4.0.2
Su vpopmail
./Configure -- with-redhat
# Note: The Redhat user must use the "-- with-redhat" option.
Make
Exit
Make install-strip
Make install-configure
Cp courier-imap.sysvinit/etc/rc. d/init. d/courier-imap
Chmod 755/etc/rc. d/init. d/courier-imap
Chkconfig -- add courier-imap
# Configuration:
# Modify the file/usr/lib/courier-imap/etc/authdaemonrc. If not, the link/usr/local/etc/authlib/authdaemonrc
Authmodulelist = "authvchkpw"
# Modify the file/usr/lib/courier-imap/etc/imapd
IMAPDSTART = YES
# Modify the file/usr/lib/courier-imap/etc/imapd-ssl
IMAPDSSLSTART = YES
# Modify the file/usr/lib/courier-imap/etc/imapd. cnf
CN = domain.com
EmailAddress = postmaster@domain.com
# Modify the file/usr/lib/courier-imap/etc/pop3d. cnf
CN = domain.com
EmailAddress = postmaster@domain.com
# Start:
/Etc/rc. d/init. d/courier-imap start
# Use outlook to test whether IMAP is normal

2. Required Software

Squirrelmail-1.4.0.tar.gz (http://www.squirrelmail.org)
Install SquirrelMail
SquirrelMail is an IMAP client written in PHP. Before installing SquirrelMail, make sure that your IMAP runs properly.
# Installation

Cd/home/pkg
Tar-xzvf squirrelmail-1.4.4.tar.bz
Cd squirrelmail-1.4.4
Cd plugins
Tar-xzf.../quota_usage-1.3-1.2.7.tar.gz
Cp quota_usage/config. php. sample quota_usage/config. php
Cd ../
./Configure
# You will set the following options

# Select "2. server Settings "=>". update IMAP Settings "=>" 8. change Server software to courier. Go back to the main menu and select 4. general Options "=>" 1. change "Data Directoryand" to "/var/www/data/". Then return to the main menu and select "8. plugins "=> Add the plug-in you want. Return to the main menu, select "10. Ages", change "Default Language" to "zh_CN", and change "Default Charset" to "GB2312 ". Save and exit.
Mv data/var/www/
Chown-R vpopmail. vchkpw/var/www/data
Cd ../
Music squirrelmail-1.4.4/var/www/html/squirrelmail
 
# Log on to the http://domain.com/squirrelmail to verify that the installation is successful.

[1] [2] Next page

Related Article

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.