sendmail配置
1、在DNS注册(或者修改/etc/hosts文件)
添加如:192.168.100.90 classdemo.mynet.com
192.168.100.90 mynet.com
2、修改/etc/mail/local-host-names
添加域名mynet.com
3、修改主配置
/etc/mail/sendmail.mc
改两项:
127.0.0.1--0.0.0.0
去掉认证前的dnl注释
dnl #
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl #
4、生成主配置文件
cd /etc/mail
m4 sendmail.mc > sendmail.cf
5、 重启服务
service saslauthd restart
service sendmail restart
6、用户管理(建立系统帐户)
groupadd mailusers
useradd -g mailusers -s /sbin/nologin u1
7、 ll /etc/mail/access
makemap hash access.db < access
service sendmail restart
8、让用户收邮件
vi /etc/dovecot.conf
protocols = imap imaps pop3 pop3s
service dovecot restart
9、关闭selinux
vi /etc/sysconfig/selinux
SELINUX=disabled
10、安装软件包
openwebmail-2.51-1.i386.rpm
perl-CGI-SpeedyCGI-2.22-1.2.el4.rf.i386.rpm
perl-Compress-Zlib-1.34-1.2.el4.rf.i386.rpm
perl-Text-Iconv-1.4-1.2.el4.rf.i386.rpm
perl-suidperl-5.8.5-12.1.i386.rpm
11、vi /var/www/cgi-bin/openwebmail/etc/dbm.conf
dbm_ext .db
dbmopen_ext .db
dbmopen_haslock no
12、初始化OpenWebmail系统
/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
13、重启web服务器
14、通过网页访问邮件系统
http://192.168.10.59/cgi-bin/openwebmail/openwebmail.pl
15、转换为中文界面
vi /var/www/cgi-bin/openwebmail/etc/openwebmail.conf
domainnames mynet.com
default_language zh_CN.GB2312
default_iconset Cool3D.Chinese.Simplified
1、在DNS注册(或者修改/etc/hosts文件)
添加如:192.168.100.90 classdemo.mynet.com
192.168.100.90 mynet.com
2、修改/etc/mail/local-host-names
添加域名mynet.com
3、修改主配置
/etc/mail/sendmail.mc
改两项:
127.0.0.1--0.0.0.0
去掉认证前的dnl注释
dnl #
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl #
4、生成主配置文件
cd /etc/mail
m4 sendmail.mc > sendmail.cf
5、 重启服务
service saslauthd restart
service sendmail restart
6、用户管理(建立系统帐户)
groupadd mailusers
useradd -g mailusers -s /sbin/nologin u1
7、 ll /etc/mail/access
makemap hash access.db < access
service sendmail restart
8、让用户收邮件
vi /etc/dovecot.conf
protocols = imap imaps pop3 pop3s
service dovecot restart
9、关闭selinux
vi /etc/sysconfig/selinux
SELINUX=disabled
10、安装软件包
openwebmail-2.51-1.i386.rpm
perl-CGI-SpeedyCGI-2.22-1.2.el4.rf.i386.rpm
perl-Compress-Zlib-1.34-1.2.el4.rf.i386.rpm
perl-Text-Iconv-1.4-1.2.el4.rf.i386.rpm
perl-suidperl-5.8.5-12.1.i386.rpm
11、vi /var/www/cgi-bin/openwebmail/etc/dbm.conf
dbm_ext .db
dbmopen_ext .db
dbmopen_haslock no
12、初始化OpenWebmail系统
/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
13、重启web服务器
14、通过网页访问邮件系统
http://192.168.10.59/cgi-bin/openwebmail/openwebmail.pl
15、转换为中文界面
vi /var/www/cgi-bin/openwebmail/etc/openwebmail.conf
domainnames mynet.com
default_language zh_CN.GB2312
default_iconset Cool3D.Chinese.Simplified
本文转自 jxwpx 51CTO博客,原文链接:http://blog.51cto.com/jxwpx/197550,如需转载请自行联系原作者