SUMMARY: adding SGI as mail client of Sun server

From: Todd Pfaff (todd@flex.eng.mcmaster.ca)
Date: Fri Nov 06 1992 - 21:29:03 CST


I asked:

> I want to add an SGI system as a mail client of a Sun server. That is,
> I want to mount /usr/spool/mail from our Sun mail server on the SGI
> and have all mail forwarded to the Sun server, as I've done with all
> the Sun clients in our network. Should it be as simple as using Sun's
> subsidiary sendmail.cf on the SGI and mounting the server's /usr/spool/mail?

Someone sent the following sendmail.cf which works for me. I edited the DH
and Dm lines to reflect our host and domain name and then copied it into
/usr/lib. I mounted the server's /usr/spool/mail on /usr/mail and restarted
sendmail (actually, sendmail doesn't have to be running on the client host but
I run it anyway). This sendmail.cf looks like Sun's sendmail.cf.subsidiary
but with the OR option removed and additional rules for forwarding all
messages to the server host. Possibly the OR option is specific to Sun's
sendmail?

Other people suggested using IDA Sendmail which is described in the
November issue of UnixWorld.

Thanks for the responses.

###########################################################
#
# SENDMAIL CONFIGURATION FILE FOR NFS CLIENTS.
#
# You should install this file as /etc/sendmail.cf
# if want mail to appear to come from one central server
# and not to be delivered localy. For ease of use, you
# should then NFS mount the servers /usr/spool/mail on
# the local /usr/spool/mail.
#
# All this cf does is change any reference to the local
# hostname to the name of the server, and then send the
# mail to the server. All other address parsing is handed
# off to the server.
#
# I believe that this configuration functions correctly, however:
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
# Written by Spike (spike@world.std.com). Also check out his cool
# Server cf.

# my official hostname
Dj$w

# major relay mailer
DMTCP

# This is the name of the major relay so we can change our name.
# CHANGE THIS
# For example:
DHflex.eng.mcmaster.ca

#################################################
#
# General configuration information

# local domain name
# For example:
Dmeng.mcmaster.ca

# Version number of configuration file
DVSpike-2.0

### Standard macros

# name used for error messages
DnMailer-Daemon
# UNIX header format
DlFrom $g $d
# delimiter (operator) characters
Do.:%@!^=/[]
# format of a total name
#Dq$g$?x ($x)$.
# This tends to get the Fullname added correctly
Dq<$g>
# SMTP login message
De$j Sendmail $v/$V ready at $b

### Options

# location of alias file
OA/etc/aliases
# default delivery mode (deliver in background)
Odbackground
# rebuild the alias file automagically
OD
# temporary file mode -- 0600 for secure mail, 0644 for permissive
OF0600
# default GID
Og1
# location of help file
OH/usr/lib/sendmail.hf
# log level
OL9
# default messages to old style
Oo
# Cc my postmaster on error replies I generate
OPPostmaster
# queue directory
OQ/usr/spool/mqueue
# read timeout for SMTP protocols
Or15m
# status file -- none
OS/etc/sendmail.st
# queue up everything before starting transmission, for safety
Os
# return queued mail after this long
OT3d
# default UID
Ou1

### Message precedences
Pfirst-class=0
Pspecial-delivery=100
Pjunk=-100

### Trusted users
T root daemon uucp

### Format of headers
H?P?Return-Path: <$g>
HReceived: $?sfrom $s $.by $j $?r with $r$.
        ($v/$Z/ident-1.0) id $i; $b $?F
        (rfc931-sender: $F@$S)$.
H?D?Resent-Date: $a
H?D?Date: $a
H?F?Resent-From: $q
H?F?From: $q
H?x?Full-Name: $x
HSubject:
H?M?Resent-Message-Id: <$t.$i@$j>
H?M?Message-Id: <$t.$i@$j>
HErrors-To:

###########################
### Rewriting rules ###
###########################

# Sender Field Pre-rewriting
S1
# None needed.

# Recipient Field Pre-rewriting
S2
# None needed.

# Name Canonicalization

# The magic to change the mail to make it look like it comes from the sever
# machine. If the address contains no hostname or our hostname, we change it
# to be the server hostname. $H is the name of the server machine...

S3

R$*<$+>$* $2 basic RFC822 parsing
R$- $@$1@$H user -> user@$H
R$+@$+ $:$1@$[$2$] find real name (!CNAME)
R$+@$=w $@$1@$H user@local -> user@$H
R$+@$=w.$m $@$1@$H user@local.domain-> user@$H
R$=w!$+ $@$2@$H local!user -> user@$H
R$=w.$m!$+ $@$2@$H local.domain!user-> user@$H
R@$=w:$+ $@@$H:$2 @local:something
R@$=w.$m:$+ $@@$H:$2$3 @local.domain:something
R$+%$=w $@$>3$1@$2 user%local
R$+%$=w.$m $@$>3$1@$2 user%local.domain

# We never deliver mail locally, so these are unused. How ever sendmail gets
# unhappy if we don't have them...
S4
# None needed

Mlocal, P=/bin/mail, F=rlsDFMmnP, S=10, R=20, A=mail -d $u
Mprog, P=/bin/sh, F=lsDFMeuP, S=10, R=20, A=sh -c $u

S10
# None needed.

S20
# None needed.

############################################################
#####
##### Ethernet Mailer specification
#####
##### Messages processed by this configuration are assumed to remain
##### in the same domain. This really has nothing particular to do
##### with Ethernet - the name is historical.

MTCP, P=[IPC], F=msDFMuCX, S=11, R=21, A=IPC $h
S11
# None needed.

S21
# None needed.

##### RULESET ZERO PREAMBLE

S0
# On entry, the address has been canonicalized and focused by ruleset 3.

# Punt to mail server
R$+ $#$M $@$H $:$1

--
Todd Pfaff                     \ Internet: todd@flex.eng.mcmaster.ca
Dept. of Mechanical Engineering \   Voice: (416) 525-9140 x2902
McMaster University              \    FAX: (416) 572-7944
1280 Main Street West             \
Hamilton, Ontario, CANADA  L8S 4L7 \



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:52 CDT