From owner-freebsd-questions@FreeBSD.ORG Tue Jul 31 22:38:16 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0525C16A41B for ; Tue, 31 Jul 2007 22:38:16 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id D0E0913C459 for ; Tue, 31 Jul 2007 22:38:15 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 714B25190F for ; Tue, 31 Jul 2007 18:38:13 -0400 (EDT) Date: Tue, 31 Jul 2007 23:38:11 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070731233811.73b6e7bc@gumby.homeunix.com.> In-Reply-To: <62b856460707311103j5e648552kdeb1eba9ecff06e1@mail.gmail.com> References: <62b856460707311103j5e648552kdeb1eba9ecff06e1@mail.gmail.com> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: relaying mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2007 22:38:16 -0000 On Tue, 31 Jul 2007 20:03:50 +0200 "Michael Grant" wrote: > In one of my domains, I have the MX record for it set up to my server. > But for one of the users within that domain, their mail needs to be > shuffled off to a different server at google. But I can't just > forward it because it's like an MX host I'd need to forward it to. > And I can't alter the MX to point to google for the entire domain > because it's only one user within that domain, the other users will be > screwed in that case. > > For example, mydomain.com, let's say the mx for that comes to my box. > For joe@mydomain.com, I need to send his mail to ASPMX.L.GOOGLE.COM as > if it were the MX for mydomain.com. > > In the old days, one would simply forward email to > joe%mydomain.com@ASPMX.L.GOOGLE.COM. That would cause mydomain.com's > sendmail to connect to ASPMX.L.GOOGLE.COM and shove down a message for > joe@mydomain.com. But that seems long deprecated because it didn't > seem to work. > > I am using sendmail and procmail. Can anyone think of some way I can > cause something like this to happen for just one user, ideally in a > .procmailrc file? > I'm not really sure what you asking here, ASPMX.L.GOOGLE.COM doesn't even have an mx record. If this person has a gmail account, just forward it to his gmail address, IIRC he has to configure the joe@mydomain.com address as one of his own addresses to prevent google seeing it as spam.