SCO Unix»How to install mvmail for Unix»sendmail installation»Email networking scripts
  • RSS Feed

Last modified on 1/7/2015 9:19 AM by User.

Tags:

Email networking scripts

Edit /etc/resolv.conf
 

Mvmail requires a /etc/resolv.conf file that contains the domain names and IP addresses for the Profits Plus server and any other DNS servers in the customer’s network. Normally the mvmail installation will send our MVS /etc/resolv.conf file as a starting point. However, if the machine already had a /etc/resolv.conf file then the MVS version would have been sent as /etc/resolv.mvs and you will have to make sure their resolv.conf file contains the same lines as the MVS version.

Edit their /etc/resolv.conf file to match their domain names and IP addresses. You may have to talk to the customer’s network administrator to get the required information.



Edit S98mvroute file

You may or may not need to do this. These instructions tell you how to find out.

In order for email to work, SCO needs to know the IP address of the default network router. This is sometimes called the "default gateway". This is loaded at boot time in the startup script /etc/rc2.d/S98mvroute (a sample is at the bottom of this page).

Note: We don’t use the S90iproute file that comes with SCO because it can hang if the remote machine at the ip address isn’t up when the Profits Plus server is booting. Our S98mvroute script only tries to connect to ip addresses that can be pinged successfully at boot time. If the file /usr/internet/etc/sco_ip/routes doesn’t exist then you know the S90iproute script isn’t used at boot time (and that’s a good thing).

Caution: The network connection to the default router might already be in some other startup script on the Profits Plus server so you will have to do the following test to find out.
Grep all the existing startup scripts to see if they already have established a network connection to a default router. Use this grep command to find out.
     cd /etc/rc2.d
     grep “add default” S*


If the grep returned an active startup script line something like the one below, then they already have a default router connection and you won’t have to add the S98mvroute script:

/etc/route –n add default 192.168.100.20



How to install the S98mvroute script


• Modify the /u/mvs/sco/bin/S98mvroute script so that it contains the correct IP address for the customer’s default router.
• The version of S98mvroute in the /u/mvs/sco/bin directory has no effect. It is there just for reference.
• Copy the modified /u/mvs/sco/bin/S98mvroute script to /etc/re2.d
• Execute the S98mvroute script from the command line so you won’t have to re-boot the computer.



This is a sample S98mvroute script showing where you will have to modify it with the customer’s default router ip address (highlighted in yellow).
:
#
# @(#) S98mvroute 1.0 00/06/29
#
# **************************************************************************
#
# Copyright (C) M.V. Software Company, 2000.
#
# All rights reserved. No part of this program or publication may be
# reproduced, transmitted, transcribed, stored in a retrieval system,
# or translated into any language or computer language, in any form or
# by any means, electronic, mechanical, magnetic, optical, chemical,
# biological, or otherwise, without the prior written permission of:
#
# M.V. Software Company, 651 N. Rochester Rd., Clawson, MI., 48017
#
#
# **************************************************************************
#
#
# This file should be Named "S98mvroute" and must be located in the
# Directory "/etc/rc2.d" with all Execution Permissions set to enable
# auto-execution during a reboot. Should any listed Network Address be
# unreachable when a (re)boot occurs, then routes to the associated
# Addresses will NOT be added automatically. This file can be executed
# MANUALLY to add the missing routes after the System has finished
# booting and all of the listed Addresses are reachable... RFW.
#
#
ip_addr=192.168.100.20
echo "Checking / adding default route ($ip_addr)..."
ping -c 3 $ip_addr > /tmp/tstdefroute
sleep 5
if grep -c -e '3 packets received' /tmp/tstdefroute > /dev/null
then
   /etc/route -n add default $ip_addr
   echo "Default route added..."
else
   echo "Default route IP didn't respond, bypassing add request..."
fi