From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1REINJ-0001Is-00 for garchives@archives.gentoo.org; Thu, 13 Oct 2011 10:18:53 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 66F9F21C07D; Thu, 13 Oct 2011 10:18:44 +0000 (UTC) Received: from svr-us4.tirtonadi.com (svr-us4.tirtonadi.com [69.65.43.212]) by pigeon.gentoo.org (Postfix) with ESMTP id C3AD521C02D for ; Thu, 13 Oct 2011 10:17:51 +0000 (UTC) Received: from mail-bw0-f53.google.com ([209.85.214.53]) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1REIML-000FfK-53 for Gentoo-user@lists.gentoo.org; Thu, 13 Oct 2011 17:17:53 +0700 Received: by bkbzt12 with SMTP id zt12so1534843bkb.40 for ; Thu, 13 Oct 2011 03:17:47 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.223.75.25 with SMTP id w25mr5355824faj.15.1318501067815; Thu, 13 Oct 2011 03:17:47 -0700 (PDT) Received: by 10.223.79.10 with HTTP; Thu, 13 Oct 2011 03:17:47 -0700 (PDT) In-Reply-To: References: Date: Thu, 13 Oct 2011 17:17:47 +0700 Message-ID: Subject: [gentoo-user] Re: Postfix to relay mail even if acting as primary MX host? From: Pandu Poluan To: gentoo-user Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Archives-Salt: X-Archives-Hash: 2f8d5bed7c6ed5160d52f992e615dd16 On Thu, Oct 13, 2011 at 17:11, Pandu Poluan wrote: > Okay, I'm still scratching my head here. > > Scenario: Having a Postfix server in the cloud to act as the primary > MX, but actually forwarding the emails to my company's email server > behind the firewall. > > For the purposes of my scenario, here are the relevant (but mangled) sett= ings: > > *) Domain is "example.com" > *) Postfix server is "mailer.example.com" with the IP 55.66.77.88 > *) Company email server is accessible via 11.22.33.44:5225 > *) Firewall only allows incoming traffic to 11.22.33.44:5225 from 55.66.7= 7.88 > *) I want to set MX for "example.com" to "mailer.example.com" > > I saw the "relay_domains" and "relayhost" settings, oh good. But then > I ran smack-drab to the following "NOTE": > > # NOTE: Postfix will not automatically forward mail for domains that > # list this system as their primary or backup MX host. See the > # permit_mx_backup restriction description in postconf(5). > > So, if I set "relay_domains =3D example.com" and "relayhost =3D > [11.22.33.44]:5225", yet have "mailer.example.com" as the primary MX > for the domain "example.com", the emails won't be relayed to > 11.22.33.44:5225, right? > > Can anyone help me configure Postfix to actually do what I want, e.g., > to *still* relay emails destined to @example.com to the address > 11.22.33.44:5225? > I found this: http://www.postfix.org/STANDARD_CONFIGURATION_README.html#backup is that the configuration I should use? Rgds, --=20 FdS Pandu E Poluan ~ IT Optimizer ~ =C2=A0=E2=80=A2 LOPSA Member #15248 =C2=A0=E2=80=A2 Blog : http://pepoluan.tumblr.com =C2=A0=E2=80=A2 Linked-In : http://id.linkedin.com/in/pepoluan