The simplest webmail implementation scheme under the Redhat Linux9

Source: Internet
Author: User
Tags imap mail squirrelmail

RH9 with a PHP written webmail, can provide based on the SendMail Mail Web interface, the configuration method is also very simple, everyone as long as I follow the steps below, you can easily build a Web mail server for yourself (about 10 minutes or so!)

1. Configure DNS

Add mail.xxx.com parsing records and messages to simplify the mail address to user@xxx.com format.

2. Configure httpd

Use the gedit (which I have always used) to edit the/etc/httpd/conf/httpd.conf and insert it after the last #vittual host.

<Virtualhost 10.8.22.18> '改为你的httpd服务器的IP
Servername mail.syd.com '刚才添加的DNS记录
DocumentRoot /var/www/html/mail '邮件文件连接位置,后面有操作
DirectoryIndex index.html index.htm index.php '默认主页
AddDefaultCharSet ISO-2002-C '支持汉语
</Virtualhost>

3. Installation configuration SquirrelMail (Small squirrel Mail)

1) has been installed by default, so ... If... Then install the following package

php-4.2.2-8.0.5, php-imap-4.2.2-8.0.5

Imap-2001a-15, squirrelmail-1.2.7-4

Httpd-2.0.40-8

2 Install the SquirrelMail RPM package, all the paging files are placed in the/usr/share/squirrelmail directory, you need to link to the Apache HTML directory can be used, execute the following command Creative link directory:

# ln-s/usr/share/squirrelmail//var/www/html/mail

3 Configure default parameters for SquirrelMail

A) Start the configuration program

#/usr/share/squirrelmail/config/conf.pl

b) Option 1, configure the basic information, you need to configure the organization name, login Logo,logo size, title, these can be configured later, the first to be configured are: 5th and 6th, the configured values are spaces (5) and ISO-2022-CN (6 items), R input R return

c) Select 2, configure server parameters

DomainName configured for your mail server domain (my for syd.com)

IMAP Server configures the address (IP or domain name) of the server

Use SENDMAIL/SMTP configured as Sendmail

Input R returns

D Select 4, go to general configuration, the first project is configured as ISO-2022-CN, return

E Select 8 to enter the plugin management, add the plug-ins by (input number can be selected), return

f) Select S, save data, select Q exit

g) Start the following services (if not started ...):

#httpd-K Start

#service SendMail Start

h) Add a message test account

# adduser-s/bin/false MailTest

# passwd MailTest

4 Complete the configuration, test the mail

Login http://mail.syd.com, you immediately see the login interface,......... I don't have to be wordy anymore.

Wish you all: very good times, very lucky, very healthy!

This configuration is not a graphical interface, but the configuration is quite simple, as long as the configuration of a few items on it, fool type, I do not agree with those masters of some of the "bottom" modified method, what compile, what source code, what ... That Windwos,solaris,unix and Linux constantly upgrade their GUI what to do with it? But the master is a master, I am not a master, I have nothing to master, hehe, a joke! Do not attack me Oh!

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.