If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):
From: dowagiac_2000@yahoo.com (Matt Lewis) Subject: MMDF to Sendmail 8.11.0 howto SCO Openserver 5.0.x Date: 18 Jun 2002 11:32:42 -0700 I have had so many questions on using SCO Openserver answered here. I hope this howto helps a few. I just converted a system running SCO Openserver 5.0.5 from MMDF to Sendmail. The system has 300 users and the installation did not go very smoothly. Here is all the information I gleaned in the process of doing this conversion. Any questions or comments to dowagiac_2000@yahoo.com. This procedure will install Sendmail 8.11.0 and Webmin for SCO which has very nice graphical admin tools for Sendmail. Beyond this installation I suggest getting a good guide to Sendmail. sco-generic.mc file attached at bottom.
------------------------------------------------------------------------------------------------------- Installing Sendmail 8.11.0 on SCO OpenServer 5.0.x June 17, 2002 Introduction To thwart the ever-growing problem of junk and spam email which in many cases cripples systems and daily business operations it will be necessary to convert a growing number of systems to newer and more secure methods of mail deliver. Methods to implement include the blocking of mail relaying through systems. Checks of who is sending mail and who is authorized to do so. Creation of black-listed senders from which mail will always be rejected. Creation of white-lists specifing each individual who is allowed mail access while denying all others. Advantages of Sendmail over MMDF a_ Better Relay checking b_ Reverse DNS failure rejection c_ Hosts, user, and network access restrictions applicable d_ Better industry support, documentation and ongoing development over MMDF or similiar mailers. e_ Graphical Administration tools available for most environments including SCO OpenServer 5.0.x
Preparing for Upgrade
1. Backup the usr mail files in /usr/spool/mail/
cp -rp /usr/spool/mail ;; to preserve permissions on mail spool
files. Uninstalling mmdf or sendmail will remove these.
Backup the mmdf aliases file /usr/mmdf/table/alias.n. This will later
be appended to /usr/lib/mail/aliases for sendmail
Backup the mmdftailor config file /usr/mmdf/mmdftailor for reference
2. To uninstall mmdf issue
custom -p SCO:odtes -d SCO:MMDF
3. By default Openserver 5.0.5 has sendmail 8.8.8b installed. You
should not use this as many known exploits exist for this version of
sendmail. Also many of the anti-spam features of sendmail are not
fully implemented in this version
The newest complete Sendmail package available from SCO is part
of supplement rs506a meant for Openserver 5.0.6. Included is Sendmail
8.11.0. This supplement will work on Openserver 5.0.5 and according
to comp.unix.sco.misc posts will also work for Openserver 5.0.4
Downloading the Software
1. ftp.caldera.com /pub/openserver5/rs506a/rs506a.tar
2. scoadmin software
Select Install new from Media Images. This will list several
different components which can be installed. Only select Sendmail and
install. The installation procedure will have an error. Ignore this
error with 'i' and continue the Sendmail installation.
3. Now download the sendmail.8.11.0.tar.Z from
http://www.planetmirror.com/pub/sendmail/past-releases/
We are only downloading the sendmail distribution to get the m4
files for sendmail.cf
4. Uncompress and untar sendmail.8.11.0.tar.Z in /usr/local/
cd /usr/local/sendmail.8.11.0/cf/cf/
cp sco-generic.mc to this directory
Creating the config file Sendmail.cf
1. Use the sco-generic.mc file I have provided(include at bottom of
this howto) for specific use with SCO Openserver.
m4 sco-generic.mc > test.cf will process the configuration
directives and create our initial configuration
2. cp test.cf /usr/lib/sendmail.cf
3. Now create the files referenced in sco-generic.mc
4. > /usr/lib/mail/access :: Access database crucial for Anti-Spam
> /usr/lib/mail/relay-domains :: List of hosts we will relay mail
for
> /usr/lib/mail/local-host-names :: List of names the local host is
known by
cd /usr/lib/mail/
makemap hash access < access
makemap hash relay-domains < relay-domains
local-host-names is a plain text file and needs no special
processing.
5. Now append the saved alias.n file from the MMDF setup to
/usr/lib/mail/aliases
cat alias.n >> /usr/lib/mail/aliases
Edit aliases removing MMDF specific text, leaving the aliases behind
Issue
newaliases ; builds the aliases database
Add to /usr/lib/mail/local-host-names ; names which the mail server is
known by exa.
test-domain.com
nmc.test-domain.com
nmc
6. For Anti-Spam to have a change we must have reverse DNS
Make the following entries in /etc/resolv.conf
exa.
domain test-domain.com
nameserver 64.65.208.6
nameserver 64.65.196.6
hostresorder local bind nis
7. Now issue
/etc/init.d/sendmail start
If lucky everything is fine.
To test issue swaping username@domain.com for your own
/usr/lib/sendmail -v username@domain.com < /dev/null
If this delivers sendmail should be properly configured.
To check remote access: exa
--
telnet nmc.test-domain.com 25
Trying 209.131.73.132...
Connected to nmc.test-domain.com.
Escape character is '^]'.
220 nmc.test-domain.com ESMTP Sendmail 8.11.0/8.11.0; Mon, 17 Jun 2002
19:
59:34 GMT
mail from:<mal@testdomain.com>
250 2.1.0 <mal@testdomain.com>... Sender ok
rcpt to:<wwi@test-domain.com>
250 2.1.5 <wwi@test-domain.com>... Recipient ok
data
354 Enter mail, end with "." on a line by itself
.
250 2.0.0 g5HJxks13843 Message accepted for delivery
quit
221 2.0.0 nmc.test-domain.com closing connection
Connection closed by foreign host.
--
8. Check /usr/adm/syslog for sendmail errors.
Notes:
1. In sco-generic.mc you will see an entry for
define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')dnl
This is to accomodate for an error with Openserver resolve.
$ nslookup 9838384.com
Server: ns4.choiceone.net
Address: 64.65.208.6
Name: 9838384.com.test-domain.com
Notice that the local domain name gets appended.
Now lets pass some options to nslookup
$ nslookup
Default Server: ns4.choiceone.net
Address: 64.65.208.6
> set nodefname
> set nosearch
> 98387473.com
Server: ns4.choiceone.net
Address: 64.65.208.6
*** ns4.choiceone.net can't find 98387473.com: Non-existent
host/domain
I looked and looked for the solution to add an option to
/etc/resolv.conf finally I added an option to Sendmail so that this
problem would not occur.
------------------------------------------------------------------------------------------------
Graphical Sendmail Administration
Webmin (www.webmin.com) is a web based interface for configuring and
maintaining many aspects of a system. It is driven by perl scripting
and thus very portable to many platforms. The currently available
version 0.98 fully supports SCO Openserver and is an especially good
solution for maintanence and admin of many less understood system
services such as Sendmail.
Installation
1. Download Perl package from
ftp://ftp2.caldera.com/pub/skunkware/osr5/vols/
2. Install as a package using
scoadmin software -> Install new
3. Download the newest version of Webmin from www.webmin.com. SCO
does have a version of Webmin in the Skunkware distribution at
ftp2.caldera.com/pub/skunkware/osr5/vols/. Installation of Webmin
from www.webmin.com is smoother for SCO Openserver though
4. Untar webmin in /usr/local/
This will create a directory /usr/local/webmin-0.9x.x
cd /usr/local/webmin-0.9x.x
./setup.sh
This script will prompt you for several items. Leave everything at
default except the following items.
Config files
/usr/local/etc/webmin
Log files
/usr/local/log/webmin
Admin user is root not admin as the default
Once webmin is installed you can start and stop the server with the
following commands.
/usr/local/etc/webmin/start
/usr/local/etc/webmin/stop
5. Now open a browser and type in the hostname or ip address of the
host and the port that you installed Webmin the default being 10000.
examples
http://nmc.test-domain.com:10000
http://209.131.73.132:10000
6. Login with root and root password
7. Configure Webmin users and modules. Very good documentation on
Webmin and all modules it contains are available at www.webmin.com
Appended here is the sco-generic.mc
---------------------------------------------------------------------
divert(-1)
#
# Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
# All rights reserved.
# Copyright (c) 1983 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
# Written for SCO OpenServer 5.0.x June 10th, 2002 Matt Lewis
divert(0)dnl
include(`/usr/local/sendmail-8.11.0/cf/m4/cf.m4')
#This defines local variables for OpenServer
VERSIONID(`$Id: sco-generic.mc,v 8.16 1999/04/24 05:37:43 gshapiro Exp
$')dnl
OSTYPE(`sco3.2')
define(`ALIAS_FILE',`/usr/lib/mail/aliases')dnl
FEATURE(`access_db',`hash /usr/lib/mail/access')dnl
#Listing of hosts we relay for
define(`confCR_FILE',`/usr/lib/mail/relay-domains')dnl
MASQUERADE_AS(`testdomain.com')dnl
# Needed to fix error with /usr/lib/uucp/ permission on SCO OpenServer
5.0.x
define(`confDONT_BLAME_SENDMAIL',`GroupWritableDirPathSafe')dnl
# Cut down on spam set Max recipents to 15
define(`confMAX_RCPTS_PER_MESSAGE',`15')dnl
# File containing hosts we accept mail for locally
define(`confCW_FILE',`/usr/lib/mail/local-host-names')dnl
FEATURE(use_cw_file)dnl
#This is important takes care of Wild Card MX records and a problem
with OpenServer resolve
define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')dnl
MAILER(smtp)dnl
/Bofcusm/1623.html copyright 1997-2004 (various authors) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar