gateway — configure a static SMTP route for mail
Gateway = "10.0.0.1"
Gateway = "[fe80::a00]:1"
Gateway = "my.local.smart.host"
This directive allows for what other MTAs call "smarthosting." If this option is specified at the global configuration level, all outbound connections will be made to the host name specified.
As of version 3.4, this feature supports IPv6.
IPv6 addresses are much more flexible than IPv4 addresses in terms of their formatting options. They also use a different delimiter character than IPv4 addresses (a colon instead of a period). This means that in certain contexts, an IPv6 address can create parsing ambiguities.
The accepted convention is to require that, in circumstances where a configuration parameter can also contain something other than an IP address, that an IPv6 address must be enclosed in square brackets. In practical terms, this means that things like the
Listen options must have IPv6 addresses enclosed in brackets. Others, such as
Prohibited_Hosts do not require the IPv6 address in brackets.
If it is specified within a
Domain stanza, Momentum will ignore the MXs for the domain and send mail to the gateway host name instead. Other configurations in the domain stanza for that domain will have no effects if a gateway is specified, as mails to that domain are actually sent to the gateway.
Starting with Momentum 2.2, this option is supplanted in many use case by the Routes option. See routes for more information.
When delivering mail via ecstream, do not use the
routes. Use the
gateway is valid in the binding, binding_group, domain and global scopes.