Postfix Mail Server Installation configuration

Source: Internet
Author: User
Tags bind imap ldap log mail mysql

Operating system (OS) CENTOS 5.5

The message transfer agent (MTA) Postfix uses the latest version of 2.6.x

Database/directory Services MySQL 5.0 optional OpenLDAP or Netscape LDAP, this article is based on MySQL as a blueprint

Mail Delivery Agent (MDA) Maildrop 2.0.x supports filtering and powerful features

Web account Management background Extman 0.2.5 support unlimited domain names, unlimited users

POP3 server Courier-imap is sufficient for most businesses

WebMail System Extmail 1.1 support multi-language, all templating, the function is basically complete

The SMTP Authentication library Cyrus SASL standard SASL Implementation Library, which can support courier Authlib

Other data Authentication library Courier authlib 0.60 authlib is a key component of Maildrop, Courier-imap and other services.

Log analysis and display Mailgraph_ext has been included in the Extman

Web Server Apache 2.x OS self-tape

1. Install Postfix

Service SendMail Stop

Yum install httpd-devel bind bind-chroot Caching-nameserver

Uninstall does not support MySQL-certified postfix

RPM-E postfix

Install Postfix

Yum Install postfix-2.6.2-5hzq.i386.rpm

See if MySQL authentication is supported

Postconf-m

modifying postfix configuration Files

Vim/etc/postfix/main.cf

Myhostname = mail.up.com

MyDomain = up.com

Inet_interfaces = All

Mydestination = $myhostname, $mydomain, localhost

Start Postfix

Service Postfix Restart

2. Install Courier-authlib

Use Authlib to log in. This allows you to store data in a way that's not in the background. For example, MYSQL/LDAP

Yum Install Courier-authlib

Yum Install Courier-authlib-mysql

Modify Authdaemon Socket directory permissions

If the directory permissions are not properly modified, maildrop and postfix will not be able to correctly obtain the user's information and password authentication:

chmod 755/var/spool/authdaemon

cd/etc/authlib/

Vim AUTHDAEMONRC

Authmodulelist= "Authmysql"

Authmodulelistorig= "Authmysql"

Vim/etc/authlib/authmysqlrc

Mysql_server localhost

Mysql_username Extmail

Mysql_password Extmail

Mysql_socket/var/lib/mysql/mysql.sock

Mysql_port 3306

Mysql_database Extmail

Mysql_user_table Mailbox

Mysql_crypt_pwfield Password

Mysql_uid_field Uidnumber

Mysql_gid_field Gidnumber

Mysql_login_field username

Mysql_home_field concat ('/var/mailbox/', homedir)

Mysql_maildir_field concat ('/var/mailbox/', MAILDIR)

Start Courier-authlib

Service Courier-authlib Start

Create a mailbox directory

Mkdir/var/mailbox

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.