I typoed the string... sorry... was a capitalization issue... that last
"\s+" was supposed to be a "\S+"

Also, there is no ident in the header... only id.  ident means that you have
the user's authentication, which we don't... at least not in here.  We have
the message id though.  Similar names... totally different things.

Correct lines to use: (6 lines)
===== BEGIN =====
if (/\[XMail 1\.20 ESMTP Server\]/) {
  if (/^from (\S+) \((${IP_ADDRESS}):\d+\) by (\S+) with \[XMail 1\.20 ESMTP
Server\] id <([^>]+)> for \S+ from (<[^>]*>);/) {
    $helo = $1; $ip = $2; $by = $3; $id = $4; $envfrom = $5;
    goto enough;
  }
}
===== END =====

Also, I'm testing out the following which SHOULD work for all versions of
XMail and Header Types since at least 0.74 as far as I can tell... I'll let
you know if it works.
===== BEGIN =====
if (/\[XMail [^\]]+ ESMTP Server\]/) {
  if (/^from (\S+) (?:\((${IP_ADDRESS})[^\)]*\) )?by (\S+) (?:\([^\)]*\)
)?with \[XMail [^\]]+ ESMTP Server\] id <([^>]+)> for(?: <[^>]*> | )from
(<[^>]*>)?;/) {
    $helo = $1; $ip = $2; $by = $3; $id = $4; $envfrom = $5;
    goto enough;
  }
}
===== END =====

------------------------------------------------------------
Jason J Ellingson
Technical Consultant

615.301.1682 : nashville
612.605.1132 : minneapolis

www.ellingson.com
[EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of POPOLI Guido
Sent: Wednesday, September 22, 2004 12:20 PM
To: [EMAIL PROTECTED]
Subject: [xmail] R: Re: R: Re: R: Re: xmail server is slow (and a question)

I'm using SA 2.64, I guess that's why I had some problem with it at the =
beginning.

After tweaking it a little bit this is what I got working:

if (/\[XMail 1\.20 ESMTP Server\]/) {
  if (/^from (\S+) \((${IP_ADDRESS}):\d+\) by (\S+) with \[XMail 1\.20 =
ESMTP Server\] id <([^>]+)> for /) {
    $helo =3D $1; $ip =3D $2; $by =3D $3; $ident =3D $4;
    goto enough;
  }
}

It's a SA version problem, isn't it? BTW, it's working perfectly now...

I use Xmail 1.20 with the standard header type, I can send you my =
headers if you think they can help.

Thanks again!


-----Messaggio originale-----
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] =
Per conto di Jason J. Ellingson
Inviato: mercoled=EC 22 settembre 2004 18.16
A: [EMAIL PROTECTED]
Oggetto: [xmail] Re: R: Re: R: Re: xmail server is slow (and a question)


Let me know if it works as good for you as for me.  If it does, then =
it'll help me get my code pushed into the next release.
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to