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 > How do I detect smfi_delrcpt was called by a previous milter?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

How do I detect smfi_delrcpt was called by a previous milter?

Réponse
 
LinkBack Outils de la discussion
Vieux 17/09/2006, 00h55   #1
Kai Sung
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How do I detect smfi_delrcpt was called by a previous milter?

Hi,

I have two milters chained together. Is there a way for the second
milter to detect that the first milter deleted an envelope recipient?
I know I could do it by having the first milter add an X-header and the
second milter can detect the added X-header, but unfortunately I don't
have control over the first milter and it can't add X-headers. Any
other creative ideas would be appreciated.

Thanks,
-Kai

  Réponse avec citation
Vieux 17/09/2006, 21h55   #2
jmaimon@ttec.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How do I detect smfi_delrcpt was called by a previous milter?

Kai Sung wrote:
> Hi,
>
> I have two milters chained together. Is there a way for the second
> milter to detect that the first milter deleted an envelope recipient?
> I know I could do it by having the first milter add an X-header and the
> second milter can detect the added X-header, but unfortunately I don't
> have control over the first milter and it can't add X-headers. Any
> other creative ideas would be appreciated.
>
> Thanks,
> -Kai


If you have a milter that you dont control, you may want to look into
the milter-rrres patch.

http://www.jmaimon.com/sendmail

While the current posted version does not contain any post milter
action ruleset hooks, the version I have under development does,
untested as it may be. Perhaps you may want a crack at it. If you do,
let me know and I will send you an interim.

That may serve very well for you.

You could perhaps monitor syslog for the message logged by these lines
in sendmail/milter.c

if (MilterLogLevel > 8)
sm_syslog(LOG_INFO, e->e_id, "Milter delete: rcpt %s",
response);


You could also try modifying the functions called to update/set a macro
when this occurs.

More importantly, milters calls are done in order for every point of
the smtp phase.

You wont have one milter executing the xxfi_envrcpt callback after one
has already called a smfi_delrcpt() inside of the xxfi_eom callback.

  Réponse avec citation
Vieux 18/09/2006, 20h30   #3
Kai Sung
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How do I detect smfi_delrcpt was called by a previous milter?

Thanks for your response Joe. We decided in the end not to chain the
milters and instead run the second milter on another downstream
sendmail box. The milter-rrres patch does look interesting, though.
I'll try taking a look at it in my spare time.

-Kai


jmaimon@ttec.com wrote:
> Kai Sung wrote:
> > Hi,
> >
> > I have two milters chained together. Is there a way for the second
> > milter to detect that the first milter deleted an envelope recipient?
> > I know I could do it by having the first milter add an X-header and the
> > second milter can detect the added X-header, but unfortunately I don't
> > have control over the first milter and it can't add X-headers. Any
> > other creative ideas would be appreciated.
> >
> > Thanks,
> > -Kai

>
> If you have a milter that you dont control, you may want to look into
> the milter-rrres patch.
>
> http://www.jmaimon.com/sendmail
>
> While the current posted version does not contain any post milter
> action ruleset hooks, the version I have under development does,
> untested as it may be. Perhaps you may want a crack at it. If you do,
> let me know and I will send you an interim.
>
> That may serve very well for you.
>
> You could perhaps monitor syslog for the message logged by these lines
> in sendmail/milter.c
>
> if (MilterLogLevel > 8)
> sm_syslog(LOG_INFO, e->e_id, "Milter delete: rcpt %s",
> response);
>
>
> You could also try modifying the functions called to update/set a macro
> when this occurs.
>
> More importantly, milters calls are done in order for every point of
> the smtp phase.
>
> You wont have one milter executing the xxfi_envrcpt callback after one
> has already called a smfi_delrcpt() inside of the xxfi_eom callback.


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


É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,13089 seconds with 11 queries