作者:拍友2502891813 | 来源:互联网 | 2014-05-28 08:44
当作记录,纯的~~~mail邮局系统的MX记录这里就不再多说明了。mx记录很重要~~~直接看下面配置1.安装和配置dovecot软件yuminstall-ydovecot[root@localhostconf.d]#nslookupsettypemxabc.comServer:192.168.2.115Address:
当作记录,纯的~~~mail邮局系统的MX记录这里就不再多说明了。mx记录很重要~~~直接看下面配置
1.安装和配置dovecot软件 yum install -y dovecot
[root@localhost conf.d]# nslookup
> set type=mx
> abc.com
Server: 192.168.2.115
Address: 192.168.2.115#53
abc.com mail exchanger = 5 mail.abc.com.
> exit
[root@localhost conf.d]# dovecot -n
# 2.0.9: /etc/dovecot/dovecot.conf
# OS: Linux
2.6.32-279.el6.x86_64 x86_64 CentOS release 6.3 (Final)
disable_plaintext_auth = no
/*配置文件在/etc/dovecot/conf.d/10-auth.conf
login_trusted_networks = 0.0.0.0/0
mail_location = mbox:~/mail:INBOX=/var/mail/%u
/*配置文件在/etc/dovecot/conf.d/10-mail.conf
mbox_write_locks = fcntl
/*配置文件在/etc/dovecot/conf.d/10-mail.conf
passdb {
driver = pam
}
ssl_cert =
ssl_key =
userdb {
driver = passwd
} /*其余配置文件在/etc/dovecot/dovecot.conf
[root@localhost conf.d]#
2.安装和配置postfix软件 yum install -y postfix
(Note:postfix配置大部分在/etc/postfix/main.cf下,这里也只需配置该文件即可,根据下面对应修改就好。中英文对译,不是很难,?_?)
[root@localhost conf.d]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost,
$mydomain, mail.$mydomain, pop3.$mydomain, smtp.$mydomain,
www.$mydomain
mydomain = abc.com
myhostname = mail.abc.com
mynetworks = 192.168.2.0/24, 192.168.8.0/24, 127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
[root@localhost conf.d]# cd ..
3.创建用户进行测试 test0和test1 不多说了。使用fixmail进行测试。
客户端发送邮件测试