Viktor,

On Mon, Sep 20, 2010 at 7:38 PM, Victor Duchovni
<victor.ducho...@morganstanley.com> wrote:
> On Mon, Sep 20, 2010 at 03:15:37PM -0400, Brian Pribis wrote:
>
>> If I put
>>
>>       addr...@virtual_domain m...@gmail.com
>>
>> Shouldn't it simply forward email from the first address to my gmail account?
>
> Yes.
>
>> What happens is the mail does go to gmail but if I hit "reply" it
>> tries to mail back to addr...@vitual_domain    instead of the original
>> sender.
>
> You are confused. Reply-All, will reply to both the Sender and all
> Recipients, other than any the Mail User Agent (in this case Gmail)
> knows to be yours.
>
> So if you Reply, the reply will go to the From: address. Virtual rewriting
> does not change the From: address.
>
> If you Reply-All, then the reply will Cc the forwarded mailbox.
>

Um,  what sort of people do you have on this list who would be setting
up a mail server and not know the difference between Reply and
Reply-All?   Never mind, don't answer that.  Needless to say, I'm a
software developer that gets the pleasure of also being the IT guy for
our company.  Not so funny sometimes.

I've been using email since the late 80's, so I'm fairly confident in
the difference between the two.   When I hit Reply (not reply all) the
email is sent back to the rewrite address, NOT the sender address.
It is crazy, I know, but that is what is happening.   But this problem
only occurs if I forward and email outside of the mail server (say to
my gmail account).  I've included the email header info below for this
scenario. It get's even crazyier when I forward the email to an
account on the mail server.   If I put the following in the virtual
file:

br...@virtual_domain.cc brian   #brian is a real account on the server.

And mail to br...@virtual_domain from br...@different_server.com

THEN if I hit reply it will send back to br...@different_server.com.
But if I hit Reply-All it will put br...@different_server.com in the
TO field and br...@virtual_domain.cc in the CC field.   This is NOT
what it is suppose to do.

> It is of course possible that you are implementing forwarding in some
> other way, that does change the From: address, but that is not how
> Postfix virtual alias rewriting works.
>

I don't have a forward anywhere else.  I made sure of that.  So I'm a
bit mystified.  I just wish I could figure out where I screwed up.

Perhaps the problem lies in one more fact I haven't mentioned
(typical, right?):  This is a mail server for several virtual hosts,
but the virtual hosts themselves are on a different server.  So the
web server has the MX records pointing to the mail server.  Could this
cause strange behavior?  The domain I am testing with was never used
for email on the web server.  It doesn't seem like that should matter,
but I'm sorta desperate.

Thank you VERY much for you input, really.  I wanted to make sure that
virtual aliases was suppose to do what I thought and not what it was
in fact doing.  Now if I can just figure out where I borked this
thing.

Brian


Here is the header.  This is sent FROM br...@boxcarpress.com, TO
c...@letterpress.cc (a virtual domain and cbm is not an actual user,
just an alias), which has the following in the virtual db file:

c...@letterpress.cc    brian...@gmail.com

-----begin email header


Delivered-To: brian...@gmail.com
Received: by 10.204.178.195 with SMTP id bn3cs9943bkb;
        Tue, 21 Sep 2010 05:06:48 -0700 (PDT)
Received: by 10.151.102.21 with SMTP id e21mr10765549ybm.103.1285070806898;
        Tue, 21 Sep 2010 05:06:46 -0700 (PDT)
Return-Path: <br...@boxcarpress.com>
Received: from boxcarmail.com ([70.86.117.242])
        by mx.google.com with ESMTP id f5si20384362ybi.25.2010.09.21.05.06.46;
        Tue, 21 Sep 2010 05:06:46 -0700 (PDT)
Received-SPF: neutral (google.com: 70.86.117.242 is neither permitted
nor denied by best guess record for domain of br...@boxcarpress.com)
client-ip=70.86.117.242;
Authentication-Results: mx.google.com; spf=neutral (google.com:
70.86.117.242 is neither permitted nor denied by best guess record for
domain of br...@boxcarpress.com) smtp.mail=br...@boxcarpress.com
Received: from boxcarmail.com (localhost [127.0.0.1])
        by boxcarmail.com (Postfix) with ESMTP id 9DF2F5C067
        for <c...@letterpress.cc>; Tue, 21 Sep 2010 08:06:44 -0400 (EDT)
Received: by boxcarmail.com (Postfix, from userid 58)
        id 81F945C066; Tue, 21 Sep 2010 08:06:44 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on boxcarmail.com
X-Spam-Level: **
X-Spam-Status: No, score=2.5 required=8.0 tests=MR_NOT_ATTRIBUTED_IP,NO_RDNS,
        ONE_WORD_SUBJECT,RDNS_NONE autolearn=no version=3.3.1
Received: from ns34.mmaweb.net (unknown [64.71.179.224])
        by boxcarmail.com (Postfix) with ESMTP id F0B6E5C04F
        for <c...@letterpress.cc>; Tue, 21 Sep 2010 08:06:42 -0400 (EDT)
Received: from Brian-Pribiss-iMac.local
(rrcs-208-125-111-62.nys.biz.rr.com [208.125.111.62])
        by ns34.mmaweb.net (8.13.7/8.13.7) with ESMTP id o8LC6hfg014097
        for <c...@letterpress.cc>; Tue, 21 Sep 2010 08:06:43 -0400 (EDT)
Message-ID: <4c989fd2.2060...@boxcarpress.com>
Date: Tue, 21 Sep 2010 08:06:42 -0400
From: Brian Pribis <br...@boxcarpress.com>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.2.9) Gecko/20100915 Lightning/1.0b2 Thunderbird/3.1.4
MIME-Version: 1.0
To: c...@letterpress.cc
Subject: test
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP

-----end email header---------

Reply via email to