Dear Wiki user, You have subscribed to a wiki page or wiki category on "James Wiki" for change notification.
The "SmartOrSecondaryHost" page has been changed by ChanochWiggers. The comment on this change is: spelling correction. http://wiki.apache.org/james/SmartOrSecondaryHost?action=diff&rev1=4&rev2=5 -------------------------------------------------- '''Configuring James to be a Smarthost or Secondary MX''' ---- - This page describes how to configure James to act as a bidirectional MX (receives mail on behalf of internal server{s} and relays mail out for same) without being a spam relay. This is also known as a "smart host" configuration in some cicles. It could also be used to add a second MX for loading balancing or failover. The former solution is typical for sites that wish to prevent direct communications to internal systems thus: + This page describes how to configure James to act as a bidirectional MX (receives mail on behalf of internal server{s} and relays mail out for same) without being a spam relay. This is also known as a "smart host" configuration in some circles. It could also be used to add a second MX for loading balancing or failover. The former solution is typical for sites that wish to prevent direct communications to internal systems thus: {{attachment:james_config_smart_host.png}} @@ -19, +19 @@ {{attachment:james_config_load_balance.png}} - where DNS records are used to identify muliple systems handling mail for the domain (although I suppose that one could use some sort of hardware based device if really pressed to do so). Load Balancing is accomplished by setting up an MX record for each of the mail servers with the same MX number, while failover requires that the failover server have a higher MX number. + where DNS records are used to identify multiple systems handling mail for the domain (although I suppose that one could use some sort of hardware based device if really pressed to do so). Load Balancing is accomplished by setting up an MX record for each of the mail servers with the same MX number, while failover requires that the failover server have a higher MX number. Load Balancing MX DNS Example: @@ -36, +36 @@ IN MX 20 deedee.apache.org. }}} - Likewise, setting a remote secondary mail server is done by creating a second MX record in DNS that points to a remote server. This record must have a higher MX number than the primary server to ensure that the primary server is used if available. Should the primary server become inaccessible, the secondary server will accept mail on the domain's behalf (spooling it until the primary server comes back on line). Note: It is a good idea to make sure that DNS servers also span sites to ensure that the mail will flow should the problem be network oriented. + Likewise, setting a remote secondary mail server is done by creating a second MX record in DNS that points to a remote server. This record must have a higher MX number than the primary server to ensure that the primary server is used if available. Should the primary server become inaccessible, the secondary server will accept mail on the domain's behalf (spooling it until the primary server comes back on line). Note: It is a good idea to make sure that DNS servers also span geographical sites to ensure that the mail will flow should the problem be network related. Seconday (remote) MX DNS Example: @@ -47, +47 @@ {{attachment:james_config_secondary.png}} - Of course, the approaches may be combined thus: + Of course, the approaches may be combined thusly: Load Balancing MX DNS Example:
