当作记录,纯的~~~mail邮局系统的MX记录这里就不再多说明了。mx记录很重要~~~直接看下面配置 1.安装和配置dovecot软件 yum install -y dovecot
2.安装和配置postfix软件 yum install -y postfix (Note:postfix配置大部分在/etc/postfix/main.cf下,这里也只需配置该文件即可,根据下面对应修改就好。中英文对译,不是很难,〒_〒)[root@localhost conf.d]# nslookup> set type=mx> abc.comServer: 192.168.2.115Address: 192.168.2.115#53abc.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.conflogin_trusted_networks = 0.0.0.0/0mail_location = mbox:~/mail:INBOX=/var/mail/%u /*配置文件在/etc/dovecot/conf.d/10-mail.confmbox_write_locks = fcntl /*配置文件在/etc/dovecot/conf.d/10-mail.confpassdb {driver = pam}ssl_cert = </etc/pki/dovecot/certs/dovecot.pemssl_key = </etc/pki/dovecot/private/dovecot.pemuserdb {driver = passwd} /*其余配置文件在/etc/dovecot/dovecot.conf[root@localhost conf.d]#
3.创建用户进行测试 test0和test1 不多说了。使用fixmail进行测试。 [caption id="" align="alignleft" width="717"][root@localhost conf.d]# postconf -nalias_database = hash:/etc/aliasesalias_maps = hash:/etc/aliasescommand_directory = /usr/sbinconfig_directory = /etc/postfixdaemon_directory = /usr/libexec/postfixdata_directory = /var/lib/postfixdebug_peer_level = 2html_directory = noinet_interfaces = allinet_protocols = allmail_owner = postfixmailq_path = /usr/bin/mailq.postfixmanpage_directory = /usr/share/manmydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, pop3.$mydomain, smtp.$mydomain, www.$mydomainmydomain = abc.commyhostname = mail.abc.commynetworks = 192.168.2.0/24, 192.168.8.0/24, 127.0.0.0/8mynetworks_style = subnetmyorigin = $mydomainnewaliases_path = /usr/bin/newaliases.postfixqueue_directory = /var/spool/postfixreadme_directory = /usr/share/doc/postfix-2.6.6/README_FILESrelay_domains = $mydestinationsample_directory = /usr/share/doc/postfix-2.6.6/samplessendmail_path = /usr/sbin/sendmail.postfixsetgid_group = postdropunknown_local_recipient_reject_code = 550[root@localhost conf.d]# cd ..
想维护起一个邮件服务器并不是很简单的事情,我还是用了腾讯企业邮箱
回复取消回复不太熟悉。反正我的wordpress搭建了lnmp环境之后就什么也没做。照样可以收发邮件。
回复取消回复你好 我用的是CentOS6.4的系统 我安装了postfix和dovecot也配置了 不知道为什么 出现用户帐号密码正确而无法登入的问题 麻烦给个解决思路 谢谢
回复取消回复可以命令 tail -f 直接查看日志情况先。IPtables有没有放行。
回复取消回复