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