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 > Header routing pssible yet?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

Header routing pssible yet?

Réponse
 
LinkBack Outils de la discussion
Vieux 08/09/2006, 17h01   #1
mluich
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Header routing pssible yet?

Hi everyone,
I'm hoping to get some routing done based on the Headers.
Basicaly if there's a match in the headers I want to route it to a
specific machine.

I can get the header match working but it seems sendmail simply won't
do the routing.


KRegsmime_p7m regex -a@MATCH smime.p7m
HContent-Disposition: $>Encrypted_Header


SEncrypted_Header
R$* $: $( Regsmime_p7m $&{currHeader} $)
R@MATCH $# esmtp $@ [ 127.0.0.1 ] $: $&{CurrentAdd}

Sendmail seems to just simply ignore the last line.

Is this possible? am i really barking up the wrong tree?

Mike Luich

  Réponse avec citation
Vieux 12/09/2006, 07h00   #2
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Header routing pssible yet?

In article <1157731291.706256.204550@h48g2000cwc.googlegroups .com>
"mluich" <mluich@gmail.com> writes:
> I'm hoping to get some routing done based on the Headers.
>Basicaly if there's a match in the headers I want to route it to a
>specific machine.
>
>I can get the header match working but it seems sendmail simply won't
>do the routing.


Correct, header rulesets can only result in reject or discard actions -
the routing decisions have already been made when sendmail receives the
headers.

>Is this possible? am i really barking up the wrong tree?


It has been discussed a number of times in the past here, the
cleanest/simplest solution is probably to use a flexible milter like
MIMEDefang (add/remove recipients based on header contents).

--Per Hedeland
per@hedeland.org
  Réponse avec citation
Vieux 12/09/2006, 08h36   #3
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Header routing pssible yet?

per@hedeland.org (Per Hedeland) writes:

> In article <1157731291.706256.204550@h48g2000cwc.googlegroups .com>
> "mluich" <mluich@gmail.com> writes:
>> I'm hoping to get some routing done based on the Headers.
>>Basicaly if there's a match in the headers I want to route it to a
>>specific machine.
>>
>>I can get the header match working but it seems sendmail simply won't
>>do the routing.

>
> Correct, header rulesets can only result in reject or discard actions -
> the routing decisions have already been made when sendmail receives the
> headers.


AFAIR previous discussions it seemed to be possible to achieve in
sendmail.cf with resignation of "at once" delivery attempts.
* header rules set macro
* the macro is used for routing decisions during *next* queue run

>>Is this possible? am i really barking up the wrong tree?

>
> It has been discussed a number of times in the past here, the
> cleanest/simplest solution is probably to use a flexible milter like
> MIMEDefang (add/remove recipients based on header contents).


I do agree with cleanest/simplest part.

--
[pl2en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
  Réponse avec citation
Vieux 13/09/2006, 16h31   #4
ravenhair@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Header routing pssible yet?

glad to hear it, That's the road i've been heading down.

I have a milter which simply checks the headers for my field, and
finding a match appends a .route to the rcpt address.

I.E. someone@somwhere.com -> someone@somwhere.com.route

then in mailertable I put an entry:

..route esmtp[somewherespecific.com]

And I remove the .route at the other end.

Thanks everyone.
Michael Luich
Andrzej Adam Filip wrote:
> per@hedeland.org (Per Hedeland) writes:
>
> > In article <1157731291.706256.204550@h48g2000cwc.googlegroups .com>
> > "mluich" <mluich@gmail.com> writes:
> >> I'm hoping to get some routing done based on the Headers.
> >>Basicaly if there's a match in the headers I want to route it to a
> >>specific machine.
> >>
> >>I can get the header match working but it seems sendmail simply won't
> >>do the routing.

> >
> > Correct, header rulesets can only result in reject or discard actions -
> > the routing decisions have already been made when sendmail receives the
> > headers.

>
> AFAIR previous discussions it seemed to be possible to achieve in
> sendmail.cf with resignation of "at once" delivery attempts.
> * header rules set macro
> * the macro is used for routing decisions during *next* queue run
>
> >>Is this possible? am i really barking up the wrong tree?

> >
> > It has been discussed a number of times in the past here, the
> > cleanest/simplest solution is probably to use a flexible milter like
> > MIMEDefang (add/remove recipients based on header contents).

>
> I do agree with cleanest/simplest part.
>
> --
> [pl2en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl


  Réponse avec citation
Vieux 16/09/2006, 06h08   #5
Sakagami Hiroki
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Header routing pssible yet?


Andrzej Adam Filip wrote:
> per@hedeland.org (Per Hedeland) writes:
> > Correct, header rulesets can only result in reject or discard actions -
> > the routing decisions have already been made when sendmail receives the
> > headers.

>
> AFAIR previous discussions it seemed to be possible to achieve in
> sendmail.cf with resignation of "at once" delivery attempts.
> * header rules set macro
> * the macro is used for routing decisions during *next* queue run


How do I achieve "resignation of at once delivery attempts"?
I can't find such an option in op.me.

--
Sakagami Hiroki

  Réponse avec citation
Vieux 16/09/2006, 20h12   #6
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Header routing pssible yet?

"Sakagami Hiroki" <sakagami@gmail.com> writes:

> Andrzej Adam Filip wrote:
>> per@hedeland.org (Per Hedeland) writes:
>> > Correct, header rulesets can only result in reject or discard actions -
>> > the routing decisions have already been made when sendmail receives the
>> > headers.

>>
>> AFAIR previous discussions it seemed to be possible to achieve in
>> sendmail.cf with resignation of "at once" delivery attempts.
>> * header rules set macro
>> * the macro is used for routing decisions during *next* queue run

>
> How do I achieve "resignation of at once delivery attempts"?
> I can't find such an option in op.me.


I requires changing DeliveryMode from default "background" to "queue".

It may be achieved by passing "-odq" command line option to started
sendmail daemon.

--
[pl2en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
  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 11h59.


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