Changes between Version 1 and Version 2 of postfix-multi-relay


Ignore:
Timestamp:
Jan 2, 2013, 3:25:33 PM (6 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • postfix-multi-relay

    v1 v2  
    33We are running two servers (rustin in Telehouse and cleveland in XO) that are configured to run multiple instances of postfix.
    44
    5 These servers relay mail on behalf of our servers than send bulk mail:
     5These servers relay mail on behalf of our servers that send bulk mail:
    66
    77 * leslie.mayfirst.org (lists.mayfirst.org)
     
    99 * morales.mayfirst.org (lists.portside.org)
    1010 * mx3.mayfirst.org (listas.laneta.apc.org)
     11
     12== The relays ==
     13
     14Currently, there is only one relay setup on rustin. The setup is handled in puppet by the following lines in rustin's pp file:
     15
     16{{{
     17 class { "m_postfix::multi":
     18    smtp_bind_ip => "216.66.22.61",
     19    multi_instance_directories => [ "postfix-a" ]
     20  }
     21  m_postfix::multi_relay_instance { "postfix-a":
     22   smtp_bind_ip => "216.66.23.37",
     23   mynetworks => $::mfpl_relaying_ips
     24  }
     25}}}
     26
     27The first stanza should be included once for each host.
     28
     29The second stanza should be repeated for each relay instance on that host.
     30
     31When adding a new instance:
     32
     33 * Create a DNS Host record that associates the IP address to the host
     34   (e.g. rustin.mayfirst.org <=> 216.66.23.37).
     35 * Create an A record set to a.rustin.mayfirst.org (or b or c, etc corresponding
     36   to how you have named the instance).
     37
     38== Using the relay ==
     39
     40To use a relay, add an entry to /etc/postfix/transport.relay, e.g.:
     41
     42{{{
     43hotmail.com     smtp:a.rustin.mayfirst.org
     44}}}
     45
     46The line above says: relay all mail destined for hotmail.com through a.rustin.mayfirst.org.
     47
     48At the moment this must be done by hand on each individual server. Once fully tested, it will be handled by puppet.