Re: Config exim sous debian

Pàgina inicial

Reply to this message
Autor: Olivier_Allard-Jacquin
Data:  
A: guilde
Assumpte: Re: Config exim sous debian
> > Question idiote: exim est-il vraiment indispensable ? fetchmail ne
peut-il pas
> > lui-meme filer les messages recuperes directement a procmail ?
>
> non malheureusement, un MTA est necessaire rien que pour qu'il puisse
> envoyer un mail comme quoi il y a des problemes.


        Je ne suis pas tout à fait d'accord. On peut relier directement 
fetchmail à procmail sans passer par exim/postfix/sendmail et compagnie.


Extrait de la doc de fetchmail :
http://catb.org/~esr/fetchmail/fetchmail-man.html
<extrait>
-m <command> | --mda <command> (Keyword: mda) You can force mail to be
passed to an MDA directly (rather than forwarded to port 25) with the
--mda or -m option. To avoid losing mail, use this option only with MDAs
like procmail or sendmail that return a nonzero status on disk-full and
other resource-exhaustion errors; the nonzero status tells fetchmail that
delivery failed and prevents the message from being deleted off the
server. If fetchmail is running as root, it sets its userid to that of the
target user while delivering mail through an MDA. Some possible MDAs are
"/usr/sbin/sendmail -i -f %F %T", "/usr/bin/deliver" and
"/usr/bin/procmail -d %T" (but the latter is usually redundant as it’s
what SMTP listeners normally forward to). Local delivery addresses will be
inserted into the MDA command wherever you place a %T; the mail message’s
>From address will be inserted where you place an %F. In both cases the

addresses are enclosed in single quotes (’), after removing any single
quotes they may contain, before the MDA command is passed to the shell. Do
not use an MDA invocation like "sendmail -i -t" that dispatches on the
contents of To/Cc/Bcc, it will create mail loops and bring the just wrath
of many postmasters down upon your head. Also, do not try to combine
multidrop mode with an MDA such as procmail that can only accept one
addressee; you will lose.
</extrait>

MDA : Mail Delivery Agent. Bref, comme procmail, imap, pop3

        Bref, c'est faisable de se passer d'exim. D'un certain point de 
vue, c'est même plus sécurisé, car cela fait un démon de moins qui tourne, 
et un port de moins d'ouvert. Mais de l'autre, c'est moins sécure si il y 
a des problème d'espace disque, si les entêtes des mails sont 
volontairement mal formatées. Et tu as nettements moins de possibilités de 
log.


                                        Olivier