⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doc041.htm

📁 Reh Hat user manual. really goooood
💻 HTM
字号:
<html><body><a href="doc042.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc040.html"><img src=../icons/previous.gif alt="Previous"></a><a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a><a href="doc123.html"><img src=../icons/index.gif alt="Index"></a><hr><h2><a name="s5.5">5.5 Sendmail</a></h2><title>Sendmail</title><a name="i124">A default <tt>sendmail.cf</tt> file will be installed in <tt>/etc</tt>.The default configuration should work for most SMTP-only sites.It will <em>not</em> work for UUCP sites; you will need to generatea new <tt>sendmail.cf</tt> if you need to use UUCP mail transfers.<a name="i125">To generate a new <tt>sendmail.cf</tt>, you will need to install <tt>m4</tt> and thesendmail source package.  Read the <tt>README</tt> filein the sendmail sources for more details oncreating <tt>sendmail</tt> configuration files.  Also, O'Reilly & Associatespublishes a good sendmail reference entitled <em>sendmail</em> by Bryan Costales.<a name="i126"> <a name="i127"><p>One common sendmail configuration is to have a single machine act asa mail gateway for all the machines on your network.  For instance,at Red Hat Software we have a machine <tt>mail.redhat.com</tt> that does allour mail.  On that machine we simply need to add the names of machinesfor which <tt>mail.redhat.com</tt> will handle mail to <tt>/etc/sendmail.cw</tt>.Here is an example:<a name="i128"><blockquote><pre># sendmail.cw - include all aliases for your machine here.torgo.redhat.compoodle.redhat.comdevel.redhat.com</pre></blockquote><p>Then on the other machines, <tt>torgo</tt>, <tt>poodle</tt>, and <tt>devel</tt>,we need to edit <tt>/etc/sendmail.cf</tt> to ``masquerade'' as<tt>mail.redhat.com</tt>when sending mail, and to forward any local mail processing to<tt>redhat.com</tt>.  Find the <tt>DH</tt> and <tt>DM</tt> lines in<tt>/etc/sendmail.cf</tt> and edit them thusly:<p><blockquote><pre># who I send unqualified names to (null means deliver locally)DRmail.redhat.com# who gets all local email traffic DHmail.redhat.com# who I masquerade as (null for no masquerading)DMredhat.com</pre></blockquote><p><a name="i129">With this type of configuration, all mail sent will appear as if it weresent from <tt>redhat.com</tt>, and any mail sent to <tt>torgo.redhat.com</tt>or the other hosts will be delivered to <tt>mail.redhat.com</tt>.<p>Please be aware that if you configure your system to masquerade as another any email sent from your system to your system will be sent to the machine you are masquerading as.  For example, in the above illustration, log files that are periodically sent to <tt>root@poodle.redhat.com</tt> by the <tt>cron</tt> daemon would be sent to <tt>root@mail.redhat.com</tt>.  <p><p><hr><a href="doc042.html"><img src=../icons/next.gif alt="Next"></a><a href="doc000.html"><img src=../icons/up.gif alt="Up"></a><a href="doc040.html"><img src=../icons/previous.gif alt="Previous"></a><a href="doc000.html"><img src=../icons/contents.gif alt="Contents"></a><a href="doc123.html"><img src=../icons/index.gif alt="Index"></a><hr></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -