Ok, let me do this another way, since I'm clearly not understanding how this is suppose to work. I read: http://www.postfix.org/ADDRESS_REWRITING_README.html#virtual
Am I understanding this correctly? If I put addr...@virtual_domain m...@gmail.com Shouldn't it simply forward email from the first address to my gmail account? 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. I do not have this in any other file, btw, and I've made sure I ran postmap and restarted. I'm sure this is part of my overall problem and I'm just missing something stupid, but this has taken WAY to long to set up and I'm sorta at the end of my wits here. Any more help would be appreciated. Thanks. brian On Fri, Sep 17, 2010 at 12:10 PM, Brian Pribis <br...@boxcarpress.com> wrote: > On 9/16/10 7:56 PM, Sahil Tandon wrote: >> >> On Thu, 2010-09-16 at 22:40:10 +0200, Jeroen Geilman wrote: >> >>> On 09/16/2010 10:33 PM, Brian Pribis wrote: >>>> >>>> When I receive an email addressed to, say, t...@virtual_domain.com, >>>> I want this forwarded to someone_e...@virtual_domain.com. >>>> >>>> I have this done in the virtual file and everything appears to work, >>>> except one thing I can't understand: >>> >> >> Virtual aliasing is recursive, so the above mapping should be fine as >> long as someone_e...@virtual_domain.com is eventually mapped to an >> actual mailbox/address. This is why the OP observes that it "works" in >> the sense that test mail arrives in the intended mailbox. >> >>>> When the email arrives in my mail client it arrives with >>>> t...@virtual_domain.com in the CC field. >> >> As noted in the ADDRESS_REWRITING_README, virtual alias mapping affects >> *only* the envelope recipient address, not the headers. >> > > Sahil, > > Ok, thanks. That clarifies some things. But it doesn't fix the problem. > If I add the "forward" to the canonical file (actually, canonical-receive > in this case), the address gets rewritten so when the person replies it will > reply to what the address was rewritten to, which is what you would expect > but not what I want. > > So the virtual file is what I want to use because I want people to be > thinking the original alias is a valid email address and continue to send to > it. > > But there is a problem with the mail agent. I'm now starting to think this > is a localized problem with the agent (in this case Thunderbird). If I put > the following in the virtual file: > > br...@letterpress.cc brian > c...@letterpress.cc br...@letterpress.cc > > the email will be picked up by thunderbird with a header like the following > which thunderbird wants to reply to br...@boxcarpress.com and CC to > c...@letterpress.cc > > From br...@boxcarpress.com Fri Sep 17 11:24:27 2010 > Return-Path: <br...@boxcarpress.com> > X-Original-To: c...@letterpress.cc > Delivered-To: br...@boxcarmail.com > Received: from boxcarmail.com (localhost [127.0.0.1]) > by boxcarmail.com (Postfix) with ESMTP id 9C0C45C02A > for <c...@letterpress.cc>; Fri, 17 Sep 2010 11:24:27 -0400 (EDT) > Received: by boxcarmail.com (Postfix, from userid 58) > id 7FDBB5C029; Fri, 17 Sep 2010 11:24:27 -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.129.15]) > by boxcarmail.com (Postfix) with ESMTP id 3DCDE5C024 > for <c...@letterpress.cc>; Fri, 17 Sep 2010 11:24:25 -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 o8HFOQhd009640 > for <c...@letterpress.cc>; Fri, 17 Sep 2010 11:24:26 -0400 (EDT) > Message-ID: <4c938823.7040...@boxcarpress.com> > Date: Fri, 17 Sep 2010 11:24:19 -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.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 > 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 > Status: RO > > > If I send to br...@letterpress.cc I get a header: > > > From br...@boxcarpress.com Fri Sep 17 11:25:24 2010 > Return-Path: <br...@boxcarpress.com> > X-Original-To: br...@letterpress.cc > Delivered-To: br...@boxcarmail.com > Received: from boxcarmail.com (localhost [127.0.0.1]) > by boxcarmail.com (Postfix) with ESMTP id 9E93C5C02A > for <br...@letterpress.cc>; Fri, 17 Sep 2010 11:25:24 -0400 (EDT) > Received: by boxcarmail.com (Postfix, from userid 58) > id 8523D5C029; Fri, 17 Sep 2010 11:25:24 -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.0 required=8.0 > tests=MR_NOT_ATTRIBUTED_IP,NO_RDNS, > 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 F2C4C5C024 > for <br...@letterpress.cc>; Fri, 17 Sep 2010 11:25:22 -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 o8HFPN62009700 > for <br...@letterpress.cc>; Fri, 17 Sep 2010 11:25:23 -0400 (EDT) > Message-ID: <4c93885c.8080...@boxcarpress.com> > Date: Fri, 17 Sep 2010 11:25:16 -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.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 > MIME-Version: 1.0 > To: br...@letterpress.cc > Subject: test2 > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > Content-Transfer-Encoding: 7bit > X-Virus-Scanned: ClamAV using ClamSMTP > Status: RO > > > > > The funny thing is if I rewrite c...@letterpress.cc to br...@letterpress.cc > directly in the mailbox and re-download everything is just fine. Besides > that I don't see any difference. > I don't see how thunderbird would know the dif. Seems silly to me, anyway. > > I forwarded email to gmail instead and everything works, but then I can't > rule out the problem being with forwarding email on the same domain. > > I'm moving from a sendmail setup to postfix, so my understanding of things > is probably just messed up. But basically I want this acting like the > sendmail alias file did in sendmail (Although postfix uses that file for > somethings, it doesn't use it quite the same way). > > I've also included my postconf ouput info in case that is the problem (at > the end). > >> >> http://www.postfix.org/ADDRESS_REWRITING_README.html#william >> > > > alias_maps = hash:/etc/aliases > command_directory = /usr/local/sbin > config_directory = /usr/local/etc/postfix > content_filter = scan:127.0.0.1:10025 > daemon_directory = /usr/local/libexec/postfix > data_directory = /var/db/postfix > debug_peer_level = 2 > default_destination_concurrency_limit = 20 > disable_vrfy_command = yes > header_checks = regexp:/usr/local/etc/postfix/header_checks > html_directory = /usr/local/share/doc/postfix > local_destination_concurrency_limit = 2 > mail_owner = postfix > mailq_path = /usr/local/bin/mailq > manpage_directory = /usr/local/man > message_size_limit = 25000000 > mydestination = $myhostname, localhost.$mydomain, localhost > mydomain = boxcarmail.com > myhostname = boxcarmail.com > mynetworks = 127.0.0.0/8, 174.133.15.34, 174.133.15.35, 174.133.15.36, > 208.125.111.62 > myorigin = $mydomain > newaliases_path = /usr/local/bin/newaliases > queue_directory = /var/spool/postfix > readme_directory = /usr/local/share/doc/postfix > receive_override_options = no_address_mappings > recipient_canonical_maps = hash:/usr/local/etc/postfix/canonical-receive > relay_domains = $mydestination, 127.0.0.1 > sample_directory = /usr/local/etc/postfix > sender_canonical_maps = hash:/usr/local/etc/postfix/canonical > sendmail_path = /usr/local/sbin/sendmail > setgid_group = maildrop > smtpd_helo_required = yes > smtpd_recipient_restrictions = reject_invalid_hostname, > reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, > reject_unknown_sender_domain, reject_unknown_recipient_domain, > permit_mynetworks, reject_unauth_destination, check_helo_access > hash:/usr/local/etc/postfix/helo_checks, reject_rbl_client cbl.abuseat.org, > reject_rbl_client sbl.spamhaus.org, reject_rbl_client pbl.spamhaus.org, > permit > smtpd_sender_restrictions = > regexp:/usr/local/etc/postfix/sender_checks.regexp, check_sender_access > hash:/usr/local/etc/postfix/sender_access, reject_unknown_sender_domain, > reject_non_fqdn_sender, reject_rbl_client, reject_unauth_pipelining > strict_rfc821_envelopes = yes > unknown_client_reject_code = 450 > unknown_hostname_reject_code = 554 > unknown_local_recipient_reject_code = 550 > virtual_alias_domains = bxp.cc, letterpress.cc, bellafigura.com, > smockpaper.com > virtual_alias_maps = hash:/usr/local/etc/postfix/virtual > > > >