old-www/LDP/nag2/x14903.html

202 lines
3.0 KiB
HTML

<HTML
><HEAD
><TITLE
>Generating the sendmail.cf File</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.57"><LINK
REL="HOME"
TITLE="Linux Network Administrators Guide"
HREF="index.html"><LINK
REL="UP"
TITLE="Sendmail"
HREF="x-087-2-sendmail.html"><LINK
REL="PREVIOUS"
TITLE="The sendmail.cf and sendmail.mc Files"
HREF="x14661.html"><LINK
REL="NEXT"
TITLE="Interpreting and Writing Rewrite Rules"
HREF="x14923.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Linux Network Administrators Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x14661.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 18. Sendmail</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x14923.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN14903"
>18.5. Generating the sendmail.cf File</A
></H1
><P
>&#13;When you have completed editing your <B
CLASS="COMMAND"
>m4</B
> configuration file, you must process it
to produce the <TT
CLASS="FILENAME"
>/etc/mail/sendmail.cf</TT
> file read by
<B
CLASS="COMMAND"
>sendmail</B
>. This is straightforward, as illustrated by the
following example:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SCREEN"
># <TT
CLASS="USERINPUT"
><B
>cd /etc/mail</B
></TT
>
# <TT
CLASS="USERINPUT"
><B
>m4 /usr/share/sendmail.cf/m4/cf.m4 vstout.uucpsmtp.mc &#62;sendmail.cf</B
></TT
></PRE
></TD
></TR
></TABLE
><P
>This command invokes the <B
CLASS="COMMAND"
>m4</B
> macro processor,
supplying it the name of two macro definition files to
process. <B
CLASS="COMMAND"
>m4</B
> processes the files in the order
given. The first file is a standard <B
CLASS="COMMAND"
>sendmail</B
> macro
template supplied with the <B
CLASS="COMMAND"
>sendmail</B
> source package,
the second, of course, is the file containing our own macro
definitions. The output of the command is directed to the
<TT
CLASS="FILENAME"
>/etc/mail/sendmail.cf</TT
> file, which is our target
file.</P
><P
>You may now start <B
CLASS="COMMAND"
>sendmail</B
> with the new configuration.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x14661.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x14923.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>The sendmail.cf and sendmail.mc Files</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="x-087-2-sendmail.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Interpreting and Writing Rewrite Rules</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>