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.sendmail > Pick up tempfail reason from MDA?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

Pick up tempfail reason from MDA?

Réponse
 
LinkBack Outils de la discussion
Vieux 09/05/2007, 14h37   #1
ska
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Pick up tempfail reason from MDA?

Hello,

can sendmail pick up stdout when the MDA defers a delivery and adds
the first words into the queue file instead of: (Deferred: local
mailer (/etc/mail/deliver) exited with EX_TEMP)?

I found the string in ./sendmail/deliver.c:

rcode = endmailer(mci, e, pv);
if (!ok)
rcode = EX_TEMPFAIL;
if (rcode == EX_TEMPFAIL && SmtpError[0] == '\0')
{
/*
** Need an e_message for mailq display.
** We set SmtpError as
*/

(void) sm_snprintf(SmtpError, sizeof SmtpError,
"%s mailer (%s) exited with EX_TEMPFAIL",
m->m_name, m->m_mailer);
}

And I wondered if one can fill in the first part of stdout into
SmtpError, maybe in endmailer()?

For permanent errors, stdout/stderr is inserted into the DSN, so is it
is captured somewhere.

Thanks,

  Réponse avec citation
Vieux 09/05/2007, 19h26   #2
Grant Taylor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Pick up tempfail reason from MDA?

On 05/09/07 08:37, ska wrote:
> can sendmail pick up stdout when the MDA defers a delivery and adds
> the first words into the queue file instead of: (Deferred: local
> mailer (/etc/mail/deliver) exited with EX_TEMP)?


Try looking in to LMTP, I think it will serve your needs better.



Grant. . . .

  Réponse avec citation
Vieux 10/05/2007, 10h39   #3
ska
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Pick up tempfail reason from MDA?

I do not have no compatible LMTP-capable MDA.
But you are right, it would worth looking in this direction.

ska

  Réponse avec citation
Vieux 10/05/2007, 15h21   #4
Grant Taylor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Pick up tempfail reason from MDA?

On 05/10/07 04:39, ska wrote:
> I do not have no compatible LMTP-capable MDA.
> But you are right, it would worth looking in this direction.


What MDA / LDA are you using? I know that Procmail, and a number of
database driven LDAs are capable of using LMTP.




Grant. . . .

  Réponse avec citation
Vieux 11/05/2007, 10h59   #5
ska
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Pick up tempfail reason from MDA?

> What MDA / LDA are you using? I know that Procmail, and a number of
> database driven LDAs are capable of using LMTP.


I'm using the Dovecot IMAP server. Because of some design decisions of
mine, if I would not use Dovecot's deliver, I need to train other MDAs
where the Maildir base and the Inbox are located; they differ from
their home directories.

I want to achieve two things:

a) mailq shall tell me more than just temp error, when I glance the
output - without the need to combine several entries in two log files.

b) I want to move out-of-quota mails into a slow queue.

But the idea about LMTP sound worth thinking about.

ska

  Réponse avec citation
Vieux 11/05/2007, 15h54   #6
Grant Taylor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Pick up tempfail reason from MDA?

On 05/11/07 04:59, ska wrote:
> I'm using the Dovecot IMAP server. Because of some design decisions of
> mine, if I would not use Dovecot's deliver, I need to train other MDAs
> where the Maildir base and the Inbox are located; they differ from
> their home directories.


*nod*

You can easily alter the source code to Procmail to tell it where to
deliver in to Maildirs. I can provide you with some of this information
if you want it. (I had to edit my Procmail source to get it to do what
I wanted it to do.)

> I want to achieve two things:
>
> a) mailq shall tell me more than just temp error, when I glance the
> output - without the need to combine several entries in two log files.


I believe that if Sendmail is not in LMTP mode it looks at the error
level of the LDA that it called. Sendmail then has a definition of what
error to use with these error levels. As far as grabbing something from
STDOUT I don't know what to say.

> b) I want to move out-of-quota mails into a slow queue.


So long as your MTA has accepted responsibility for the envelopes that
it can not successfully deliver and requeues the messages with such an
error, you will be able to migrate such messages in to a different mail
queue.

Warning! - Word to the wise, this is a way to be DoSed. Imagen if you
will, a recipient that is near quota receiving multi part messages
(think Outlook Express splitting an attachment in to smaller pieces to
send) of a very large attachment. If the recipient is over quota the
envelopes will not be able to be delivered to the recipient. However
the envelopes will still reside in the mail queue not taking in to
account the users quota. In other words, it is possible for someone who
is over quota to receive enough mail to fill your disk despite the fact
that they are over quota.

> But the idea about LMTP sound worth thinking about.


*nod* LMTP is very nice indeed. The next best thing would be for some
sort of milter to be able to check the recipient's quota prior to the
MTA accepting responsibility for the envelope. However this is a bit
tricky as envelopes can have multiple recipients and the acceptance /
rejection of an envelope is all or nothing, not per recipient (yet).



Grant. . . .

  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 03h08.


É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,17992 seconds with 14 queries