public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Pandu Poluan <pandu@poluan.info>
To: gentoo-user <Gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] Postfix to relay mail even if acting as primary MX host?
Date: Thu, 13 Oct 2011 17:11:40 +0700	[thread overview]
Message-ID: <CAA2qdGUyBWPyya9iryz12u26=MwfpwFpomyLV+aLurV8EbM8qA@mail.gmail.com> (raw)

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) settings:

*) 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 = example.com" and "relayhost =
[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,
-- 
FdS Pandu E Poluan
~ IT Optimizer ~

 • LOPSA Member #15248
 • Blog : http://pepoluan.tumblr.com
 • Linked-In : http://id.linkedin.com/in/pepoluan



             reply	other threads:[~2011-10-13 10:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-13 10:11 Pandu Poluan [this message]
2011-10-13 10:17 ` [gentoo-user] Re: Postfix to relay mail even if acting as primary MX host? Pandu Poluan
2011-10-13 17:56   ` Michael Orlitzky
2011-10-14  1:02     ` Pandu Poluan
2011-10-15  1:13 ` [gentoo-user] " kashani
2011-10-15  5:00   ` Pandu Poluan
2011-10-15 20:41     ` kashani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA2qdGUyBWPyya9iryz12u26=MwfpwFpomyLV+aLurV8EbM8qA@mail.gmail.com' \
    --to=pandu@poluan.info \
    --cc=Gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox