Postfix 邮件服务器配置
 
rpm –qa | grep dovecot
vi /etc/dovecot.conf
protocols = imap imaps 改为:protocols = pop3 pop3s
保存退出
service dovecot restart  重启 dovecot 服务
rpm –qa | grep mozilla-mail
rpm –ivh mozilla-mail-17.3-18.el4.i286.rpm --aid
mozilla &
using alternatives
/etc/alternatives/
ls –l /etc/alternatives
alternatives --display mta
alternatives --config mta
system-switch-mail 图形界面
rpm –ivh system-switch-mail -*
 
Postfix 邮件
{   sendmail -compatible
speed
Ease of administrator
Security
System v-managed service
 postfix
master,nqmqr,smtpd,pickup
postfix
25 (smtp)
/etc/postfix/main.cf
porcmail
 
postfix 邮件设定
 
rpm –ivh    进行安装
alternatives --config mta 切换mail 类型
alternatives --display mta
alternatives –set mta /usr/sbin/sendmail.postfix
vi /etc/postfix/main.cf
  注释:#inet-interfaces = localhost
  开启:inet-interfaces = all
mydestination = polo.test.com, test.com
mynetworks = 192.168.1.0/24,127.0.0.0/8
myorigin = domain.com  伪装的域名
 
service postfix restart  启动postfix 服务
 其他设定档
/etc/postfix
/etc/virtual
/etc/access
/etc/aliases
 
Procmail delivery  邮件过滤
vi /postfix/main.cf
更改:mailbox-command = /usr/bin/procmail
service postfix restart
 
procmail sample configuration 过滤垃圾邮件
su polo
vi procmailrc
 :ob
 *^ subject :,*spam
 joke
 mkdir joke
 echo First test| mail –s 00spam00 mis