Centos 6.2 Department of Extmail E-mail Tutorials

Source: Internet
Author: User
Tags mail centos mail account phpmyadmin vmail

Extmail is a Perl language, for High-volume/isp applications, free high-performance webmail software, mainly including Extmail, Extman two parts of the program suite. The Extmail Suite is used to provide a web interface for logging in from a browser and using the messaging system, while the Extman suite is used to provide a web interface for managing messaging systems from a browser. It is released with the GPL copyright, designed to be designed to adapt to the current rapid development of IT application environment, to meet the changing needs of users, can quickly develop, improve and upgrade, adapt to strong webmail system.

Extmail, this linux based webmail software, I also tested in the virtual machine today, because the performance of the computer is not good, leading to compile what is time-consuming, to the end, and even affect my mood, at the end of this deployment, coupled with the communication process with friends, The discovery of this messaging system, the information available in China and the amount of support that can be received is very small (personal insights) so about the mail-poisoned gateway and subsequent operations, I do not intend to continue to study, and, in addition, thank Bo Lord Cut the Moon and bloggers I for the technical mania, the former article in my deployment to solve a lot of confusion, The latter will save me from the confusion of ideas!

The specific steps to deploy are as follows:

This environment is based on CentOS 6.2 lamp architecture. If you need my lamp the deployment process of the architecture can refer to my other blog post "schematic" lamp compile installation

1: Use the authentication library, you can use MySQL to verify the mail account

[Root@chenyi1 phpmyadmin]# tar jxf/chenyi/courier-authlib-0.63.0.tar.bz2-c/usr/src/
[Root@chenyi1 phpMyadmin]# cd/usr/src/courier-authlib-0.63.0/
[root@chenyi1 courier-authlib-0.63.0]# groupadd postfix-g 1000
[ Root@chenyi1 courier-authlib-0.63.0]# groupadd vmail-g 1001
[Root@chenyi1 courier-authlib-0.63.0]# Groupadd Postdrop-g 1002
[root@chenyi1 courier-authlib-0.63.0]# Useradd-  u 1001-  g 1000 Vmail
[root@chenyi1 courier-authlib-0.63.0]# Useradd-  u 1000-  g 1000 postfix
[root@chenyi1 courier-authlib-0.63.0]# ID Vmail

View the appropriate user group relationships

uid=1001 (Vmail) gid=1000 (postfix) group =1000 (postfix)
[root@chenyi1 courier-authlib-0.63.0]# ID postfix
uid= 1000 (postfix) gid=1000 (postfix) group =1000 (Postfix)

Pre-configured

[Root@chenyi1 courier-authlib-0.63.0]#./configure    --prefix=/usr/local/courier-authlib--with-mailuser=vmail- -with-mailgroup=vmail   --sysconfdir=/etc    --without-authpam    --without-authldap    --without-authpwd    --without-authshadow    --without-authvchkpw--without-authpgsql--with-authmysql    --with-mysql-libs=/ Usr/local/mysql/lib/mysql    --with-mysql-includes=/usr/local/mysql/include/mysql--with-redhat    -- WITH-AUTHMYSQLRC=/ETC/AUTHMYSQLRC--WITH-AUTHDAEMONRC=/ETC/AUTHDAEMONRC    cflags= "-march=i686-o2- Fexpensive-optimizations "cxxflags="-march=i686-o2-fexpensive-optimizations "

If there is no error in the configuration process, then you can compile, install.

[Root@chenyi1 courier-authlib-0.63.0]# make && make install

Update dynamic link library (similar operation later, no explanation)

[Root@chenyi1 courier-authlib-0.63.0]# echo  '/usr/local/courier-authlib/lib/courier-authlib/' >>/etc/ ld.so.conf  
[Root@chenyi1 courier-authlib-0.63.0]# Ldconfig

Note: If you are a 64-bit system, you need to modify i686 to x86-64, and the meaning of the various compilation options can be used./configure--help to get

2: Modify the Authlib Library related configuration file

[Root@chenyi1 courier-authlib-0.63.0]# CP/ETC/AUTHDAEMONRC.DIST/ETC/AUTHDAEMONRC
[root@chenyi1 courier-authlib-0.63.0]# grep-v ' ^# '/ETC/AUTHDAEMONRC | Grep-v ' ^$ '
authmodulelist= "Authmysql"				is a valid configuration after grep filtered
authmodulelistorig= "Authmysql"
daemons=5
Authdaemonvar=/usr/local/courier-authlib/var/spool/authdaemon
Debug_login=0
defaultoptions= ""
loggeropts= "
[root@chenyi1 courier-authlib-0.63.0]# cp/etc/ AUTHMYSQLRC.DIST/ETC/AUTHMYSQLRC
[root@chenyi1 courier-authlib-0.63.0]# grep-v ' ^# '/etc/authmysqlrc | grep-v ' ^ $ '
mysql_server		127.0.0.1
mysql_username		extmail
mysql_password
Itchenyi Mysql_socket		/tmp/mysql.sock
mysql_port		3306
mysql_opt		0
mysql_database		Extmail
mysql_user_table	mailbox
mysql_crypt_pwfield	password		Mysql_uid_field 1001
Mysql_gid_field		1001
mysql_login_field username Mysql_home_field	('/ Email/mailbox/', homedir)
Mysql_name_field	NAME
mysql_maildir_field	concat ('/email/mailbox/ ', Maildir)

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.