Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > by-pkgid > 0d5cd12c82d627a82c59047e1ba7b8a9 > files > 1641

howto-html-fr-9.0-0.2mdk.noarch.rpm

<HTML>
<HEAD>
<TITLE>Configuration de sendmail</TITLE>
</HEAD>
<BODY>
<H1>7. <A NAME="s7"></A>Configuration de sendmail</H1>
<P>
<A HREF="Cyrus-IMAP.html#toc7">Contenu de cette section</A></P>

<P>T&eacute;l&eacute;chargez le source de sendmail si vous ne l'avez pas d&eacute;j&agrave;. Outre
utiliser IMAP, vous pouvez faire des choses amusantes comme configurer
l'anti-spam.</P>
<P>Voici mon fichier mc. Il d&eacute;livrera le mail &agrave; IMAP sauf s'il y a une 
entr&eacute;e de l'utilisateur dans le fichier <CODE>/etc/sendmail.cN</CODE>. Cela
permet aux comptes syst&egrave;mes comme root de garder leur courrier dans le 
spool; Cependant, les comptes utilisateurs utilisent IMAP par d&eacute;faut.
Ne pas faire un simple copier/coller de ce code car sendmail n'appr&eacute;ciera
pas les espaces utilis&eacute;s &agrave; la place des tabulations:</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
 divert(-1)
  #
  #       (C) Copyright 1995 by Carnegie Mellon University
  #
  #                      All Rights Reserved
  #
  # Permission to use, copy, modify, and distribute this software and its
  # documentation for any purpose and without fee is hereby granted,
  # provided that the above copyright notice appear in all copies and that
  # both that copyright notice and this permission notice appear in
  # supporting documentation, and that the name of CMU not be
  # used in advertising or publicity pertaining to distribution of the
  # software without specific, written prior permission.
  #
  # CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  # ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  # CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  # ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  # WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  # ARISING OUT OF OR IN CONNECTION WITH THE USE OR P ERFORMANCE OF THIS
  # SOFTWARE.
  #
  #       Contributed to Berkeley by John Gardiner Myers .
  #
  #       This sample mc file is for a site that uses the Cyrus IMAP server
  #       exclusively for local mail.
  #

  divert(0)dnl
  VERSIONID(`@(#)cyrusproto.mc    8.3 (Carnegie Mellon) @(#)cyrusproto.mc 8.3')
  OSTYPE(linux)
  define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')
  FEATURE(nouucp)
  FEATURE(nocanonify)
  FEATURE(always_add_domain)
  MAILER(smtp)
  MAILER(local)
  MAILER(cyrus)

  define(`confLOCAL_MAILER',`cyrus')

  LOCAL_RULE_0
  R$=N                 $: $#local $: $1
  R$=N                 $: $#local $: $1
  Rbb + $+             $#cyrusbb $: $1

  LOCAL_CONFIG
  FN /etc/sendmail.cN

  # end of mc file
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>Arp&egrave;s avoir configur&eacute; le fichier <CODE>/etc/sendmail.cf</CODE>, cr&eacute;er le
fichier <CODE>/etc/sendmail.cN</CODE> et ajouter les comptes utilisateurs
qui ne souhaitent pas utiliser IMAP:</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
        root
        majordom
        stan
        mothra
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>Apr&egrave;s avoir install&eacute; Sendmail 8.8.8 j'ai aussi install&eacute; <CODE>mail.local</CODE>
comme programme de livraison du courrier local pour ces autres comptes.
Il y a une astuce pour configurer <CODE>mail.local</CODE>. Aller dans le 
r&eacute;pertoire de <CODE>mail.local</CODE>, dans le source de sendmail et faire:</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
        cp Makefile Makefile.orig
        cp Makefile.dist Makefile
        make
        cp mail.local /bin/mail.local
        chmod 4555 /bin/mail.local
</PRE>
</CODE></BLOCKQUOTE>

Apr&egrave;s cela, red&eacute;marrer sendmail.</P>
<P>Ne pas oublier de terminer les instructions de l'installation de Cyrus.</P>
<P></P>
<HR>
<P>
Chapitre <A HREF="Cyrus-IMAP-8.html">suivant</A>,
Chapitre <A HREF="Cyrus-IMAP-6.html">Pr&eacute;c&eacute;dent</A>
<P>
Table des mati&egrave;res de <A HREF="Cyrus-IMAP.html#toc7">ce chapitre</A>,
 <A HREF="Cyrus-IMAP.html#toc">Table des mati&egrave;res</A> g&eacute;n&eacute;rale</P>
<P>
<A HREF="Cyrus-IMAP.html">D&eacute;but</A> du document,
 <A HREF="#0"> D&eacute;but de ce chapitre</A></P>
</BODY>
</HTML>