postfix是Wietse Venema在IBM的GPL协议之下开发的MTA(邮件传输代理)软件。postfix是Wietse Venema想要为使用最广泛的sendmail提供替代品的一个尝试。在Internet世界中,大部分的电子邮件都是通过sendmail来投递的,大约有100万用户使用sendmail,每天投递上亿封邮件。这真是一个让人吃惊的数字。Postfix试图更快、更容易管理、更安全,同时还与sendmail保持足够的兼容性。
postfix的特点:1. postfix是免费的:
postfix想要作用的范围是广大的Internet用户,试图影响大多数的Internet上的电子邮件系统,因此它是免费的。
2. 更快:
postfix在性能上大约比sendmail快三倍。一部运行postfix的台式PC每天可以收发上百万封邮件。
3. 兼容性好:
postfix是sendmail兼容的,从而使sendmail用户可以很方便地迁移到postfix。Postfix支持/var[/spool]/mail、/etc/aliases、 NIS、和 ~/.forward 文件。
4. 更健壮:
postfix被设计成在重负荷之下仍然可以正常工作。当系统运行超出了可用的内存或磁盘空间时,postfix会自动减少运行进程的数目。当处理的邮件数目增长时,postfix运行的进程不会跟着增加。
5. 更灵活:
postfix是由超过一打的小程序组成的,每个程序完成特定的功能。你可以通过配置文件设置每个程序的运行参数。
6. 安全性
postfix具有多层防御结构,可以有效地抵御恶意入侵者。如大多数的postfix程序可以运行在较低的权限之下,不可以通过网络访问安全性相关的本地投递程序等等。
应用1-Postfix邮件服务器实现通过网页访问邮箱需要借助:postfix+squirrelmail 对于系统的配置如下:
DNS指向
[root@localhost ~]# vim /etc/resolv.conf
修改主机名
[root@mail ~]# vim /etc/sysconfig/network
[root@mail ~]# vim /etc/hosts
安装DNS
rpm -ivh /mnt/cdrom/Server/bind-9.3.6-4.P1.el5.i386.rpm
rpm -ivh /mnt/cdrom/Server/bind-chroot-9.3.6-4.P1.el5.i386.rpm
rpm -ivh /mnt/cdrom/Server/caching-nameserver-9.3.6-4.P1.el5.i386.rpm
编辑DNS配置文件
[root@mail ~]# cd /var/named/chroot/etc
[root@mail etc]# cp -p named.caching-nameserver.conf named.conf
[root@mail etc]# vim named.conf
[root@mail etc]# vim named.rfc1912.zones
[root@mail var]# vim sina.com.zone
测试DNS服务,解析成功
安装postfix
[root@mail ~]# rpm -ivh /mnt/cdrom/Server/postfix-2.3.3-2.1.el5_2.i386.rpm
[root@mail ~]# vim /etc/postfix/main.cf //进行一下的修改。
添加进入身份验证的规则
重启相关的服务
[root@mail ~]# service saslauthd restart
[root@mail ~]# service postfix restart
安装需要的基于网页的软件包,并启动服务
yum install squirrelmail
service httpd start
[root@mail mail]# cd config
[root@mail config]# ./conf.pl
安装接收邮件的软件包,并启动服务
yum install dovecot
service dovecot start
启动apache服务,service httpd restart,并修改一下内容
[root@mail ~]# vim /etc/httpd/conf/httpd.conf
测试
user2登录网页版的邮箱,给user1发信件
user1登录网页版邮箱
查看邮箱。