# This is a file of regression test cases for the Received: header parsing
# in rblfilter, based on real mail messages I have received.
# Pipe into 'rblfilter --debug' having set @mymailhosts = ('mymailhost')

# This file is not exhaustive - e.g. what does qmail record if the
# sending host has no reverse DNS?
# Last updated: 1999-07-24 by Brian Candler

From Apple Internet Mail Server
Received: from advanced (205.232.129.31) by mymailhost
 with SMTP (Apple Internet Mail Server 1.1.1); Sun, 3 Nov 1996 21:45:01 -0400

From exim 2.11
Received: from csuf11.csd.plym.ac.uk ([141.163.17.164])
        by mymailhost with esmtp (Exim 2.11 #1)
        id 10UWh7-0007fn-00
        for nobody@pobox.com; Tue, 6 Apr 1999 15:19:13 +0100

From exim 2.00
Received: from [153.35.182.235] (helo=default)
        by mymailhost with esmtp (Exim 2.00 #2)
        id 0zyObW-0007Dv-00; Thu, 7 Jan 1999 23:12:40 +0000

From exim 1.92
Received: from ts25-07.hfx.istar.ca ([198.53.126.70] helo=wesrobin)
        by mymailhost with smtp (Exim 1.92 #2)
        for nobody@pobox.com
        id 0ygb29-00031p-00; Mon, 1 Jun 1998 16:18:18 -0400

From exim 1.82
Received: from (playdog.linnet.org) [158.152.198.38]
        by mymailhost with esmtp (Exim 1.82 #2)
        id 0zCJDm-0006xo-00; Fri, 28 Aug 1998 07:45:23 +0000

From Lotus SMTP MTA
Received: from access.needhamco.com ([166.87.247.1]) by mymailhost (Lotus SMTP MTA SMTP v4.6 (462.2 9-3-1997)) with SMTP id 85256616.007E103B; Mon, 1 Jun 1998 18:53:54 -0400

From Microsoft Exchange
Received: from homemail.com (HQDEZVGEOMACRI [10.254.2.52]) by mymailhost with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0)

From mmdf
Received: from reverb.pobox.com.not ([208.210.124.59]) by mymailhost
           id aa1125962; 23 Jul 99 10:59 GMT

From postfix
Received: by mymailhost (Postfix, from userid 15)
        id 3A4CB6775; Sun, 21 Mar 1999 06:45:07 -0500 (EST)
Received: from mail.ipf.es (mail.ipf.es [62.164.0.19])
        by mymailhost (Postfix) with SMTP for <nobody@pobox.com>
        id E9D586775; Sun, 21 Mar 1999 06:45:05 -0500 (EST)

From postfix (no reverse DNS)
Received: by mymailhost (Postfix, from userid 15)
        id 3D46027D5; Mon, 10 May 1999 03:41:20 -0400 (EDT)
Received: from news (unknown [203.234.192.11])
        by mymailhost (Postfix) with SMTP id B797726CD
        for <nobody@pobox.com>; Mon, 10 May 1999 03:41:18 -0400 (EDT)

From qmail
Received: (qmail 6553 invoked from network); 21 Mar 1999 11:36:15 -0000
Received: from ip250.pool1.infovia.ipf.es (HELO ipf.es) (194.224.255.250)
  by mymailhost with SMTP; 21 Mar 1999 11:36:15 -0000

From sendmail 8.8/8.9
Received: from candler.home (ppp1061.dial-up.co.uk [194.205.141.61])
        by mymailhost (8.9.3/8.9.3) with SMTP id XAA10404
        for <nobody@pobox.com>; Fri, 9 Jul 1999 23:03:35 +0100 (BST)

From sendmail 8.8/8.9 with ident
Received: from dns.gapsnet.com (root@dns.gapsnet.com [200.36.179.114])
        by mymailhost (8.8.7/8.8.7) with ESMTP id IAA14389
        for <nobody@ucb.edu.bz>; Wed, 23 Dec 1998 08:12:35 -0600

From Smail 3.2.0.101
Received: from mailsender.com([206.132.155.16]) (841 bytes) by mymailhost
        via sendmail with P:esmtp/D:aliases/R:inet_resolve/T:smtp
        (sender: <nobody@psg.com>)
        id <m107rF3-0003zrC@psg.com>
        for <nobody@psg.com>; Tue, 2 Feb 1999 17:36:33 -0800 (PST)
        (Smail-3.2.0.101 1997-Dec-17 #1 built 1998-Feb-8)

From Smail 3.2.0.101 with different helo/dns names
Received: from heloname(playdog.linnet.org[212.240.194.170]) (144 bytes) by mymailhost
        via sendmail with P:smtp/D:dotforward/R:inet_resolve/T:smtp
        (sender: <MAILER-DAEMON>)
        id <m117gPs-00025tC@psg.com>
        for <nobody@psg.com>; Fri, 23 Jul 1999 07:35:16 -0700 (PDT)
        (Smail-3.2.0.101 1997-Dec-17 #1 built 1999-Jun-29)

From ZMailer
Received: from vger.rutgers.edu ([128.6.190.2] EHLO vger.rutgers.edu ident: root [port 2842]) by mymailhost with ESMTP id <1598-3033>; Fri, 21 Nov 1997 10:33:05 +0200

# The following old mailers only list the HELO name, no IP address.
# We don't support this; the HELO name is almost always forged anyway.
# If your primary mail receiver is one of these boxes, demand to
# have it upgraded!

From sendmail 8.6
Received: from ginkgo.sse by mymailhost (SMI-8.6/SMI-SVR4)
        id OAA15448; Fri, 14 Aug 1998 14:50:57 +0100

From Smail 3.1.29.1
Received: from nextstep.net by mymailhost  with smtp
        (Linux Smail3.1.29.1 #3) id m0vKOOC-0003DXC; Mon, 4 Nov 96 06:44 GMT-0600

# This one lists the DNS name, but we would have to (1) trust it (does it
# check that forward and reverse match?), and (2) gethostbyaddr() on it.
# I decided that this was not worth it for now.

From pmdf
Received: from local|host (usr34-dialup36.mix1.Sacramento.mci.net)
 by mymailhost (PMDF V5.1-10 #27035)
 with SMTP id <0ER600M42PHPZN@PM03SM.PMM.MCI.NET> for nobody@pobox.com; Fri,
 10 Apr 1998 06:57:44 +0000 (GMT)

