You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/11/04 19:38:38 UTC

[Bug 3950] New: Exim $sender_fullhost not recognised by Received header parser

http://bugzilla.spamassassin.org/show_bug.cgi?id=3950

           Summary: Exim $sender_fullhost not recognised by Received header
                    parser
           Product: Spamassassin
           Version: 3.0.1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Libraries
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: jm@jmason.org


from debian bug 279504:

> Received: from helene8.i.pinwand.net (helene.cats.ms) [10.0.8.6.13219] (mail)
> 	by lisbeth.i.pinwand.net with esmtp (Exim 3.35 #1 (Debian))
> 	id 1CO5y7-0001vC-00; Sun, 31 Oct 2004 04:01:23 +0100
> Received: from 12-222-198-191.client.insightbb.com [12.222.198.191.16146] 
> 	by helene.cats.ms with smtp (Exim 3.36 #1 (Debian))
> 	id 1CO5y6-0007LP-00; Sun, 31 Oct 2004 04:01:22 +0100

>From the Exim 3 docs:


$sender_fullhost: When a message is received from a remote host, this
variable contains the host name and IP address in a single string,
which always ends with the IP address in square brackets.  If
"log_incoming_port" is set, the port number on the remote host is added
to the IP address, separated by a full stop.  The format of the rest of
the string depends on whether the host issued a HELO or EHLO SMTP
command, and whether the host name was verified by looking up its IP
address.  (Looking up the IP address can be forced by the "host_lookup"
option, independent of verification.)  A plain host name at the start
of the string is a verified host name; if this is not present,
verification either failed or was not requested. A host name in
parentheses is the argument of a HELO or EHLO command. This is omitted
if it is identical to the verified host name or to the host's IP
address in square brackets.


I don't remember if the setting in our exim.conf came from Debian or was modified 
later ... current eximconfig doesn't seem to use $sender_fullhost.


Anyway, this works (I put it last in the /Exim/ block):


      # Received: from helene8.i.pinwand.net (helene.cats.ms) [10.0.8.6.13219]
(mail)
      # by lisbeth.i.pinwand.net with esmtp (Exim 3.35 #1 (Debian))
      # id 1CO5y7-0001vC-00; Sun, 31 Oct 2004 04:01:23 +0100
      # Received: from 12-222-198-191.client.insightbb.com [12.222.198.191.16146]
      # by helene.cats.ms with smtp (Exim 3.36 #1 (Debian))
      # id 1CO5y6-0007LP-00; Sun, 31 Oct 2004 04:01:22 +0100
      if (/^from(?: ([-.a-zA-Z0-9]*))(?: \((\S+)\))?
\[(${IP_ADDRESS})(?:.\d+)?\](?: 
\((\S+)\))? by (\S+) /) {
        $rdns = $1; $ip = $3; $helo = $2; $ident = $4; $by = $5; goto enough;
      }

-- 
Mit freundlichem Gruss / Regards
Kai Henningsen


jm: so it's a pretty-std exim format; we should make sure it's supported.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.