public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Postfix to relay mail even if acting as primary MX host?
@ 2011-10-13 10:11 Pandu Poluan
  2011-10-13 10:17 ` [gentoo-user] " Pandu Poluan
  2011-10-15  1:13 ` [gentoo-user] " kashani
  0 siblings, 2 replies; 7+ messages in thread
From: Pandu Poluan @ 2011-10-13 10:11 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-10-15 20:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-13 10:11 [gentoo-user] Postfix to relay mail even if acting as primary MX host? Pandu Poluan
2011-10-13 10:17 ` [gentoo-user] " 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox