Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Building enterprise-level mail service

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Background: two virtual machines: one as mail server (115.179) and the other as DNS server and client (115.175)

DNS server:

Set up a DNS server to resolve www and mail domain names

Install DNS software and configure / etc/named.conf, / etc/named.rf1912.zones, etc.

After the DNS server is built, point the DNS of the test machine to the IP address of the DNS server

POSTFIX server:

Install gcc

Yum install-y gcc*

Install the database and mailx

Yum install-y mysql mysql-server mailx

Start the database

Service mysqld start

Install apache

Yum install-y httpd

Create the directory you need later

Mkdir / var/www/extsuite

Decompress extmail and extman

Remove the version number

Import templates and data from / extman/docs into the database

Use the command mysql to log in to the database to view

Change the init.sql and import it into the database (last part)

Copy the template of the virtual directory to the home directory of the mail server

Create a real mapped user

Modify the main configuration file of the mail service (vim / etc/postfix/main.cf)

Virtual_mailbox_base = / home/vmail

Virtual_uid_maps = static:600

Virtual_gid_maps = static:600

Virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf

Virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf

Virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf

Restart the mail service

Service postfix restart

Send mail test:

Echo "hello" | mail-s test support@cwy.com

View:

Install dovecot POP3 service related softwar

Yum install dovecot dovecot-devel dovecot-mysql-y

Modify / etc/dovecot/conf.d/ 10-mail.conf

Maildir:/home/vmail/%d/%n/Maildir

Modify / etc/dovecot/conf.d/10-auth.conf

Modify the file that reads the data in the database (need to copy the template)

Cd / etc/dovecot/ & & cp / usr/share/doc/dovecot-2.0.9/example-config/dovecot-sql.conf.ext. /

Install telnet for receiving email

Telnet Test:

Configure the Web site

Modify / usr/local/apache/etc/conf

DocumentRoot / var/www/html

ServerName www.extmail.org

DocumentRoot / var/www/extsuite/extmail/html

ServerName mail.extmail.org

Scriptalias / extmail/cgi / var/www/extsuite/extmail/cgi

Alias / extmail/ var/www/extsuite/extmail/html

Scriptalias / extman/cgi / var/www/extsuite/extman/cgi

Alias / extman/ var/www/extsuite/extman/html

Suexecusergroup vmail vmail

Change the group owner of cgi in extmail to give vmail permission to execute

Mr. into a configuration file, and then modify the configuration file

Change the group owner of cgi in extman to give vmail permission to execute

Mr. into a configuration file, and then modify the configuration file

The following one is changed to 0

Install the software Unix-Syslog

Note: it is possible to report an error when executing perl Makefile.PL:

Solution: yum install-y perl-ExtUtils-MakeMaker

The client accesses the browser

Point to dns

When it is found that all the services have been set up and there is no problem, the page cannot be displayed properly when the web page is accessed:

Solution: yum-y install perl-CGI

Finally, it seems to log on to the web page, but the CAPTCHA cannot be brushed out.

Finally, I installed the perl* software, and I don't know what to do!

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: 245

*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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report