(说明:这是我个人的实验过程的笔记,不清楚的可以给我留言。希望与大家交流提高。)
基于linux平台的邮件服务系统很多,这里以入门级的sendmail为例,讲解linux下的邮件服务平台的搭建,同时还引入openwebmail,使得我们可以使用linux平台下的web邮件服务系统。个人笔记,进攻参考。
1.需要安装的软件包
yum install sendmail* dovecot(receive mail) bind* caching* -y
2.配置邮件的域名解析(详见DNS服务配置内容)
3.更改local-host-names文件,添加域名
4.更改hosts文件,添加IP与域名的对应记录
5.修改sendmail.mc文件
开启SMTP的用户认证功能
开启sendmail服务器的网络接口
设置域名
6.执行命令m4 sendmail.mc > sendmail.cf生成sendmail.cf文件
7.编辑邮件访问控制文件/etc/mail/access文件
执行命令:makemap hash /etc/mail/access.db < /etc/mail/access
8.编辑邮件别名文件/etc/aliases
执行命令newaliases生成aliases.db文件
9.配置dovecot的配置文件/etc/dovecot.conf
10.启动所有服务:
service sendmail |dovecot |saslauthd |named start
==============================================================
********************test sendmail server*********************
=============================================================
telnet ip or domain 25(send mail)
helo test.com
mail from:tom@lab.me
rcpt to:jack@lab.me
data
some content
.(end sign)
=============================================================
mail -u jack(receive mail)
=============================================================
===========================
openwebmail configurations:
===========================
1.install packets:
openwebmail
openwebmail-data
perl-Compress-Zlib
perl-suidperl
perl-Text-Iconv
perl-CGI-SpeedyCGI
2.touch /var/www/cgi-bin/openwebmail/etc/dbm.conf
dbm_ext .db
dbmopen_ext .db
dbmopen_haslock no
3.init openwebmail
/var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
4.set aliase
vi /etc/httpd/conf/httpd.conf
ScriptAlias /webmail "/var/www/cgi-bin/openwebmail/openwebmail.pl"
5.restart httpd
6.some change in /var/www/cgi-bin/openwebmail/etc/openwebmail.conf
domainnames jishi.cn
default_language zh_CN.GB2312
default_iconset Cool3D.Chinese.Simplified
=======================
mail srv certification:
=======================
1.cd /etc/pki/tls/certs
make dovecot.pem
2.vi /etc/dovecot.conf
cp dovecot.pem /etc/pki/dovecot/certs
cp dovecot.pem /etc/pki/dovecot/private
3.service dovecot restart
4.mutt -f imap://it@jishi.cn
阅读(3071) | 评论(0) | 转发(0) |