Two timing parameters in the channel configuration string control the behavior when connecting to a remote SMTP server to deliver an outbound message. open_timeout is the amount of time (in seconds) that MMDF will wait for the TCP connection to be initially opened. 220_timeout is the amount of time MMDF will wait for a 220 greeting from the remote host (after the TCP connection has been opened).
These are intended only for resolving specific problems. Significantly reducing the timeouts may prevent mail from being delivered. RFC2821 specifies that a host "SHOULD" wait for 5 minutes for the 220 greeting. In particular, an increasingly popular anti-spam method is to require connecting hosts to wait for a substantial amount of time before delivering the 220 greeting, and a short 220 timeout may prevent mail from being delivered to hosts using this method.
The confstr parameter "charset" can be set to the value "8bit" to allow 8-bit characters to be transmitted unencoded. The default is to strip the high bit of all characters, in compliance with RFC821 and RFC2821. The smtp channel does not support 8BITMIME or any other SMTP extensions, so best practice is to transmit 8-bit data using 7-bit MIME encoding.
The following is a typical SMTP channel description from the mmdftailor file:
MCHN smtp, show="SMTP/TCP", que=smtp, tbl=smtp, pgm=smtp, mod=reg, ap=822, confstr="SERING.UUCP"If multiple parameters are given in the configuration string, they should be separated with commas. An example would be:
If host= is specified in the channel description, then the specified host is looked up in the channel table and used as the connect host regardless of the host to which the mail is addressed. This is useful when offloading mail addressed to a variety of destinations to a gateway for further delivery.
For file-based channel tables, smtp uses the RHS of the channel table as the IP address to which to connect. Alternate IP addresses may be specified by putting additional lines in the channel table with the same LHS. For example:
FOO.BAR: 22.214.171.124 FOO.BAR: 10.3.0.8In this case, the smtp channel will attempt connection to 126.96.36.199 first. If the connection fails or if the remote SMTP server doesn't start up in reasonable time, the next address will be tried. In the case of nameserver-type channel tables, multiple IP addresses are tried based on the available MX entries for that host. The port number given for smtp in /etc/services will be used. The default is 25.