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 > Sendmail logging 'ntries' on final Delivery/Fail?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

Sendmail logging 'ntries' on final Delivery/Fail?

Réponse
 
LinkBack Outils de la discussion
Vieux 18/09/2006, 12h32   #1 (permalink)
JonB
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Sendmail logging 'ntries' on final Delivery/Fail?


Hi All,

We're running Sendmail 8.13.8 - and I'm trying to get it to log the
'number of tries' {ntries} for when the message was finally delivered.

e.g. At the moment we have the following logged:

"
Sep 18 12:20:43 nullbox sendmail[36221]: k8IBKhT1036421:
to=someone@somedomain.com, ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30006, relay=[192.168.23.2],
dsn=2.0.0, stat=Sent (k8IBKhFJ036242 Message accepted for delivery)
"

What I'm trying to do is either get the 'ntries' variable logged on
that line, or if not - near it.

I've written a rule that will log this - but I can't figure out which
ruleset to put it in, everything seems to go on 'before' the email is
delivered.

We have the log level set to 8 on this machine, so it doesn't litter
our logs with redelivery attempts - hence the need to log the number of
tries on the final / successful (or failed) delivery attempts.

Cheers,

Jon

  Réponse avec citation
Vieux 21/09/2006, 22h44   #2 (permalink)
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sendmail logging 'ntries' on final Delivery/Fail?

In article <1158579176.848756.309010@i3g2000cwc.googlegroups. com> "JonB"
<jfretby@googlemail.com> writes:
>e.g. At the moment we have the following logged:
>
>"
>Sep 18 12:20:43 nullbox sendmail[36221]: k8IBKhT1036421:
>to=someone@somedomain.com, ctladdr=root (0/0), delay=00:00:00,
>xdelay=00:00:00, mailer=relay, pri=30006, relay=[192.168.23.2],
>dsn=2.0.0, stat=Sent (k8IBKhFJ036242 Message accepted for delivery)
>"
>
>What I'm trying to do is either get the 'ntries' variable logged on
>that line, or if not - near it.
>
>I've written a rule that will log this - but I can't figure out which
>ruleset to put it in, everything seems to go on 'before' the email is
>delivered.


As far as I can see the only way to achieve that would be to modify the
C source (should be fairly trivial) - unless there is some config option
that already does it that I've missed. As you have figured out, there's
no way to do it from the rulesets - once delivery has completed
successfully, there's nothing more for the rulesets to do - so they
don't get called...

--Per Hedeland
per@hedeland.org
  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 01h15.


Édité par : vBulletin® version 3.7.2
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
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07498 seconds with 10 queries