From owner-freebsd-questions@FreeBSD.ORG Thu Feb 28 11:31:55 2008 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 B52B31065671 for ; Thu, 28 Feb 2008 11:31:55 +0000 (UTC) (envelope-from nicolas.kowalski@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.190]) by mx1.freebsd.org (Postfix) with ESMTP id 3D6728FC31 for ; Thu, 28 Feb 2008 11:31:54 +0000 (UTC) (envelope-from nicolas.kowalski@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so4291594fka.11 for ; Thu, 28 Feb 2008 03:31:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type:sender; bh=MG+5RGsnCOTSlYY6kNiSRkjQ3nWh1qjnpCfzbw1dwb8=; b=cYr1+7xq09G6PijTR+z5Hgl8kGnHknjk4Tgw+W0pimmnkB2iGlUPvBiUvcWyj5c+URx43QEQ30UqGN7JAmUrVLgmokxWBaeXVgrt6ke1YzuCgRZzASBXXsXNWAQZEWN+vX8HmP/mCOgpvG3R0eMlyHVXl1239kGnfm7ca9KqqTI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type:sender; b=e5ngvpR78/7EpOnQntrkUbzl+Dse7HmEK00+nwKLRWoXRp6gSyzxPhUc82caevrCVEitMBnG21NJVVZVKMHO2RxlgsC4H3uWCdNcuSRW5Th2WVHYdnQzRfsfZmyc2Nx9slg+p1XkbUCwv2P1v1v3A9fsimYNiQ0PhkIDmsWqJJw= Received: by 10.82.106.14 with SMTP id e14mr14757428buc.3.1204196799676; Thu, 28 Feb 2008 03:06:39 -0800 (PST) Received: from petole.dyndns.org ( [62.34.16.56]) by mx.google.com with ESMTPS id y2sm17180342mug.9.2008.02.28.03.06.38 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Feb 2008 03:06:38 -0800 (PST) Received: by petole.dyndns.org (Postfix, from userid 1000) id 2376367712; Thu, 28 Feb 2008 12:06:36 +0100 (CET) From: Nicolas KOWALSKI To: freebsd-questions@FreeBSD.org References: <15731983.post@talk.nabble.com> Date: Thu, 28 Feb 2008 12:06:36 +0100 In-Reply-To: <15731983.post@talk.nabble.com> Message-ID: <87ir09wdab.fsf@petole.dyndns.org> User-Agent: Gnus/5.110006 (No Gnus v0.6) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Nicolas KOWALSKI Cc: Subject: Re: relay through gmail 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: Thu, 28 Feb 2008 11:31:55 -0000 cuongvt writes: > So I want to change so that when recipients received my mails and > open them, the mail address in "from" of theses mails is > userB@xxx.dyndns.com, not userA@gmail.com. > Is there a way to do that? First declare your userB@xxx.dyndns.com account as an additional account in the Gmail interface. Second, configure postfix to send mail from userB@xxx.dyndns.com through gmail smtp server. In /etc/postfix/main.cf: smtp_sender_dependent_authentication = yes smtp_sasl_auth_enable = yes smtp_sasl_security_options = noanonymous sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay smtp_sasl_password_maps = hash:/etc/postfix/sender_relay_auth /etc/postfix/sender_relay: userB@xxx.dyndns.com [smtp.gmail.com]:587 /etc/postfix/sender_relay_auth: userB@xxx.dyndns.com userA:password_of_userA_on_gmail -- Nicolas