PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.imap > tmail documentation errors
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.imap Discussion of IMAP-based mail systems.

tmail documentation errors

Réponse
 
LinkBack Outils de la discussion
Vieux 20/09/2006, 02h46   #1
René Berber
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut tmail documentation errors

Hi,

This message is just for comment, no problems to report.

In tmail's man page I see several small errors :

1. The description of parameter -f states exactly what sendmail's
manual says about flag P, not f or r like the man page says (P is for
including a Return-path line; f or r is for using a "-f <from>" while
executing tmail).

2. The example "Mlocal ..." configuration has several confusing
details, it uses flags Pr, perhaps tmail wants both but it wasn't
clear, it uses flag + which I could not find in sendmail's manual. It
doesn't use flag m, see next point.

3. No mention is made in the man page to multiple recipients (flag m on
Mlocal configuration), I had to look at the code to see that in fact it
is supported. Perhaps there are problems with parameter -I <mailbox>
and multiple recipients, but perhaps not... something should be
mentioned.

I also think that the sample configuration should be updated to
Sendmail's standard procedure, that is: configure in the .mc file. I
did add the following 4 lines, just before including the local mailer
(adjust the path and flags as needed):

=== sendmail.mc snippet ===
define(`LOCAL_MAILER_PATH', `/usr/local/bin/tmail')dnl
define(`LOCAL_MAILER_ARGS', `tmail $u')dnl
define(`LOCAL_MAILER_FLAGS', `Pfmn8')dnl
define(`LOCAL_MAILER_EOL', `\r\n')dnl
MAILER(local)dnl

Regards.
--
René Berber

  Réponse avec citation
Vieux 20/09/2006, 03h49   #2
Mark Crispin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: tmail documentation errors

On Tue, 19 Sep 2006, Rene$Bi(B Berber wrote:
> 1. The description of parameter -f states exactly what sendmail's
> manual says about flag P, not f or r like the man page says (P is for
> including a Return-path line; f or r is for using a "-f <from>" while
> executing tmail).


tmail's man page is correct as stated: the -f or -r flag in the tmail
command line sets a Return-Path in the header that is written by tmail.

That is not the same as the P flag in sendmail's F= options.

> 2. The example "Mlocal ..." configuration has several confusing
> details, it uses flags Pr, perhaps tmail wants both


It's entirely up to you. Most sendmail.cf files do this.

> but it wasn't
> clear, it uses flag + which I could not find in sendmail's manual.


+ is a common extension to support user+mailbox addressing.

> It
> doesn't use flag m, see next point.
> 3. No mention is made in the man page to multiple recipients (flag m on
> Mlocal configuration), I had to look at the code to see that in fact it
> is supported. Perhaps there are problems with parameter -I <mailbox>
> and multiple recipients, but perhaps not... something should be
> mentioned.


You do NOT want to use flag m in the Mlocal configuation!! It is a VERY
BAD IDEA, not matter which mail delivery program you use!

The problem with sendmail's flag m is that there is only one result return
from an invocation to the delivery program. So, if delivery fails to one
recipient (perhaps because of a disk quota error), the one of the
following outcomes occurs:
a) the message is delivered to all the other recipients, but an error is
passed back to sendmail, so it will retry delivery...to everybody.
b) the error causes the message to fail delivery to all recipients, even
those that it could be delivered to, so nobody gets the message until
the problem with the one recipient is fixed.
c) the message is delivered to the other recipients, but no error is
passed back so the sender never is notified of the failure.
d) some inconsistant combination of the above.

NONE of these options are desirable; and thus flag m in Mlocal is
generally considered to be a BAD idea.

This problem is mentioned, albeit not specifically in relationship to the
Mlocal m flag, under "RESTRICTIONS" in the tmail man page.

> I also think that the sample configuration should be updated to
> Sendmail's standard procedure, that is: configure in the .mc file.


tmail was originally written before there was was such a thing.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
  Réponse avec citation
Vieux 20/09/2006, 07h55   #3
René Berber
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: tmail documentation errors


Mark Crispin wrote:

> On Tue, 19 Sep 2006, Rene Berber wrote:
> > 1. The description of parameter -f states exactly what sendmail's
> > manual says about flag P, not f or r like the man page says (P is for
> > including a Return-path line; f or r is for using a "-f <from>" while
> > executing tmail).

>
> tmail's man page is correct as stated: the -f or -r flag in the tmail
> command line sets a Return-Path in the header that is written by tmail.
>
> That is not the same as the P flag in sendmail's F= options.
>
> > 2. The example "Mlocal ..." configuration has several confusing
> > details, it uses flags Pr, perhaps tmail wants both

>
> It's entirely up to you. Most sendmail.cf files do this.


Agree, but if I understand correctly using Pr means sendmail adds a
Return-Path line to the headers, then it runs tmail -f ... which makes
tmail add a Return-Path line to the headers, and since I looked at the
code I know that then tmail deletes the line added by sendmail... looks
like triple work to me. But I'm probably wrong since you say that it
is not the same.

> > but it wasn't
> > clear, it uses flag + which I could not find in sendmail's manual.

>
> + is a common extension to support user+mailbox addressing.


I tought so when building sendmail.cf didn't complain, but if it's not
documented...

> > It doesn't use flag m, see next point.
> > 3. No mention is made in the man page to multiple recipients (flag m on
> > Mlocal configuration), I had to look at the code to see that in fact it
> > is supported. Perhaps there are problems with parameter -I <mailbox>
> > and multiple recipients, but perhaps not... something should be
> > mentioned.

>
> You do NOT want to use flag m in the Mlocal configuation!! It is a VERY
> BAD IDEA, not matter which mail delivery program you use!


I understand the point, but on the other hand it is the default on
sendmail. It just stike me as odd when I saw in the log 6 tmail
processes instead of one, it was just different behaviour from what I'm
used.

> The problem with sendmail's flag m is that there is only one result return
> from an invocation to the delivery program. So, if delivery fails to one
> recipient (perhaps because of a disk quota error), the one of the
> following outcomes occurs:
> a) the message is delivered to all the other recipients, but an error is
> passed back to sendmail, so it will retry delivery...to everybody.
> b) the error causes the message to fail delivery to all recipients, even
> those that it could be delivered to, so nobody gets the message until
> the problem with the one recipient is fixed.
> c) the message is delivered to the other recipients, but no error is
> passed back so the sender never is notified of the failure.
> d) some inconsistant combination of the above.
>
> NONE of these options are desirable; and thus flag m in Mlocal is
> generally considered to be a BAD idea.
>
> This problem is mentioned, albeit not specifically in relationship to the
> Mlocal m flag, under "RESTRICTIONS" in the tmail man page.
>
> > I also think that the sample configuration should be updated to
> > Sendmail's standard procedure, that is: configure in the .mc file.

>
> tmail was originally written before there was was such a thing.


Understood, that's why I said updated.

Thanks for your reply, as I wrote before this were just comments not a
real problem.
--
René Berber

  Réponse avec citation
Vieux 20/09/2006, 17h27   #4
Mark Crispin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: tmail documentation errors

On Tue, 19 Sep 2006, Ren$Bi(B Berber wrote:
> Agree, but if I understand correctly using Pr means sendmail adds a
> Return-Path line to the headers, then it runs tmail -f ... which makes
> tmail add a Return-Path line to the headers,


Correct. You'll have a Return-Path from sendmail and one from tmail.

> and since I looked at the
> code I know that then tmail deletes the line added by sendmail...


Huh? tmail doesn't do any such thing.

looks

>> You do NOT want to use flag m in the Mlocal configuation!! It is a VERY
>> BAD IDEA, not matter which mail delivery program you use!

> I understand the point, but on the other hand it is the default on
> sendmail. It just stike me as odd when I saw in the log 6 tmail
> processes instead of one, it was just different behaviour from what I'm
> used.


I don't know why that is sendmail's default. It may be more "efficient"
that way, but IMHO that is outweighed by the loss of per-recipient error
handling.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h35.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13346 seconds with 12 queries