分类: LINUX
2011-01-25 09:29:17
1 DNS支持 在正向中要有
IN NS a.com.
mail IN A 192.168.18.152
a.com. IN MX 10 mail.a.com.
修改本机名
2 先停sendmail
chkconfig --level 345 sendmail off
3 安装cyrus-sasl-2
改/etc/sysconfig/saslauthd中
MECH=shadow
ps aux|grep saslauthd
/etc/init.d/saslauthd start
chkconfig --level 345 saslauthd on
4 安装postfix改配置
配置/etc/postfix/main.cf
==============================
#修改
myhostname = mail.gdvcp.net
mydomain = gdvcp.net
myorigin = $mydomain
inet_interfaces = all
mydestination = $mydomain,$myhostname
mynetworks = 192.168.18.0/24
relay_domain = gdvcp.net
#追加
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = ''
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
broken_sasl_auth_clients = yes
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_options = noanonymous
==============================
/etc/init.d/postfix start
chkconfig --level 345 postfix
用telnet mail.abc.com 25 测试
ehlo abc.com
5 安装pop IMAP
安装
perl-DBI-1
mysql-5
dovecot-1
修改配置/etc/dovecot.conf
20 35 36 38
/etc/init.d/dovecot start
chkconfig --level 345 dovecot on
6 安装7个包
cyrus-imapd-perl-2
cyrus-imapd-utils-2
db4-utils-4
lm_sensors-2
net-snmp-libs-
cyrus-imapd-2
cyrus-imapd-devel-2
配置/etc/postfix/main.cf 取消456行注释
milbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
/etc/init.d/cyrus-imapd start
chkconfig --level 345 cyrus-imapd on
建立用户
给cyrus密码
/usr/bin/cyradm -u cyrus 主机名
cm user.用户名
cm user.用户名.Send
cm user.用户名.Trash
cm user.用户名.Drafts
setquota user.用户名 容量(k)
7 安装web
yum install squirrelmail
/usr/share/squirrelmail/config/conf.pl
改D中cyrus
改2中域名和SMTP
改4中5 为true
改10语言为zh_CN 库为gb2312
保存退出
修改/etc/httpd/conf/httpd.conf中
ServerName 本机名
/etc/init.d/httpd restart
chkconfig --level 345 httpd on