Problem
I wish to configure MMDF on OpenServer to use a "smarthost" mail server.
A "smarthost" mail server is a server that can send mail to the internet or handles the delivery of mail to another domain on an intranet.
There are many reasons for this configuration; for example firewalls, security, funneling of network traffic to go through one server, or lack of DNS on this OpenServer system.
Solution
1) Edit the /etc/hosts file and enter the information for
the destined "smarthost". This should be in the following form:192.168.1.2 smarthost smarthost.domain.comCheck that you can speak to the smarthosts' SMTP Email channel with:
# telnet smarthost 252) Run "mkdev mmdf" to access the MMDF Configuration Manager.
3) Make sure the hostname is correct and that MMDF is
configured for TCP/IP. If TCP/IP does say configured, highlight the
check box next to TCP/IP.4) Select the desired format for the mail user address.
5) Select "Do not use nameservice for Mail" in the Select Nameserver look up method.
6) Click/select the "Forwarding..." button under "Additional Options" section on the left.
7) Select the "Forward mail for unknown hosts" and enter the name of the server to receive all non-local mail from this server. For Example: smarthost.domain.com
8) Select the "Forward mail for unknown users" and enter the name of the server from step 5.
9) Hit OK on both screens to properly update MMDF.
10) Send a test email to the internet.
NOTES: By default, MMDF will use the "host" for the delivery mode
for the channel. This does slow down the delivery of the
emails to be sent out. The "imm" delivery is the fastest
form of delivery. To change this behavior, edit the
/usr/lib/mmdftailor file and search for the 2 newly added
channels. This is an example of them:MCHN show="Smart-host Routing for hosts", name=badhosts, que=badhosts, tbl=smtpchn, pgm=smtp, ap=822, mod=host,
confstr="charset=7bit,hostname="openserver.domain.com", host=smarthost.domain.com MCHN show="Smart-host routing for users", name=badusers, que=badusers, tbl=smtpchn, pgm=smtp, ap=822, mod=host,
confstr="charset=7bit,hostname="openserver.domain.com",
host=smarthost.domain.comChange the mod=host section of both channels to mod=imm, like so:
MCHN show="Smart-host Routing for hosts", name=badhosts, que=badhosts, tbl=smtpchn, pgm=smtp, ap=822, mod=imm,
confstr="charset=7bit,hostname="openserver.domain.com", host=smarthost.domain.com MCHN show="Smart-host routing for users", name=badusers, que=badusers, tbl=smtpchn, pgm=smtp, ap=822, mod=imm,
confstr="charset=7bit,hostname="openserver.domain.com",
host=smarthost.domain.comSave this file and rebuild the MMDF databases:
# /usr/mmdf/table/dbmbuild -vn See also
TA112461 "Local MMDF email is not being delivered locally and is waiting in queue"
TA107230 "MMDF Troubleshooting Techniques"mmdf (ADM), mmdfalias (ADM), mmdftailor (F), checkaddr (ADM), checkque (ADM), checkup (ADM), dbmbuild (ADM), deliver (ADM)