您好,欢迎来到 - 67学习网 - http://www.67xuexi.com !

linux中postfix配置安装

摘要: postfix是Wietse Venema在IBM的GPL协议之下开发的MTA(邮件传输代理)软件。postfix是Wietse Venema想要为使用最广泛的sendmail提供替代品的一个尝试,下面我们来看看postfix配置安装方法。安装Postfix 代码如下 yum install postfix system-switch-mail 设定postfix 代码如下 vi /etc/postfix/main.cf myhostname = ha.xxx.kh.edu.tw myorigin = $myhostname myorigin=
linux中postfix配置安装,标签:服务器,操作系统教程大全,http://www.67xuexi.com

   postfix是Wietse Venema在IBM的GPL协议之下开发的MTA(邮件传输代理)软件。postfix是Wietse Venema想要为使用最广泛的sendmail提供替代品的一个尝试,下面我们来看看postfix配置安装方法。

  安装Postfix

 代码如下  

yum install postfix system-switch-mail

  设定postfix

 代码如下  

vi /etc/postfix/main.cf

myhostname = ha.xxx.kh.edu.tw
myorigin = $myhostname
myorigin= xxx.kh.edu.tw
inet_interfaces = all
#inet_interfaces = local
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 163.32.X.0/24, 127.0.0.0/8
relay_domains = $mydestination

  开机启动

 代码如下  

vi /etc/rc.d/rc.local

/usr/sbin/postfix start

  安装与设定dovecot (Centos6.4)

  安装软体

 代码如下  

yum -y install dovecot
cp /etc/dovecot.conf /etc/dovecot.conf.bak
vi /etc/dovecot.conf

protocols = pop3
ssl_disable = yes

  修改dovecot收信预设位置

 代码如下  

vi /etc/dovecot/conf.d/10-mail.conf

mail_location = mbox:~/mail:INBOX=/var/mail/%u

vi /etc/dovecot/conf.d/10-auth.conf

disable_plaintext_auth = no
auth_mechanisms = plain login

  重新启动

 代码如下   service dovecot restart
chkconfig dovecot on

  设定postfix SMTP 验证

 代码如下  

vi /etc/postfix/main.cf

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination

chkconfig saslauthd on 
service saslauthd restart 
 

  病毒过滤软体 Amavisd + Clamav 防毒与垃圾信

  安装clamav amavisd-new软体

 代码如下  

yum -y install clamav amavisd-new

service clamd start

[1] [2]  下一页


Tag:服务器_操作系统教程服务器,操作系统教程大全电脑教程 - 服务器_操作系统教程