Create a mail system based on a virtual account, as shown in the following figure:
As shown in the image above: the client login mail system needs to be authenticated by the CYRUS-SASL function library account, but CYRUS-SASL cannot call MySQL, so courier-authlib must be installed to invoke MySQL.
Use Dovecot to receive when sending a message. Extmail provides a way for users to receive or send messages in a Web interface. Extman is a web interface that provides management for administrators.
Postfix default can not support the MySQL database, so you must use the source code to install Postfix
Modify Host Name:
[Root@lyt ~]# Vim/etc/sysconfig/network
[Root@lyt ~]# vim/etc/hosts
[Root@lyt named]# Init 6 #重启 to take effect on the newly established host name
[Root@lyt ~]# Vim/etc/yum.repos.d/rhel-debuginfo.repo #编辑本地yum
To build a DNS server:
[Root@lyt ~]# Mkdir/mnt/cdrom
[Root@lyt ~]# mount/dev/cdrom/mnt/cdrom/
[Root@lyt ~]# cd/mnt/cdrom/server/
[Root@lyt server]# Yum Install bind-y
[Root@lyt server]# Yum Install bind-chroot-y
[Root@lyt server]# Yum Install caching-y
[Root@lyt server]# Yum Install caching-nameserver-y
[Root@lyt server]# cd/var/named/chroot/etc/
[Root@lyt etc]# cp-p named.caching-nameserver.conf named.conf
[Root@lyt etc]# Vim named.conf