Developer on Alibaba Coud: Build your first app with APIs, SDKs, and tutorials on the Alibaba Cloud. Read more ＞
Article Title: RedHat8.0 Server Configuration Guide-Webmail implementation. 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.
RedHat8.0 comes with a webmail written in php, which provides a mail web Interface Based on sendmail or postfix. The configuration method is also very simple. You only need to follow the steps below, you can easily build a Web mail server for yourself.
First, if you do not select full installation, make sure that your system has at least the following RPM packages:
Squirrelmail with RedHat8.0 has a security vulnerability. Therefore, use up2date to update to the squirrelmail-1.2.8-1, or directly access www.redhat.com to obtain the updated RPM package.
# Rpm-Uvh squirrelmail-1.2.8-1.noarch.rpm
Install or upgrade
Let's not talk about anything here. The configuration file definition ServerName must be modified for apache in the RPM package. Otherwise, an alert will be reported during startup and the server cannot be found. Add ServerName YOU_IP or Domain_Name to httpd. conf.
After the squirrelmail RPM package is installed, all the page files are placed in the/usr/share/squirrelmail directory. We need to link it to the apache html directory for use, run the following command to create the link directory:
Note: cp replication won't work, because the paths of many squirrelmail files are relative paths. If you don't want to change the code yourself, you should make a solid link.
Configure the default parameters of squirrelmail
The main configuration file is config. php. In the config directory of aquirrelmail, you can directly modify this file, or use the configuration script prepared by squirrel for us to easily customize parameters. this script is conf In the config directory. pl. Run this script with the perl interpreter installed in the system.
Change 2. Server Settings --> 1. Domain: localhost is your Domain name
Change 4. General Options --> 1. Default Charset: gb2312
7. message of the Day (MOTD) --> 1 Edit the MOTD select Edit the MOTD, You can Edit a paragraph, this section will be displayed in the webmail interface, the administrator can easily publish notifications and other information through MOTD.
Change 8. plugins select all ins. Each ins you select will correspond to related functions in webmail Options, such as calendar, external pop3, filter, and spelling check. if you think some plug-ins are of little use to you, you can also remove them from the configuration file.
Start the following services:
#/Etc/init. d/httpd start
#/Etc/init. d/sendmail start
Modify disable in/etc/xinetd. d/imap to no and restart xinetd.
#/Etc/init. d/xinetd restart
Okay. Create an email test account:
# Adduser-s/bin/false test
# Passwd test
Open your browser and enter the address of your email server, for example, http: // 192.168.0.253/mail.
Enter the password of the account test and the account test in the input box to log on to the mailbox.
Set the default encoding:
After logging on, you will find that the man in the sent email cannot be properly displayed and will become such a character as a test. Obviously, the encoding is incorrect, so we need to select the character set as Chinese in Options> Display Preferences --> Language, but here we only have the Big5 encoding of Taiwan. What should we do. you have to add code by yourself. the encoding-related file is i18n in the function directory. in php, you will find that the gb2312 encoding has been commented out and removed from the comment.
$ Ages ['zh _ cn'] ['name'] = 'China ';
$ Ages ['zh _ cn'] ['charset'] = 'gb2312 ';
$ Ages ['cn'] ['Alias'] = 'zh _ cn ';
Then resend a Chinese email to check. OK
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or
reliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern or
complaint, to email@example.com. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.
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:
and provide relevant evidence. A staff member will contact you within 5 working days.