荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: Lg (创造人生的传奇), 信区: Linux
标  题: Red Hat Postfix FAQ
发信站: BBS 荔园晨风站 (Fri Oct 20 22:18:34 2000), 站内信件

在redhat网站上逛时随手做的阅读笔记,不是很全,象PPP,虚拟域这些
就不记了。

Red Hat Postfix FAQ

如果是安装postfix的RPM版本,那么和sendmail不能共存。
可以先移除sendmail:
(as root)
   mkdir /root/sendmail-old
   cp /etc/aliases /root/sendmail-old/
   cp /etc/sendmail.cf /root/sendmail-old/
   cp /etc/sendmail.cw /root/sendmail-old/
   cp /etc/mail/* /root/sendmail-old/
   rpm -e sendmail sendmail-doc sendmail-cf --nodeps
   killall sendmail
   rpm -Uvh postfix-19990906_pl07.i586.rpm

配置文件在/etc/postfix
install.cf main.cf master.cf postfix-script
main.cf 首要配置文件,相当sendmail.cf
The install.cf file contains the initial settings for Postfix
which were set up during the RPM installation.
The file master.cf is Postfix' master process configuration
file. Each line in the master file describes how a mailer
component program should be run.
The postfix-script is a wrapper used by Postfix to execute
Postfix commands safely for the Linux environment.

aliases文件
将备份的sendmail的aliases文件拷贝到/etc/postfix/aliases,
然后执行newaliases生成db文件

verify requests
缺省就禁止了这个指令

重新读取配置文件
postfix reload

flush queue
postfix flush

hash them to db
postmap /etc/postfix/access,
or postmap /etc/postfix/mailertable

在queue中删除bounced mail, queue-id应该类似DB6831A80B
postfix stop
find /var/spool/postfix -name queue-id -print | xargs rm
postfix start

log analysis tool for Postfix
pflogsumm.pl written by James S. Seymour
http://jimsun.linxnet.com/postfix_contrib.html
0 2 * * * /path/to/pflogsumm.pl -d today \
/var/log/maillog | mail -s "Mail Report" you@somewhere.com

邮件列表
echo subscribe postfix-users | mail majordomo@postfix.org

--
☆ 来源:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: bbs@61.141.68.195]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店