Gentoo Archives: gentoo-user

From: Pandu Poluan <pandu@××××××.info>
To: gentoo-user <Gentoo-user@l.g.o>
Subject: [gentoo-user] Postfix to relay mail even if acting as primary MX host?
Date: Thu, 13 Oct 2011 10:12:54
Message-Id: CAA2qdGUyBWPyya9iryz12u26=MwfpwFpomyLV+aLurV8EbM8qA@mail.gmail.com
1 Okay, I'm still scratching my head here.
2
3 Scenario: Having a Postfix server in the cloud to act as the primary
4 MX, but actually forwarding the emails to my company's email server
5 behind the firewall.
6
7 For the purposes of my scenario, here are the relevant (but mangled) settings:
8
9 *) Domain is "example.com"
10 *) Postfix server is "mailer.example.com" with the IP 55.66.77.88
11 *) Company email server is accessible via 11.22.33.44:5225
12 *) Firewall only allows incoming traffic to 11.22.33.44:5225 from 55.66.77.88
13 *) I want to set MX for "example.com" to "mailer.example.com"
14
15 I saw the "relay_domains" and "relayhost" settings, oh good. But then
16 I ran smack-drab to the following "NOTE":
17
18 # NOTE: Postfix will not automatically forward mail for domains that
19 # list this system as their primary or backup MX host. See the
20 # permit_mx_backup restriction description in postconf(5).
21
22 So, if I set "relay_domains = example.com" and "relayhost =
23 [11.22.33.44]:5225", yet have "mailer.example.com" as the primary MX
24 for the domain "example.com", the emails won't be relayed to
25 11.22.33.44:5225, right?
26
27 Can anyone help me configure Postfix to actually do what I want, e.g.,
28 to *still* relay emails destined to @example.com to the address
29 11.22.33.44:5225?
30
31 TIA.
32
33 Rgds,
34 --
35 FdS Pandu E Poluan
36 ~ IT Optimizer ~
37
38  • LOPSA Member #15248
39  • Blog : http://pepoluan.tumblr.com
40  • Linked-In : http://id.linkedin.com/in/pepoluan

Replies

Subject Author
[gentoo-user] Re: Postfix to relay mail even if acting as primary MX host? Pandu Poluan <pandu@××××××.info>
Re: [gentoo-user] Postfix to relay mail even if acting as primary MX host? kashani <kashani-list@××××××××.net>