Technical article 125437

How can MMDF use a "smarthost" for mail routing on OpenServer?

OpenServer 6.0.0OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6OpenServer 5.0.7

Written · Last revised

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.com

Check that you can speak to the smarthosts' SMTP Email channel with:

# telnet smarthost 25

2) 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.com

Change 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.com

Save 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)

From the Xinuos technical article database, record 125437. Reproduced with permission. The original is at www.sco.com/ta/125437, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.