Centos streamline and quickly build Sendmail + Openwebmail

Source: Internet
Author: User
Tags dovecot
Preface * although there are many types of linux email servers and many of them have better performance than sendmail, sendmail is a good choice when we only need to simply send and receive emails and quickly set up them. I. Environment Version System version: Centos5.364-bit Sendmail version: sendmail-8.13.8-8.el5Openwebmail version: openweb

Preface * although there are many types of linux email servers and many of them have better performance than sendmail, sendmail is a good choice when we only need to simply send and receive emails and quickly set up them.

I. Environment version

System version: Centos 5.3 64-bit Sendmail version: sendmail-8.13.8-8.el5 Openwebmail version: openwebmail-2.53-3, openwebmail-data-2.53-3

II. formal installation

Download the desired version: go to the sendmail official website to download the corresponding version of the server. Yum install sendmail *-y & yum install-y perl-Compress-Zlib perl-suidperl & rpm-ivh openwebmail-data-2.53-3.i386.rpm openwebmail-2.53-3.i386.rpm perl-Text-Iconv-1.7-1.el5.rf.x86_64.rpm. Download this site from favorites: wget repository

3. configure the sendmail service:

Cp/etc/mail/sendmail. mc/etc/mail/sendmail. mc. back & cp/etc/mail/sendmail. cf/etc/mail/sendmail. cf. back & echo "mgcrazy.com">/etc/mail/local-host-names [* the final realization of http://mail.mgcrazy.com/login mailbox access] configure listening to all addresses: sed-I's/Addr = 127.0.0.1/Addr = 0.0.0.0/g'/etc/mail/sendmail. mc configuration user authentication: modify vi/etc/mail/sendmail. mc: Dnl TRUST_AUTH_MECH ('external DIGEST-MD5 login plain ') dnl define ('confauth _ ME CHANISMS ', 'external GSSAPI DIGEST-MD5 CRAM-MD5 login plain') dnl modified to TRUST_AUTH_MECH ('external DIGEST-MD5 CRAM-MD5 login plain ') dnl define ('confauth _ MECHANISMS ', 'External GSSAPI DIGEST-MD5 CRAM-MD5 login plain ') dnl removes the dnl of the first line. The sendmail configuration is complete. After modification, run the M4 Command to generate the mail configuration file m4 sendmail. mc> sendmail. cf.

4. configure SMTP and POP3 authentication:

Saslauthd service: provides the smtp Authentication service saslauthd restart to install the dovecot service, yum install? Y dovecot * remove the # Before/etc/dovecot. conf in the following line: protocols = imap imaps pop3 pop3s

5. sendmail configuration is complete

The mailbox user can use the client to send and receive mails, that is, the normal groupadd mailgroup useradd-g mailgroup? Set the password for s/sbin/nologin wugk passwd wugk. Service sendmail restart; service dovecot restart; service saslauthd restart all sendmail-related services

6. configure openwebmail

* Mail server requires web access: to achieve access address for http://mail.mgcrazy.com/, so we need to configure openwebmail, the configuration is as follows: The premise is to install httpd.

We have already installed openwebmail. by default, a folder such as/var/www/cgi-bin/openwebmail will be generated. if your apache is installed in another directory, copy openwebmail to the corresponding directory:

1. modify the openwebmail configuration as follows: all items are modified:

[Root @ localhost ~] # Vi/var/www/cgi-bin/openwebmail/etc/dbm. conf

Dbm_ext. db dbmopen_ext. db dbmopen_haslock no and then initialize./var/www/cgi-bin/openwebmail/openwebmail-too.pl? Press Y for init.
 

2. modify vi/var/www/cgi-bin/openwebmail/etc/defaults/dbm. conf.

dbm_ext                 .db   dbmopen_ext             .db   dbmopen_haslock         yes 

3. modify vi/var/www/cgi-bin/openwebmail/etc/openwebmail. conf.

domainnames                    mgcrazy.com   default_language                zh_CN.GB2312   default_iconset                 Cool3D.Chinese.Simplified

4. modify vi/var/www/cgi-bin/openwebmail/etc/default/openwebmail. conf.

Domainnames mgcrazy.com smtpserver mail.mgcrazy.com authpop3_server mail.mgcrazy.com and then execute./var/www/cgi-bin/openwebmail/openwebmail-too.pl? Press Y for init.

5. modify the configuration file in apache

The following is the apache configuration section for your reference:

 
      ServerAdmin wugk@mgcrazy.com    ServerName  mail.mgcrazy.com    DocumentRoot /usr/local/apache-2.2.13/    ScriptAlias /cgi-bin/ "/usr/local/apache-2.2.13/cgi-bin/"   
      Options Indexes FollowSymLinks    AllowOverride None    Order allow,deny    Allow from all       RewriteEngine On   ProxyPreserveHost On   RewriteRule ^/$  http://mail.mgcrazy.com/cgi-bin/openwebmail/openwebmail.pl [P,L,NC]   
  

After the configuration is completed and tested: DNS resolution has been completed, and problems have been solved by 1.1 drops, resulting in many errors. only when you do it will you understand.

The access to the http://mail.mgcrazy.com page is as follows:

 

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.