Installing the CentOS 6.5 32-bit (centos-6.5-i386) +postfix+dovecot+openwebmail passwd authenticated messaging system

Source: Internet
Author: User
Tags dovecot install perl

Install the CentOS 6.5 32-bit (centos-6.5-i386) +postfix+dovecot+openwebmail passwd authenticated messaging system.

    1. Install server partition:/boot partition at least 200M,SWAP partition physical memory 1-2 times, allocate/home/var directory to another 1 hard disk, allocate the remaining capacity of boot hard disk to/partition

    2. Select the mode of the server platform, select the editing environment separately in the component, Gnome window mode, SAMBA,VSFTPD

    3. Disable firewall, SELinux mode disable/etc/selinux/config selinux=disabled

    4. Setting up a network extranet environment

    5. Installing VNC server

RPM-IVH vnc-server-4.1.2-14.el5_6.6.x86_64.rpm

Yum Install lib*

Rpm-qa|grep VNC

tigervnc-server-1.1.0-16.el6.centos.i686

tigervnc-server-module-1.1.0-16.el6.centos.i686

tigervnc-1.1.0-16.el6.centos.i686

gtk-vnc-0.3.10-3.el6.i686


Rpm-qa |grep vsftpd

vsftpd-2.2.2-11.el6_4.1.i686


Rpm-qa |grep bind domain + SAMBA

bind-utils-9.8.2-0.17.rc1.el6_4.6.i686

bind-dyndb-ldap-2.3-5.el6.i686

samba-winbind-clients-3.6.9-164.el6.i686

bind-9.8.2-0.17.rc1.el6_4.6.i686

ypbind-1.20.4-30.el6.i686

bind-chroot-9.8.2-0.17.rc1.el6_4.6.i686

rpcbind-0.2.0-11.el6.i686

samba-winbind-3.6.9-164.el6.i686

bind-libs-9.8.2-0.17.rc1.el6_4.6.i686

packagekit-device-rebind-0.5.8-21.el6.i686


6. Installing Dovecot

Yum Install libmysqlclient*

Yum Install libmysql*

Yum Install perl*

Yum Install Dovecot

Query Software Installation Status

Rpm-qa|grep postfix

postfix-2.6.6-2.2.el6_1.i686

Rpm-qa|grep Dovecot

dovecot-2.0.9-19.el6_7.2.i686

7. Switch the MTA

Alternatives--config MTA

RPM-E SendMail

cd/usr/sbin/

Ls

MV SendMail Sendmail.bak

Newaliases

Ln-s Sendmail.postfix SendMail

cd/etc/postfix/

MV MAIN.CF Main.cf.bak

Command_directory =/usr/sbin

Daemon_directory =/usr/libexec/postfix

Myorigin = $mydomain

mydestination = $myhostname, localhost. $mydomain, localhost, $mydomain, factory.tgtex.com,office.tgtex.com

Unknown_local_recipient_reject_code = 550

Mynetworks = 127.0.0.0/8,192.168.0.0/22

Alias_maps = hash:/etc/aliases

Alias_database = hash:/etc/aliases

Header_checks = Regexp:/etc/postfix/header_checks

Debug_peer_level = 2

Debugger_command =

Path=/bin:/usr/bin:/usr/local/bin:/usr/x11r6/bin

Xxgdb $daemon _directory/$process _name $process _id & Sleep 5

Sendmail_path =/usr/sbin/sendmail.postfix

Newaliases_path =/usr/bin/newaliases.postfix

Mailq_path =/usr/bin/mailq.postfix

Setgid_group = Postdrop

Html_directory = No

Manpage_directory =/usr/share/man

Sample_directory =/usr/share/doc/postfix-2.1.5/samples

Readme_directory =/usr/share/doc/postfix-2.1.5/readme_files

Smtpd_sasl_auth_enable = yes

Smtpd_sasl_local_domain =

Smtpd_restriction_classes = local_only

Local_only = check_recipient_access Hash:/etc/postfix/local_domains,reject

Smtpd_sender_restrictions = Permit_mynetworks,reject_sender_login_mismatch,reject_non_fqdn_sender,reject_unknown _sender_domain

Smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_ Unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_ Unauth_pipelining,reject_unauth_destination,permit

Mailbox_size_limit = 1024000000

Message_size_limit = 10240000

Bounce_queue_lifetime = 1800s

Maximal_queue_lifetime = 1d

Myhostname = mail.factory.tgtex.com

MyDomain = factory.tgtex.com


Installing Openwebmail

Yum Install Openwebmail

Cd/etc/yum.repos.d

Ls

Wget-q Http://openwebmail.org/openwebmail/download/redhat/rpm/release/openwebmail.repo

Yum Install Openwebmail

Ls

Yum Install Openwebmail.repo

Yum Install Openwebmail

Rpm-qa |grep Openwebmail

Openwebmail-2.53-6.el6.noarch

Openwebmail-data-2.53-6.el6.noarch

8. Install the Webmin ( you must install the Samba,dovecot,postfix,openwebmail before installing the Webmin, otherwise the Web page can not manage the function of these software )

RPM-IVH webmin-1.791-1.noarch.rpm

less/etc/webmin/miniserv.conf Disabling SSL ssl=0

9. Initialize Openwebmail

/var/www/cgi-bin/openwebmail/openwebmail-tool.pl--init

Netstat-lnt

Less/var/log/maillog

Service Postfix Restart

Less/var/log/maillog

Postfix postmap Creating a domain name file

less/etc/postfix/local_domains{

factory.tgtex.com OK

mail.factory.tgtex.com OK


Postmap Hash:/etc/postfix/local_domains

Modified: Postfix Configuration-General Options:

Domain to accept mail: $myhostname, localhost. $mydomain, localhost, $mydomain, factory.tgtex.com,office.tgtex.com

Internet host name for this mail system: mail.factory.tgtex.com

Local Internet domain name:factory.tgtex.com

Local network: 127.0.0.0/8,192.168.0.0/22


11. Modify less/etc/dovecot/conf.d/10-mail.conf Mailbox Directory parameters

Mail_location = mbox:~/mail:inbox=/var/spool/mail/%u


Modify in Web page: Dovecot protocol support Option IMAP,POP3,LMTP,

User authentication method:

Password authentication Source:unix passwd file

Authentication Methods:plain-text


Directory index of the default server for Apache server

Directory index files:/cgi-bin/openwebmail/openwebmail.pl


13.

Groupadd Dovenull

Useradd-m dovenull-s/sbin/nologin-g Dovenull

Groupadd Dovecot

Useradd-m dovecot-s/sbin/nologin-g Dovecot


14. Modify the text template under Openwebmail home page

Less/var/www/cgi-bin/openwebmail/etc/openwebmail.conf

<page_footer>

Tianjin Tiange Mail System

</page_footer>

Default language for writing Web pages

# Display Preference

Default_style Default

Default_iconset Cool3D.Chinese.Simplified



WEBMIN Network--Network configuration--dns Customer--Parse order hosts File,dns

This option can send and receive mail as long as the hostname of the machine is normal.


after setting up the CentOS gateway, you must be able to access the extranet, otherwise: Mail client send mail wait about 15 seconds, vsftpd FTP landing also affected. Or do not set the gateway, there is no such problem.


This article is from the "@ Fast unblocked @" blog, make sure to keep this source http://speediness.blog.51cto.com/760841/1775878

Installing the CentOS 6.5 32-bit (centos-6.5-i386) +postfix+dovecot+openwebmail passwd authenticated messaging system

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.