In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to install Postfix email WebMail configuration under Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Extmail
Extmail is a free high-performance Webmail software written in Perl language for high-capacity / ISP-level applications, mainly including ExtMail and Extman program suites. The ExtMail suite is used to provide a Web interface for logging in from the browser and using the mail system, which is provided to ordinary mail users. The Extman suite is used to provide a Web interface for managing the mail system from the browser, which is provided to the mail system administrator. It is released under the copyright of GPL. The original intention of the design is to design an IT application environment that adapts to the current rapid development, meets the changing needs of users, and can quickly develop, improve and upgrade the webmail system with strong adaptability.
Extmail is also designed as a system that can replace some mainstream webmail software at home and abroad, such as SqWebMail,OpenWebmail and squirrel,Igenus.
ExtMail Project is an active open source mail system project currently maintained by the ExtMail team. The project was officially launched on September 18, 2005. at first, it was mainly based on WebMail software, and now it has gradually formed a series of ExtMail software. The goal of the whole project is to develop an efficient, easy-to-use and vibrant mail system (scheme). According to rough statistics, as of October 2009, more than 8000 servers are running ExtMail software, of which more than 4000 are running on the Internet.
The main features of Extmail are as follows:
Support Maildir, indexing technology, super-fast support for multi-language on-screen display, real international mail support giant mailboxes (more than 1GB) massive documents support unlimited size attachments, Imax O ability strong template, multilingual, easy to modify.
Configure Extmail install Extmail [root @ localhost ~] # tar zxvf extmail-1.2.tar.gz [root@localhost ~] # mkdir-pv / var/www/extsuite [root@localhost ~] # mv extmail-1.2 / var/www/extsuite/extmail [root@localhost ~] # cd / var/www/extsuite/extmail/ [root@localhost extmail] # cp webmail.cf.default webmail.cf configure Extmail connection MySQY [root@localhost ~] # vim / var/www/extsuite/extmail/webmail.cfSYS _ CONFIG = / var/www/extsuite/extmail/ # default web page path (so a directory is created directly above) SYS_MESSAGE_SIZE_LIMIT = 5242880 # maximum mail SYS_USER_LANG = zh_CN # language option that the user can send (here changed to Chinese Default is English) SYS_MAILDIR_BASE = / var/mailbox # here is the directory where you set up the virtual user mail (modified here to / var/mailbox) SYS_MYSQL_USER = extmailSYS_MYSQL_PASS = extmailSYS_MYSQL_PASS = extmail # above to set the user name, password and database used to connect to the database server SYS_MYSQL_HOST = localhost # indicates the database server hostname By default, SYS_MYSQL_SOCKET = / var/lib/mysql/mysql.sock # indicates the database sock file. By default, if you do not use the RPM package, modify SYS_MYSQL_TABLE = mailboxSYS_MYSQL_ATTR_USERNAME = usernameSYS_MYSQL_ATTR_DOMAIN = domainSYS_MYSQL_ATTR_PASSWD = password # above to specify the table used in the user login, as well as the user name field, domain name field and user password field. The default here is SYS_AUTHLIB_SOCKET = / usr/local/courier-authlib/var/spool/authdaemon/socket # this sentence is used to indicate the location of the authdaemond socket file (modified to the default location of authlib) to configure the Httpd server
Because extmail needs to deliver local mail, the identity of the user running the apache server must be changed to the user of your mail delivery agent. In this example, the suexec feature of the apache server is turned on, so that other virtual hosts will not affect their running accounts. Therefore, the following method is used to specify the running identity of the virtual host. The MDA in this example is native to postfix and therefore will be designated as the postfix user.
[root@localhost ~] # vim / etc/httpd/conf/httpd.confServerName mail.ywnds.com:80#DocumentRoot "/ var/www/html" User vmailGroup vmailServerName mail.ywnds.comDocumentRoot / var/www/extsuite/extmail/html/ScriptAlias / extmail/cgi / var/www/extsuite/extmail/cgiAlias / extmail/ var/www/extsuite/extmail/html
Because running httpd with postfix is risky, if a Httpd server has multiple virtual hosts, you can use the suexec provided by apache to run postfix users and groups only for that virtual host, while other hosts run with apache users. Then you need to change the above virtual host to the following:
[root@localhost ~] # vim / etc/httpd/conf/httpd.conf#DocumentRoot "/ var/www/html" ServerName mail.ywnds.comDocumentRoot / var/www/extsuite/extmail/html/ScriptAlias / extmail/cgi / var/www/extsuite/extmail/cgiAlias / extmail/ var/www/extsuite/extmail/htmlSuexecUserGroup vmail vmail modify web directory permissions [root@localhost ~] # chown-R vmail.vmail / var/www/extsuite/extmail install unix-syslog
Extmail is a program written in Perl language, which requires the UNIX::syslog function of perl.
[root@localhost ~] # tar xvf Unix-Syslog-1.1.tar.gz-C / usr/src/ [root@localhost ~] # cd / usr/src/Unix-Syslog-1.1 [root@localhost Unix-Syslog-1.1] # perl Makefile.PL [root@localhost Unix-Syslog-1.1] # make & & make install starts the Httpd service [root@localhost ~] # setenforce 0 [root@localhost ~] # service httpd restart [root@localhost ~] # chkconfig httpd on
The client configures the DNS address to the DNS server we set up (192.168.60.10), or add the Hosts file, and then visit http://mail.ywnds.com, and you can see the following page.
Configure Extman to install the Extman daemon [root@localhost] # tar xvf extman-1.1.tar.gz-C / usr/src/ [root@localhost ~] # mv / usr/src/extman-1.1 / var/www/extsuite/extman modify the configuration file to meet the needs of this example [root@localhost ~] # cd / var/www/extsuite/extman/ [root@localhost extman] # cp webman.cf.default webman.cf [root@localhost extman] # vim webman. CfSYS_CAPTCHA_ON = 0 # whether the graphic verification code is enabled here If it is enabled, some dependent software will need to be installed SYS_MAILDIR_BASE = / var/mailbox # here is the directory where you set up the user mail SYS_SESS_DIR = / tmp/extmanSYS_SESS_DIR = / tmp/extman/upload # to establish the session directory By default, there is no need to establish and the owner and group must also be the master group of the Httpd process SYS_DEFAULT_UID = 1001SYS_DEFAULT_GID = 1001 # UID and GIDSYS_BACKEND_TYPE = mysql # backend connections using vmail use MysqlSYS_MYSQL_USER = webmanSYS_MYSQL_PASS = webmanSYS_MYSQL_DB = localhostSYS_MYSQL_SOCKET = / var/lib/mysql/mysql.sockSYS_MYSQL_TABLE = managerSYS_MYSQL_ATTR_USERNAME = usernameSYS_MYSQL_ATTR_PASSWD = password by default
# webman is used here, which is the user, and it needs to give full permissions, because webman is used by the daemon, and you need to create domains and users
Create webman user mysql > GRANT all privileges on extmail.* TO webman@localhost IDENTIFIED BY 'webman';mysql > GRANT all privileges on extmail.* TO webman@127.0.0.1 IDENTIFIED BY' webman';mysql > flush privileges Create / tmp/extman [root@localhost ~] # mkdir-pv / tmp/extman/upload [root@localhost ~] # chown vmail.vmail / tmp/extman modify web directory permissions [root@localhost ~] # chown-R vmail.vmail / var/www/extsuite/extman modify httpd.conf configuration file on extmail host add extman path [root@localhost ~] # vim / etc/httpd/conf/httpd.confServerName mail.ywnds.comDocumentRoot "/ var/www/extsuite/extmail/html/ "ScriptAlias / extmail/cgi / var/www/extsuite/extmail/cgiAlias / extmail/ var/www/extsuite/extmail/htmlScriptAlias / extman/cgi / var/www/extsuite/extman/cgiAlias / extman/ var/www/extsuite/extman/html restart all services [root@localhost] # service httpd restart [root@localhost] # service saslauthd restart [root@localhost] # service courier-authlib restart [root@localhost] # service dovecot restart [root@localhost] # service postfix restart [root@localhost ~] # service Named restart [root@localhost ~] # service mysqld restart [root@localhost ~] # chkconfig | egrep 'named | postfix | saslauthd | courier-authlib | dovecot | httpd | mysqld' Test webmail
All right, that's it, the whole email architecture is complete. Your Webmail and Extman can also be used. You can log in to extmail and then go to the extman backend management program to manage the mailbox server. The default account password is as follows:
Account number: root@extmail.org
Password: extmail123
Add a domain
Add two users
You can use hadoop users to send an email to openstack users to test the effect.
Other questions
1. If you want to use the check code, you need to install the perl-GD module to solve the problem that the check code is not displayed.
2.Extman-1.1 comes with the ability to graphically display logs, if you want to use the software packages Time::HiRes, File::Tail and rrdtool that need to be installed for the operation of graphical logs.
You can search and download the first two packages at http://search.cpan.org.
Install dependency package [root@localhost ~] # yum install tcl tcl-devel libart_lgpl libart_lgpl-devel install Time:: Hires [root @ localhost ~] # tar xvf Time-HiRes-1.9721.tar.gz [root@localhost ~] # cd Time-HiRes-1.9721 [root@localhost Time-HiRes-1.9721] # perl Makefile.PL [root@localhost Time-HiRes-1.9721] # make [root@localhost Time-HiRes-1.9721] # make test [root@localhost Time-HiRes -1.9721] # make install install File:: Tail[ root @ localhost ~] # tar xvf File-Tail-0.99.3.tar.gz [root@localhost ~] # cd File-Tail-0.99.3 [root@localhost File-Tail-0.99.3] # perl Makefile.PL [root@localhost File-Tail-0.99.3] # make [root@localhost File-Tail-0.99.3] # make test [root@localhost File-Tail-0.99.3] # Make install install rrdtool-1.2.23 [root@localhost ~] # tar xvf rrdtool-1.4.5.tar.gz [root@localhost ~] # cd rrdtool-1.4.5 [root@localhost rrdtool-1.4.5] #. / configure-- prefix=/usr/local/rrdtool [root@localhost rrdtool-1.4.5] # make & & make install create link [root@localhost ~] # cd / usr/local/rrdtool/lib/perl/5.10.1/x86 _ 64-linux-thread-multi/auto/RRDs/ [root@localhost RRDs] # ln-sv RRDs.so / usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi/ [root@localhost RRDs] # ln-sv / usr/local/rrdtool/lib/perl/5.10.1/RRDp.pm / usr/lib64/perl5/5.10.0/ [root@localhost RRDs] # ln-sv / usr/local/rrdtool/lib/perl/5.10.1/x86 _ 64-linux-thread-multi/RRDs.pm / usr/lib64/perl5/5.10.0/PS:Extman will look for relevant library files under these paths Copy mailgraph_ext to / usr/local [root@localhost ~] # cp-r / var/www/extsuite/extman/addon/mailgraph_ext/ / usr/local [root@localhost ~] # / usr/local/mailgraph_ext/mailgraph-init start [root@localhost ~] # / var/www/extsuite/extman/daemon/cmdserver-v-d [root@localhost ~] # echo "/ usr/local/mailgraph_ext/mailgraph-init start" > > / etc/rc.local [root@localhost ~] # echo "/ var/www/extsuite/extman/daemon/cmdserver-v-d" > > / etc/rc.local install [root@localhost ~] # yum install rrdtool rrdtool-perl if the RRD that is compiled and installed fails.
All right, then you can go to the background of extman to view the chart log. The effect is as follows:
Thank you for reading! This is the end of this article on "how to install Postfix email WebMail configuration under Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.