📄 1368.html
字号:
<A href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</A> | <A href="copyright.html" tppabs="http://www.linuxhero.com/docs/copyright.html">版权说明</A></font></DIV>
</TD>
<TD><IMG height=22 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1
border=0></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=10 cellPadding=0 width="100%" bgColor=#ffffff
border=0>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
<TR>
<TD vAlign=top align=middle width="60%">
<TABLE cellSpacing=0 cellPadding=0 width="100%"
background="images/back.gif" tppabs="http://www.linuxhero.com/docs/images/back.gif" border=0>
<TBODY>
<TR>
<TD vAlign=top width="80%">
<DIV align=center>
<FORM action="search.html" tppabs="http://www.linuxhero.com/docs/search.html" method=get>
</FORM>
<TABLE cellSpacing=0 cellPadding=0 width="95%"
border=0><TBODY>
<TR>
<TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif"
height=30></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=3 width="95%"
align=center border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=3 width="100%"
border=0>
<TBODY>
<TR>
<TD vAlign=top>
<p><FONT class=normalfont><B><font color=blue>Red Hat Postfix中文FAQ</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:作者<br>来自:Linux知识宝库<br>联系方式:无名<br><br>1,Q:我从哪儿可以得到postfix的RPM安装包?<br>
A:http://www.pobox.com/~sjmudd/postfix<br>
<br>
2,Q:我下载的RPM安装包,但是在安装过程中出现了一个错误无法继续安装?<br>
A:Postfix是用来替代sendmail的,除非你用源码进行安装,否则,sendmail和postfix是不能同时存在在一个系统上的。要想解决这个问题,<br>
<br>
必须要把sendmail删掉,但删除之前,最好对sendmail做一个备份。以root身份登录:<br>
mkdir /root/sendmail-old<br>
cp /etc/aliases /root/sendmail-old<br>
cp /etc/sendmail.cf /root/sendmail-old<br>
cp /etc/sendmail.cw /root/sendmail-old<br>
cp /etc/mail/* /root/sendmail-old<br>
rpm -e sendmail sendmail-doc sendmail-cf --nodeps(在卸载sendmail的时候可能会有一些错误,用--nodeps可以不显示错误信息)<br>
killall sendmail<br>
rpm -Uvh postfix-postfix-1.1.11-5.i386.rpm<br>
<br>
3:Q:我是用的Red Hat Linux 7.3以上的版本,sendmail和postfix都已经安装上了,但系统现在用的是sendmail,我应该怎么办?<br>
A:在Red Hat Linux 7.3以上的版本提供了两个MTA软件:sendmail和postfix,默认情况下,系统用的是sendmail,如果你想用postfix,你可<br>
<br>
以在图形界面下,GNOME选择Main Menu Button (就是左下角的大按纽) => Programs => System => Red Hat Mail Transport Agent Switcher<br>
<br>
。KDE选择Main Menu Button (就是左下角的大按纽) System => Red Hat Mail Transport Agent<br>
<br>
Switcher。也可以在终端里输入指令redhat-switchmail(8.0下应该是redhat-config-switchmail),如果这时没有启Xwindow系统,程序会自动<br>
<br>
把Xwindow系统启来,你可以用redhat-switchmail-nox来强制让程序运行在text模式下。在这个程序里你可以选择你所要用的MTA软件,是send<br>
<br>
mail还是postfix,如果想用postfix,选中postfix,保存退出。<br>
/sbin/service sendmail stop 停止sendmail服务<br>
/sbin/service postfix start 启动postfix服务<br>
这样系统的MTA就换成postfix了。<br>
<br>
4,Q:安装完成了,我应该怎么来配置呢?<br>
A:postfix的配置文件位于/etc/postfix目录下,一共有四个最基本的配置文件:install.cf main.cf master.cf postfix-script。mail.cf<br>
<br>
:是postfix主要的配置文件。Install.cf:包含RPM包安装过程中安装程序产生的postfix初始化设置。master.cf:是postfix的master进程的<br>
<br>
配置文件,该文件中的每一行都是用来配置postfix的组件进程的运行方式。postfix-script:这个里面包含了一些postfix命令,以便我们在l<br>
<br>
inux环境中安全地执行这些postfix命令。这些配置文件你只需要对/etc/postfix/mail.cf时行配置就可以了。<br>
<br>
5,Q:我以前sendmail下的aliases怎么办?<br>
A:你可以把安装postfix前备份的sendmail的aliases文件拷贝到/etc/postfix/aliases,如果确认配置没有什么问题并且在mail.cf中的配置<br>
<br>
是正确的,就输入newaliases把文件转换成db文件就OK了。<br>
<br>
6,Q:我使用了majordomo,并且我的所有aliases都在/etc/mail/majordomo里,我应该怎么办?<br>
A:把你以前用的majordomo文件可以拷贝到/etc/postfix/majordomo,并且保证在mail.cf中#alias_database = hash:/etc/aliases,<br>
<br>
hash:/opt/majordomo/aliases这一行是没有被注释掉的,修改这一行为#alias_database =<br>
<br>
hash:/etc/aliases,hash:/etc/postfix/majordomo,保存退出后,运行newaliases,如果你使用了bulk_mailer,你还需要对你的majordomo<br>
<br>
aliases做一些修改。<br>
<br>
7,Q:postfix用的是什么mail delivery agent (MDA)?<br>
A:postfix可以配置来用不同的MDA软件,在Red Hat Linux下默认的MDA软件是procmail,procmail对于Red Hat Linux和postfix是非常好用<br>
<br>
的,没有理由去使用其它的MDA软件。你可以用rpm -q procmail检查你的系统是否安装了procmail。<br>
<br>
8,Q:对于postfix的安全性,我如何让postfix不响应verify请求?<br>
A:在默认的情况下,postfix是不对verify请求响应的。不充许通过发通电子邮件来探知用户是否存在。可以看下面的例子:<br>
[root@linuxserver /]# telnet localhost 25<br>
Trying 127.0.0.1...<br>
Connected to localhost.<br>
Escape character is '^]'.<br>
220 linuxserver.test.com ESMTP Postfix PostFix-v.2000<br>
helo localhost<br>
250 linuxserver.test.com<br>
vrfy testuser<br>
252 Send mail to find out<br>
quit<br>
221 Bye<br>
Connection closed by foreign host.<br>
[root@linuxserver /]#<br>
<br>
9,Q:在sendmail中我的设置有的虚拟域,在postfix下我如何来用呢?<br>
A:在postfix中使用虚拟域要比sendmail的配置方便多了,它没有用m4来处理,是一些简单易懂的E文。首先在/etc/postfix/mail.cf中要配<br>
<br>
置上你的虚拟域为正确的转发和接收域,修改/etc/postfix/main.cf中的mydestination参数,缺省地,postfix接受符合以下条件的邮件:目<br>
<br>
的地为$inet_interfaces的邮件、目的地为$mydestination的邮件、目的地为$virtual_maps的邮件。修改/etc/postfix/mail.cf文件中的参数<br>
<br>
virtual_maps=hash:/etc/po stfix/virtual,如果/etc/postfix/virtual不存在,就新创建一个,下面是一个virtual文件的示例:<br>
[root@linuxserver /]cat /etc/postfix/virtual<br>
linux.net, abc.com, cc123.org, ppp.com<br>
<br>
10,Q:postfix中我如何让我的配置生效?<br>
A:以root用户身份 postfix reload<br>
<br>
11,Q:postfix中我如何刷新邮件队列?<br>
A:以root用户身份 postfix flush<br>
<br>
12,Q:我必须使用一些map文件,来设置access文件和mailertable,我如何把这些转换成.db格式?<br>
A:以root用户身份 postmap /etc/postfix/access postmap 或 /etc/postfix/mailertable<br>
<br>
13,Q:我如何让postfix开机后自己运行?<br>
A:你可以通过ntsysv工具,选中postfix<br>
<br>
14,Q:我如何设置postfix的队列延迟?<br>
A:你可以在postfix的主要配置文件/etc/postifx/main.cf中修改下列参数:<br>
queue_run_delay (默认值 1000秒) 设置多长时间队列管理进程去扫描无法投递的邮件<br>
Maximal_queue_lifetime (默认值 5天) 设置邮件在队列里的最长时间<br>
Minimal_backoff_time (默认值 1000秒) 在这个时间内,邮件不能够被锁定<br>
Maximal_backoff_time (默认值 4000秒) 在这个时间之后,如果邮件仍然没有被投递,就认为是无法投递<br>
qmgr_message_recipient_limit (默认值 1000)<br>
<br>
15,Q:如何禁止postfix对客户端IP作反向域名解析?<br>
A:以root用户身份登录<br>
postconf -e disable_client_dns_lookup = 1
postfix reload
</FONT><br>
</TD>
</TR>
<TR>
<TD colSpan=2><FONT
class=middlefont></FONT><BR>
<FONT
class=normalfont>全文结束</FONT> </TD>
</TR>
<TR>
<TD background="images/dot.gif" tppabs="http://www.linuxhero.com/docs/images/dot.gif" colSpan=2
height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD>
<TD vAlign=top width="20%"
background="images/line.gif" tppabs="http://www.linuxhero.com/docs/images/line.gif" rowSpan=2>
<DIV align=center>
<table class=tableoutline cellspacing=1 cellpadding=4
width="100%" align=center border=0>
<tr class=firstalt>
<td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colspan=2 height=21>
<font class=normalfont><b>所有分类</b></font></td>
</tr>
<tr class=secondalt> <td noWrap width=27%> <font class=normalfont>1:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type1.html" tppabs="http://www.linuxhero.com/docs/type1.html">非技术类</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>2:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>3:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type3.html" tppabs="http://www.linuxhero.com/docs/type3.html">指令大全</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>4:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type4.html" tppabs="http://www.linuxhero.com/docs/type4.html">shell</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>5:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type5.html" tppabs="http://www.linuxhero.com/docs/type5.html">安装启动</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>6:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type6.html" tppabs="http://www.linuxhero.com/docs/type6.html">xwindow</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>7:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type7.html" tppabs="http://www.linuxhero.com/docs/type7.html">kde</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>8:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type8.html" tppabs="http://www.linuxhero.com/docs/type8.html">gnome</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>9:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type9.html" tppabs="http://www.linuxhero.com/docs/type9.html">输入法类</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>10:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type10.html" tppabs="http://www.linuxhero.com/docs/type10.html">美化汉化</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>11:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type11.html" tppabs="http://www.linuxhero.com/docs/type11.html">网络配置</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>12:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type12.html" tppabs="http://www.linuxhero.com/docs/type12.html">存储备份</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>13:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type13.html" tppabs="http://www.linuxhero.com/docs/type13.html">杂项工具</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>14:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type14.html" tppabs="http://www.linuxhero.com/docs/type14.html">编程技术</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>15:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type15.html" tppabs="http://www.linuxhero.com/docs/type15.html">网络安全</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>16:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type16.html" tppabs="http://www.linuxhero.com/docs/type16.html">内核技术</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>17:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type17.html" tppabs="http://www.linuxhero.com/docs/type17.html">速度优化</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>18:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type18.html" tppabs="http://www.linuxhero.com/docs/type18.html">apache</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>19:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>20:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type20.html" tppabs="http://www.linuxhero.com/docs/type20.html">ftp服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>21:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type21.html" tppabs="http://www.linuxhero.com/docs/type21.html">cvs服务</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>22:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type22.html" tppabs="http://www.linuxhero.com/docs/type22.html">代理服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>23:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type23.html" tppabs="http://www.linuxhero.com/docs/type23.html">samba</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>24:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type24.html" tppabs="http://www.linuxhero.com/docs/type24.html">域名服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>25:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type25.html" tppabs="http://www.linuxhero.com/docs/type25.html">网络过滤</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>26:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type26.html" tppabs="http://www.linuxhero.com/docs/type26.html">其他服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>27:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type27.html" tppabs="http://www.linuxhero.com/docs/type27.html">nfs</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>28:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>29:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type29.html" tppabs="http://www.linuxhero.com/docs/type29.html">dhcp</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>30:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type30.html" tppabs="http://www.linuxhero.com/docs/type30.html">mysql</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>31:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type31.html" tppabs="http://www.linuxhero.com/docs/type31.html">php</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>32:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type32.html" tppabs="http://www.linuxhero.com/docs/type32.html">ldap</a></font></td> </tr> </table></td></tr> </table>
</DIV></TD></TR>
<TR vAlign=top>
<TD width="80%">
<DIV align=center><BR>
</DIV>
</TD></TR></TBODY></TABLE></TD></TR>
</TABLE></TD></TR>
</TABLE>
<TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#eeeeee
border=0><TBODY>
<TR>
<TD width="50%">
<P><FONT class=middlefont>版权所有 © 2004 <A
href="mailto:bjchenxu@sina.com">linux知识宝库</A><BR>
违者必究. </FONT></P>
</TD>
<TD width="50%">
<DIV align=right><FONT class=middlefont>Powered by: <A
href="mailto:bjchenxu@sina.com">Linux知识宝库</A> Version 0.9.0 </FONT></DIV>
</TD></TR></TBODY></TABLE>
<CENTER></CENTER></TD></TR>
</TABLE></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -