Typical TCPIP channels and servers

From Messaging Server Technical Reference Wiki
Jump to: navigation, search


Typical TCP/IP channels and servers

In Unified Configuration, several basic tcp_* channels are established by default in the configuration. (Any legacy configuration generated in any relatively modern MTA version will also normally have several basic tcp_* channels defined.) E.g.:


msconfig> show role.channel:tcp_*
role.channel:tcp_local.official_host_name = tcp-daemon
role.channel:tcp_local.daemon = mailgate.domain.com
role.channel:tcp_local.identnonenumeric (novalue)
role.channel:tcp_local.inner (novalue)
role.channel:tcp_local.loopcheck (novalue)
role.channel:tcp_local.maysaslserver (novalue)
role.channel:tcp_local.maytlsserver (novalue)
role.channel:tcp_local.nomx (novalue)
role.channel:tcp_local.pool = SMTP_POOL
role.channel:tcp_local.remotehost (novalue)
role.channel:tcp_local.saslswitchchannel = tcp_auth
role.channel:tcp_local.smtp (novalue)
role.channel:tcp_local.sourcetransitplugin = 1
role.channel:tcp_local.switchchannel (novalue)
role.channel:tcp_intranet.official_host_name = tcp_intranet-daemon
role.channel:tcp_intranet.allowswitchchannel (novalue)
role.channel:tcp_intranet.dequeueremoveroute (novalue)
role.channel:tcp_intranet.loopcheck (novalue)
role.channel:tcp_intranet.maysaslserver (novalue)
role.channel:tcp_intranet.maytlsserver (novalue)
role.channel:tcp_intranet.mx (novalue)
role.channel:tcp_intranet.pool = SMTP_POOL
role.channel:tcp_intranet.saslswitchchannel = tcp_auth
role.channel:tcp_intranet.single_sys (novalue)
role.channel:tcp_intranet.smtp (novalue)
role.channel:tcp_intranet.sourcetransitplugin = 1
role.channel:tcp_submit.official_host_name = tcp_submit-daemon
role.channel:tcp_submit.maytlsserver (novalue)
role.channel:tcp_submit.mustsaslserver (novalue)
role.channel:tcp_submit.saslswitchchannel = tcp_submit
role.channel:tcp_submit.smtp (novalue)
role.channel:tcp_submit.sourcetransitplugin = 1
role.channel:tcp_submit.submit (novalue)
role.channel:tcp_auth.official_host_name = tcp_auth-daemon
role.channel:tcp_auth.mustsaslserver (novalue)
role.channel:tcp_auth.smtp (novalue)
role.channel:tcp_auth.sourcetransitplugin = 1
role.channel:tcp_tas.official_host_name = tcp_tas-daemon
role.channel:tcp_tas.allowswitchchannel (novalue)
role.channel:tcp_tas.deliveryflags = 2
role.channel:tcp_tas.maytlsserver (novalue)
role.channel:tcp_tas.mustsaslserver (novalue)
role.channel:tcp_tas.smtp (novalue)
role.channel:tcp_tas.sourcetransitplugin = 1
msconfig> 

with Dispatcher options (to complete the definitions of the SMTP and SMTP SUBMIT servers) of:


msconfig> show dispatcher.service:*MTP*
role.dispatcher.service:SMTP.image = IMTA_BIN:tcp_smtp_server
role.dispatcher.service:SMTP.logfilename = IMTA_LOG:tcp_smtp_server.log
role.dispatcher.service:SMTP.stacksize = 2048000
role.dispatcher.service:SMTP.tcp_ports = 25
role.dispatcher.service:SMTP_SUBMIT.image = IMTA_BIN:tcp_smtp_server
role.dispatcher.service:SMTP_SUBMIT.logfilename = IMTA_LOG:tcp_submit_server.log
role.dispatcher.service:SMTP_SUBMIT.parameter = CHANNEL=tcp_submit
role.dispatcher.service:SMTP_SUBMIT.stacksize = 2048000
role.dispatcher.service:SMTP_SUBMIT.tcp_ports = 587

This corresponds to what in legacy configuration would appear as channels in the imta.cnf file:


tcp_local daemon mailgate.domain.com identnonenumeric inner loopcheck \
 maysaslserver maytlsserver nomx pool SMTP_POOL remotehost \
 saslswitchchannel tcp_auth smtp sourcespamfilter1 switchchannel
tcp-daemon

tcp_intranet allowswitchannel dequeueremoveroute loopcheck maysaslserver \
 maytlsserver ms pool SMTP_POOL saslswitchchannel tcp_auth single_sys smtp \ 
 sourcespamfilter1
tcp_intranet-daemon

tcp_submit maytlsserver mustsaslserver saslswitchchannel tcp_submit smtp \
 sourcespamfilter1
tcp_submit-daemon

tcp_auth mustsaslserver smtp sourcespamfilter1
tcp_auth-daemon

tcp_tas allowswitchchannel deliveryfalgs 2 maytlsserver mustsaslserver smtp \
 sourcespamfilter1
tcp_tas-daemon


And the corresponding legacy configuration Dispatcher part of the configuration -- the SMTP and SMTP SUBMIT servers -- would be:


!
! multithreaded SMTP server
!
[SERVICE=SMTP]
PORT=25
IMAGE=IMTA_BIN:tcp_smtp_server
LOGFILE=IMTA_LOG:tcp_smtp_server.log
STACKSIZE=2048000
! Uncomment the following line and set INTERFACE_ADDRESS to an appropriate
! host IP (dotted quad) if the dispatcher needs to listen on a specific
! interface (e.g. in a HA environment).
!INTERFACE_ADDRESS=
!
! rfc 2476 Submit server
!
[SERVICE=SMTP_SUBMIT]
PORT=587
! Uncomment the following line if you want to support SSL on the alternate port 465
!TLS_PORT=465
IMAGE=IMTA_BIN:tcp_smtp_server
LOGFILE=IMTA_LOG:tcp_submit_server.log
PARAMETER=CHANNEL=tcp_submit
STACKSIZE=2048000
! Uncomment the following line and set INTERFACE_ADDRESS to an appropriate
! host IP (dotted quad) if the dispatcher needs to listen on a specific
! interface (e.g. in a HA environment).
!INTERFACE_ADDRESS=

At sites using LMTP, so-called "front end" MTAs typically have, in addition to the TCP/IP channels shown above, one or more LMTP client channels, typically with tcp_lmtpcs* sorts of names, appearing in Unified Configuration as:


msconfig> show channel:tcp_lmtpcs*
role.channel:tcp_lmtpcs.backoff = PT5M PT10M PT30M PT1H PT2H PT4H
role.channel:tcp_lmtpcs.connectcanonical (novalue)
role.channel:tcp_lmtpcs.defragment (novalue)
role.channel:tcp_lmtpcs.dequeueremoveroute (novalue)
role.channel:tcp_lmtpcs.fileinto = @$4O:$U+$S@$D
role.channel:tcp_lmtpcs.lmtp (novalue)
role.channel:tcp_lmtpcs.multigate (novalue)
role.channel:tcp_lmtpcs.nomx (novalue)
role.channel:tcp_lmtpcs.official_host_name = lmtpcs-daemon
role.channel:tcp_lmtpcs.pool = SMTP_POOL
role.channel:tcp_lmtpcs.port = 225
role.channel:tcp_lmtpcs.single_sys (novalue)

Or in legacy configuration in the imta.cnf file appearing as:


!
! tcp_lmtpcs (LMTP client - store)
tcp_lmtpcs defragment lmtp multigate connectcanonical fileinto @$4O:$U+$S@$D \
  port 225 nomx single_sys pool SMTP_POOL dequeue_removeroute \
  backoff "PT5M" "PT10M" "PT30M" "PT1H" "PT2H" "PT4H"
lmtpcs-daemon

So-called "back end" LMTP systems run a simplified MTA configuration having only one (LMTP server) channel as discussed in LMTP back end TCP/IP channel.


See also: