linux Postfix 邮件服务器配置笔记

Postfix 邮件服务器配置
 
rpm �Cqa | grep dovecot
vi /etc/dovecot.conf
protocols = imap imaps 改为: protocols = pop3 pop3s
保存退出
service dovecot restart  重启 dovecot 服务
rpm �Cqa | grep mozilla-mail
rpm �Civh mozilla-mail-17.3-18.el4.i286.rpm --aid
mozilla &
using alternatives
/etc/alternatives/
ls �Cl /etc/alternatives
alternatives --display mta
alternatives --config mta
system-switch-mail 图形界面
rpm �Civh 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 �Civh    进行安装
alternatives --config mta 切换 mail 类型
alternatives --display mta
alternatives �Cset 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 �Cs 00spam00 mis
 

你可能感兴趣的:(linux,职场,postfix,休闲)