APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS

















02/28/2003 9:14 AM Sendmail SCO OSR5



02/28/2003 9:14 AM Sendmail SCO OSR5

While helping a customer with a sendmail issue I was reminded that stock SCO doesn't include a suitable .mc file. This customer wants to rewrite the user names so that when mail goes out it appears to come from a completely different name. That appears to be possible with the "genericstable" feature of 8.8 and up:

You'd add

FEATURE(`genericstable', `dbm /etc/mail/genericstable')dnl) to your .mc file.

You'd create "yourlist" containing lines like: fred fred_jones@wherever.com

and then

makemap dbm /etc/mail/genericstable < yourlist

then remake the cf as usual. But without a starting .cf, you can't do much.

http://dbforums.com/arch/183/2002/6/409937 looks like a good howto for upgrading Openserver to a more recent sendmail.

The .mc file there is badly wrapped: (and isn't fixed here yet either but I'm working at it!)

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




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



/Blog/B22.html copyright 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.

Publishing your articles here

Jump to Comments



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.


book graphic unix and linux troubleshooting guide

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!



 I sell and support
 Kerio Mail server






More:


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress