Re: [Exim] rewriting Sender: that doesn't have a domain

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Marc MERLIN
Dátum:  
Címzett: Philip Hazel
CC: exim-users
Tárgy: Re: [Exim] rewriting Sender: that doesn't have a domain
On Thu, Aug 03, 2000 at 09:33:28AM +0100, Philip Hazel wrote:
> On Wed, 2 Aug 2000, Marc MERLIN wrote:
>
> > Here's the Email:
> > ----------------------------------------------------------------------------
> > From: merlin@???
> > To: marc@???
> > Sender: merlin
> > Subject: test
>
> How did you submit this? If it wasn't via SMTP over TCP/IP, the Sender:
> header will be removed. Ah, I see it was "local". That explains it.


Yeah, it was local, it makes it a bit easier to get the debug trace, my bad.

> Try your test again by telnetting to the SMTP port.


I had done that before turning on debugging.
So, I did it again by getting debug this way now:

----------------------------------------------------------------------------
>>Original headers (size=75):

From: merlin@???
To: marc@???
Sender: merlin
Subject: test

envtest@??? in *@varesearch.com? no (end of list)
envtest@??? in *@*.su.varesearch.com? no (end of list)
envtest@??? in *@*.su.valinux.com? no (end of list)
envtest@??? in *@*.fr.valinux.com? no (end of list)
envtest@??? in *@*.sd.valinux.com? no (end of list)
envtest@??? in *@*.dsl.valinux.com? no (end of list)
envtest@??? in *@valinux.com? no (end of list)
rewrite_one_header: type=F:
From: merlin@???
merlin@??? in *@varesearch.com? no (end of list)
merlin@??? in *@*.su.varesearch.com? no (end of list)
merlin@??? in *@*.su.valinux.com? no (end of list)
merlin@??? in *@*.fr.valinux.com? no (end of list)
merlin@??? in *@*.sd.valinux.com? no (end of list)
merlin@??? in *@*.dsl.valinux.com? no (end of list)
rewrite_one_header: type=T:
To: marc@???
marc@??? in *@varesearch.com? no (end of list)
marc@??? in *@*.su.varesearch.com? no (end of list)
marc@??? in *@*.su.valinux.com? no (end of list)
marc@??? in *@*.fr.valinux.com? no (end of list)
marc@??? in *@*.sd.valinux.com? no (end of list)
marc@??? in *@*.dsl.valinux.com? no (end of list)
rewrite_one_header: type=S:
Sender: merlin
search_tidyup called
>>Final headers:

P Received: from kenny.su.valinux.com ([10.1.3.166] ident=root)
        by mail.valinux.com with smtp (Exim 3.16 #1 (Debian))
        id 13KOm2-0005iY-00
        for <envtest@???>; Thu, 03 Aug 2000 10:27:15 -0700
F From: merlin@???
T To: marc@???
S Sender: merlin
  Subject: test
I Message-Id: <E13KOm2-0005iY-00@???>
  Date: Thu, 03 Aug 2000 10:27:15 -0700


verifying header address merlin
verifying header address merlin@???
same as sender
Data file written for message 13KOm2-0005iY-00
----------------------------------------------------------------------------

As a reminder, the rewrite rules say:
----------------------------------------------------------------------------
# Some versions of netscape put a Sender field without a domain :-( -- Marc
^([^@]+)            $1@???        s


# Explicitely list domains that we want to rewrite, and rewrite everything
*@varesearch.com        $1@???        hE
*@*.su.varesearch.com        $1@???        hE
*@*.su.valinux.com        $1@???        hE
*@*.fr.valinux.com        $1@???        hE
*@*.sd.valinux.com        $1@???        hE
*@*.dsl.valinux.com        $1@???        hE


# This seems cool (checks if the user exists locally), see 
# http://www.exim.org/exim-html-3.10/doc/html/spec_32.html#SEC703
*@valinux.com            $1@${qualify_domain}    X



# The following is temporary while we have both of our mail servers -- Marc
*@valinux.com           ${lookup{$1}lsearch{/etc/mail/localadds}{$1@???}fail} T
----------------------------------------------------------------------------


Thanks,
Marc
--
Microsoft is to software what McDonalds is to gourmet cooking

Home page: http://marc.merlins.org/ (friendly to non IE browsers)
Finger marc_f@??? for PGP key and other contact information