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 1REIHV-0000Jl-Sz for garchives@archives.gentoo.org; Thu, 13 Oct 2011 10:12:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 16D3E21C045; Thu, 13 Oct 2011 10:12:42 +0000 (UTC) Received: from svr-us4.tirtonadi.com (svr-us4.tirtonadi.com [69.65.43.212]) by pigeon.gentoo.org (Postfix) with ESMTP id E293921C02F for ; Thu, 13 Oct 2011 10:11:45 +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 1REIGQ-000D29-OO for Gentoo-user@lists.gentoo.org; Thu, 13 Oct 2011 17:11:46 +0700 Received: by bkbzt12 with SMTP id zt12so1527268bkb.40 for ; Thu, 13 Oct 2011 03:11:41 -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.1.131 with SMTP id 3mr5261906faf.30.1318500700868; Thu, 13 Oct 2011 03:11:40 -0700 (PDT) Received: by 10.223.79.10 with HTTP; Thu, 13 Oct 2011 03:11:40 -0700 (PDT) Date: Thu, 13 Oct 2011 17:11:40 +0700 Message-ID: Subject: [gentoo-user] 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: 70fa33e2614fc02b645edc5a59c4ee48 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) settin= gs: *) 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.77.= 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? TIA. 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