SCOUG-HELP Mailing List Archives
Return to [ 30 |
January |
2008 ]
<< Previous Message <<
>> Next Message >>
4
This is a multipart message in MIME format. If you can read this
paragraph, your mail program probably does not support MIME messages,
and you may not be able to receive the contents of this message in
the format intended by the sender.
Content Type: text/plain
** Reply to message from "Steven Levine" on Wed, 30 Jan
2008 00:55:38 -0800
> Since I don't have a pristine copy of Bob's sendmail.cf, someone should
> send me one. A copy of your test message might be useful too.
Here is a copy of my sendmail.cf file.
--
Robert Blair
Content Type: text/plain
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment; filename="sendmail.cf"
#########################################################################=
=0D=0A# #=0D=0A# Sendmail #=0D=0A# Copyright (c) 1983 Eric=
P. Allman #=0D=0A# Berkeley, California #=0D=0A# #=0D=
=0A# Copyright (c) 1983 Regents of the University of California. #=0D=0A# =
All rights reserved. The Berkeley software License Agreement #=0D=0A# spe=
cifies the terms and conditions for redistribution. #=0D=0A# #=0D=
=0A# This configuration file was created specifically for sendmail on the #=
=0D=0A# IBM OS/2 Operating System. Please avoid making changes to this fil=
e #=0D=0A# because any changes will change the operation of sendmail. #=
=0D=0A# #=0D=0A# Created by: William Chung for IBM Ultimedia Mail/2=
"Lite" #=0D=0A# and IBM NR/2 #=0D=0A# IBM T=
.J. Watson Research Center, Hawthorne, NY #=0D=0A# #=0D=0A# =
March 21, 1995 #=0D=0A# #=0D=0A# Change activity: =
#=0D=0A# 2/96 TAB Added F=3DF to mLocal, changed version number #=0D=
=0A# 3/96 TAB Added Prog definition. #=0D=0A#######################=
##################################################=0D=0A=0D=0A=0D=0A#=0D=0A#=
This configuration file routes outgoing mail as follows:=0D=0A#=0D=0A# 1. =
If mail is destined for a directly connected domain and=0D=0A# an intern=
al gateway is defined, then deliver to the gateway.=0D=0A#=0D=0A# 2. If mai=
l is destined for a directly connected domain and=0D=0A# no internal gat=
eway is defined, then deliver directly.=0D=0A#=0D=0A# 3. If mail is destine=
d for a domain which is not directly=0D=0A# connected, then deliver to a=
n external gateway.=0D=0A#=0D=0A# 4. If mail is destined for a domain which=
is not directly=0D=0A# connected and an external gateway is not defined=
,=0D=0A# then deliver directly.=0D=0A#=0D=0A# 5. In all cases, rewrite =
the sender address to look like=0D=0A# it came from a mail hub if a mail=
hub is defined.=0D=0A#=0D=0A# 6. In all cases, deliver addresses destined =
for the local host=0D=0A# directly with no routing through gateways.=0D=
=0A#=0D=0A=0D=0A=0D=0A#=0D=0A# Macro Definitions=0D=0A#=0D=0A# Note: The val=
ues of the V and H macros are merely placeholders.=0D=0A# Actual value=
s will get substituted later at send time when=0D=0A# sendmail is invoked wi=
th the -oM command line flag to override=0D=0A# these configuration file val=
ues.=0D=0A#=0D=0A# The V and H macros should normally not be changed here.=
=0D=0A#=0D=0A=0D=0A# The fully qualified (with domain) name of the internal =
gateway=0D=0A#=0D=0A# All mail destined for the domains defined in macros D =
through G=0D=0A# will be sent to this gateway machine=0D=0A#=0D=0A# If this =
macro is not defined, then all mail destined for the domains=0D=0A# defined =
in macros D through G will be delivered directly=0D=0A# DRYour.Internal.Gate=
way=0D=0A=0D=0A# The fully qualified (with domain) name of the external gate=
way=0D=0A#=0D=0A# All mail destined for domains _not_ defined in macros D th=
rough G=0D=0A# will be sent to this gateway machine=0D=0A#=0D=0A# If this ma=
cro is not defined, then all mail destined for domains=0D=0A# _not_ defined =
in macros D through G will be delivered directly=0D=0A# DVYour.External.Gate=
way=0D=0ADVsmtp.iinet.com=0D=0A=0D=0A# The fully qualified (with domain) nam=
e of the external mail hub=0D=0A#=0D=0A# All sender addresses for external d=
estination addresses will be=0D=0A# rewritten to look like they came from th=
is mail hub=0D=0A# DHYour.External.Mail.Hub=0D=0A=0D=0A# The fully qualified=
(with domain) name of the internal mail hub=0D=0A#=0D=0A# All sender addres=
ses for internal destination addresses will be=0D=0A# rewritten to look like=
they came from this mail hub=0D=0A# DIYour.Internal.Mail.Hub=0D=0A=0D=0A# E=
xternal user id=0D=0A#=0D=0A# The user id used for sending mail through the =
external gateway=0D=0A#=0D=0A# All sender addresses for external destination=
addresses will be=0D=0A# rewritten to look like they came from this user id=
=0D=0A# DPYourExternalUserID=0D=0A=0D=0A# The local domain=0D=0A#=0D=0A# The=
domains defined in macros D through G are considered internal and=0D=0A# di=
rectly connected. Mail destined for these domains will be delivered=0D=0A# =
to an internal gateway defined in macro R=0D=0A#=0D=0A# If macro R is undefi=
ned, then mail for internal destinations will be=0D=0A# delivered directly=
=0D=0A# DDYour.Domain=0D=0A=0D=0A# Internal, directly connected domains=0D=
=0A#=0D=0A# The domains defined in macros D through G are considered interna=
l and=0D=0A# directly connected. Mail destined for these domains will be de=
livered=0D=0A# to an internal gateway defined in macro R=0D=0A#=0D=0A# If ma=
cro R is undefined, then mail for internal destinations will be=0D=0A# deliv=
ered directly=0D=0ADE=0D=0ADF=0D=0ADG=0D=0A=0D=0A# Version # of this file =
TAB=0D=0ADZ2.0=0D=
=0A=0D=0A# Official canonical hostname.=0D=0A#=0D=0A# Do not bother setting =
macro $w (hostname) since sendmail will set=0D=0A# it for us=0D=0A#=0D=0A# N=
ote: We assume $w contains the fully qualified name of the local host=0D=0AD=
j$w=0D=0A=0D=0A#=0D=0A# Standard macros=0D=0A#=0D=0A=0D=0A# SMTP initial log=
in message=0D=0ADe$j Sendmail $v/$Z ready at $b=0D=0A# Name used for error m=
essages=0D=0ADnMailer-Daemon=0D=0A# UNIX header format=0D=0ADlFrom $g $d=
=0D=0A# Delimiter (operator) characters=0D=0ADo.:%@!^=3D/[]=0D=0A# Format of=
a total name=0D=0ADq$?x$x <$g>$|$g$.=0D=0A=0D=0A=0D=0A#=0D=0A# Options=0D=
=0A#=0D=0A=0D=0A# Process messages in the background.=0D=0AOdbackground=0D=
=0A# Accept oldstyle addresses=0D=0AOo=0D=0A# SMTP read timeout=0D=0AOr15m=
=0D=0A# Queue directory - this must be changed if TCP/IP is moved!=0D=0AOQC:=
\MPTN\ETC\MQUEUE=0D=0A# Always queue for safety=0D=0AOs=0D=0A# Time to live =
in the queue=0D=0AOT5d=0D=0A=0D=0A#=0D=0A# Message precedences=0D=0A# Note: =
use equal weight so we can let relay decide what to do=0D=0A#=0D=0APfirst-cl=
ass=3D0=0D=0APspecial-delivery=3D0=0D=0APjunk=3D0=0D=0A=0D=0A#=0D=0A# Requir=
ed headers=0D=0A#=0D=0A#HReceived: $?sfrom $s $.by $j ($v/$Z) id $i; $b=0D=
=0AH?D?Date: $a=0D=0AH?F?From: $q=0D=0AH?M?Message-Id: <$t.$i@$j>=0D=0AH?D?R=
esent-Date: $a=0D=0AH?F?Resent-From: $q=0D=0AH?M?Resent-Message-Id: <$t.$i@$=
j>=0D=0AH?x?Full-Name: $x=0D=0A=0D=0A=0D=0A#=0D=0A# Rewriting Rules=0D=0A#=
=0D=0A=0D=0A=0D=0A#=0D=0A# Ruleset 3 -- Name Canonicalization=0D=0A#=0D=0A=
=0D=0AS3=0D=0A=0D=0A# handle null input (translate to <@> special case)=0D=
=0AR$@ $@ <@>=0D=0A=0D=0A# basic textual canonicalization -- note RFC733 h=
euristic here=0D=0AR$*<$*>$*<$*>$* $2$3<$4>$5 strip multiple <> <>=0D=0AR=
$*<$*<$+>$*>$* <$3>$5 2-level <> nesting=0D=0AR$*<>$* $@ <@> MAIL F=
ROM:<> case=0D=0AR$*<$+>$* $2 basic RFC821/822 parsing=0D=0A=0D=0A# hand=
le list:; syntax as special case=0D=0AR$*:;$* $@ $1 :; <@>=0D=0A=0D=0A# ma=
ke sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later=0D=0AR@ $+=
, $+ @ $1 : $2 change all "," to ":"=0D=0A=0D=0A# localize and dispose o=
f route-based addresses=0D=0AR@ $+ : $+ $@ $>96 < @$1 > : $2 handle
-addr>=0D=0A=0D=0A# find focus for list syntax=0D=0AR $+ : $* ; @ $+ $@ $>96=
$1 : $2 ; < @ $3 > list syntax=0D=0AR $+ : $* ; $@ $1 : $2; list syntax=
=0D=0A=0D=0A# find focus for @ syntax addresses=0D=0AR$+ @ $+ $: $1 < @ $2 =
> focus on domain=0D=0AR$+ < $+ @ $+ > $1 $2 < @ $3 > move gaze right=
=0D=0AR$+ < @ $+ > $@ $>96 $1 < @ $2 > already canonical=0D=0A=0D=0A# do s=
ome sanity checking=0D=0AR$* < @ $* : $* > $* $1 < @ $2 $3 > $4 nix colons =
in addrs=0D=0A=0D=0A# if we have % signs, take the rightmost one=0D=0AR$* % =
$* $1 @ $2 First make them all @s.=0D=0AR$* @ $* @ $* $1 % $2 @ $3 Un=
do all but the last.=0D=0AR$* @ $* $@ $>96 $1 < @ $2 > Insert < > and fini=
sh=0D=0A=0D=0A# else we must be a local name=0D=0A=0D=0A=0D=0A#=0D=0A# Rules=
et 96 -- bottom half of ruleset 3=0D=0A#=0D=0A=0D=0A# At this point, everyt=
hing should be in a "local_part<@domain>extra" format.=0D=0AS96=0D=0A=0D=0A#=
handle special cases for local names=0D=0AR$* < @ localhost > $* $: $1 < @=
$j . > $2 no domain at all=0D=0AR$* < @ localhost . $m > $* $: $1 < @ $j . =
> $2 local domain=0D=0AR$* < @ [ $+ ] > $* $: $1 < @@ [ $2 ] > $3 mark [a.b=
.c.d]=0D=0AR$* < @@ $=3Dw > $* $: $1 < @ $j . > $3 self-literal=0D=0AR$* < =
@@ $+ > $* $@ $1 < @ $2 > $3 canon IP addr=0D=0A=0D=0A# pass to name server=
to make hostname canonical=0D=0AR$* < @ $* $~P > $* $: $1 < @ $[ $2 $3 $] =
> $4=0D=0A=0D=0A# local host aliases and pseudo-domains are always canonical=
=0D=0AR$* < @ $=3Dw > $* $: $1 < @ $2 . > $3=0D=0AR$* < @ $* $=3DP > $* $:=
$1 < @ $2 $3 . > $4=0D=0AR$* < @ $* . . > $* $1 < @ $2 . > $3=0D=0A=0D=0A#=
if this is the local hostname, make sure we treat is as canonical=0D=0AR$* =
< @ $j > $* $: $1 < @ $j . > $2=0D=0A=0D=0A=0D=0A#=0D=0A# Ruleset 4 -- Fin=
al Output Post-rewriting=0D=0A#=0D=0A=0D=0AS4=0D=0A=0D=0AR$*<@> $@ $1 h=
andle <> and list:;=0D=0A=0D=0A# strip trailing dot off possibly canonical n=
ame=0D=0AR$* < @ $+ . > $* $1 < @ $2 > $3=0D=0A=0D=0A# externalize local dom=
ain info=0D=0AR$* < $+ > $* $1 $2 $3 defocus=0D=0AR@ $+ : @ $+ : $+ @ $1 =
, @ $2 : $3 canonical=0D=0AR@ $* $@ @ $1 ... and exit=0D=
=0A=0D=0A=0D=0A# delete duplicate local names=0D=0AR$+ % $=3Dw @ $=3Dw $1 @=
$j u%host@host =3D> u@host=0D=0A=0D=0A=0D=0A#=0D=0A# Ruleset 97 -- recan=
onicalize and call ruleset zero=0D=0A# (used for recursive calls)=0D=0A#=
=0D=0A=0D=0AS97=0D=0AR$* $: $>3 $1=0D=0AR$* $@ $>0 $1=0D=0A=0D=0A=0D=0A#=
=0D=0A# Ruleset 0 -- Parse Address=0D=0A#=0D=0A=0D=0AS0=0D=0A=0D=0AR<@> $#=
local $: <> special case error msgs=0D=0AR$* : $* ; $#error $@ USAGE $: "=
list:; syntax illegal for recipient addresses"=0D=0AR<@ $+> $#error $@ USA=
GE $: "user address required"=0D=0AR<$* : $* > $#error $@ USAGE $: "colon i=
llegal in host name part"=0D=0A=0D=0A# handle numeric address spec=0D=0AR$* =
< @ [ $+ ] > $* $#smtp $@ [$2] $: $1 < @ [$2] > $3 numeric internet spec: se=
nd=0D=0A=0D=0A# now delete the local info -- note $=3DO to find characters t=
hat cause forwarding=0D=0AR$* < @ > $* $@ $>97 $1 user@ =3D> user=0D=0AR< =
@ $=3Dw . > : $* $@ $>97 $2 @here:... -> ...=0D=0AR$* $=3DO $* < @ $=3Dw . =
> $@ $>97 $1 $2 $3 ...@here -> ...=0D=0A=0D=0A# short circuit local delivery=
so email to ourself will work=0D=0AR$+ < @ $w $* > $#local $: $1 deliver =
local address directly=0D=0AR$+ < @ $=3Dw $* > $#local $: $1 deliver local =
address directly=0D=0A=0D=0A# figure out what can be delivered through our l=
ocal network=0D=0AR$* $: < $D > $1=0D=0AR< $+ > $* < @ $* $D > $* $@ $>5 =
$2 < @ $3 $D > $4=0D=0AR< $* > $* $2=0D=0A=0D=0AR$* $: < $E > $1=0D=0AR<=
$+ > $* < @ $* $E > $* $@ $>5 $2 < @ $3 $E > $4=0D=0AR< $* > $* $2=0D=0A=
=0D=0AR$* $: < $F > $1=0D=0AR< $+ > $* < @ $* $F > $* $@ $>5 $2 < @ $3 $F=
> $4=0D=0AR< $* > $* $2=0D=0A=0D=0AR$* $: < $G > $1=0D=0AR< $+ > $* < @=
$* $G > $* $@ $>5 $2 < @ $3 $G > $4=0D=0AR< $* > $* $2=0D=0A=0D=0A# pass n=
ames that still have a host to an external gateway if defined=0D=0AR$* < @ $=
* > $* $@ $>98 < $V > $1 < @ $2 > glue on gateway=0D=0A=0D=0A# deal with ot=
her remote names=0D=0AR$* < @$* > $* $#smtp $@ $2 $: $1 < @ $2 > $3 user@ho=
st.domain=0D=0A=0D=0A# if this is quoted, strip the quotes and try again=0D=
=0AR$+ $: $1 strip quotes=0D=0AR$+ $=3DO $+ $@ $>97 $1 $2 $3 try agai=
n=0D=0A=0D=0A# handle locally delivered names=0D=0AR$=3DL $#local $: @ $1 =
special local names=0D=0AR$+ $#local $: $1 regular local names=0D=0A=
=0D=0A=0D=0A#=0D=0A# Ruleset 5 -- handle rewriting for internal gateway=0D=
=0A#=0D=0A=0D=0AS5=0D=0A=0D=0A# see if we have a gateway=0D=0AR$+ $: < $R =
> $1 try relay=0D=0AR< > $+ < @ $+ $* > $#smtp $@ $2 $3 $: $1 < @ $2 $3 >=
try directly=0D=0AR< $- : $+ > $+ $: $>95 < $1 : $2 > $3 < @ $2 >=0D=0AR< =
$+ > $+ $@ $>95 < $1 > $2 < @ $1 >=0D=0A=0D=0A=0D=0A#=0D=0A# Ruleset 95 -- =
determine mailer for internal gateway=0D=0A#=0D=0A=0D=0AS95=0D=0AR< > $+ < @=
$+ > $#smtp $@ $2 $: $1 < @ $2 > try directly=0D=0AR< $- : $+ > $* $# $1 $=
@ $2 $: $3 try qualified mailer=0D=0AR< $=3Dw > $* $@ $2 delete local h=
ost=0D=0AR< $+ > $+ < @ $+ > < @ $* > < $1 > $2 @ < $3 > strip off extra gat=
eway=0D=0AR< $+ > $* $#internal $@ $1 $: $2 try gateway=0D=0A=0D=0A=0D=0A#=
=0D=0A# Ruleset 98 -- determine mailer for external gateway=0D=0A#=0D=0A=0D=
=0AS98=0D=0AR< > $+ < @ $+ > $#smtp $@ $2 $: $1 < @ $2 > try directly=0D=0AR=
< $=3Dw > $* $@ $2 delete local host=0D=0AR< $+ > $* $#external $@ $1 $=
: $2 try external gateway=0D=0A=0D=0A=0D=0A#=0D=0A# Mailer Definitions=0D=
=0A#=0D=0A=0D=0A=0D=0A#=0D=0A# SMTP, Local and Program Mailer specifications=
=0D=0A# Ad=
ded F=3DF to Mlocal TAB=0D=0A=0D=0AMsmtp, P=3D[IPC], F=3DmDFMuX, S=
=3D10, R=3D0, A=3DIPC $h=0D=0AMlocal, P=3DC:\TCPIP\UMAIL\umailer.exe , F=3DF=
lsm, S=3D10, R=3D0, A=3D-dest C:\TCPIP\UMAIL\SERVER\INBOX -to $u=0D=0AMprog,=
P=3Dc:\os2\cmd.exe, F=3DlsDFM, A=3D /C $u=0D=0A=0D=0A=0D=0AS10=0D=0AR<@> =
$n errors to mailer-daemon=0D=0AR$+ $: $>11 $1 perform internal rewri=
te=0D=0AR$+ $: $>12 $1 perform external rewrite=0D=0A=0D=0A=0D=0A#=0D=
=0A# Relay Mailer specifications=0D=0A#=0D=0A=0D=0AMinternal, P=3D[IPC], F=
=3DmDFMuX, S=3D11, R=3D0, A=3DIPC $h=0D=0AMexternal, P=3D[IPC], F=3DmDFMuX, =
S=3D12, R=3D0, A=3DIPC $h=0D=0A=0D=0A=0D=0AS11=0D=0AR<@> $n errors to m=
ailer-daemon=0D=0AR$+ $: $>40 < $I > $1=0D=0A=0D=0AS12=0D=0AR<@> $n e=
rrors to mailer-daemon=0D=0AR$+ $: $>40 < $H > $1=0D=0AR$+ $: $>41 $1=
=0D=0A=0D=0A# Rewrite addresses so they look like they are from a hub=0D=0AS=
40=0D=0AR< > $- $@ $1 < @ $w > no hub defined, user =3D> user@thishost=
=0D=0AR< > $+ $@ $1 no hub defined=0D=0AR< $+ > $- $@ $2 < @ $1 > us=
er =3D> user@hub=0D=0AR< $+ > $+ < @ $w $* > $@ $2 < @ $1 > user@thishost =
=3D> user@hub=0D=0AR< $+ > $+ < @ $=3Dw $* > $@ $2 < @ $1 > user@otherna=
mes =3D> user@hub=0D=0AR< $+ > $+ < @ $=3Dw.$D > $@ $2 < @ $1 > user@thish=
ostonly =3D> user@hub=0D=0AR< $+ > $+ $@ $2 hub defined but no rewr=
ite=0D=0A=0D=0A# Rewrite addresses so they look like they are from a specifi=
c user id=0D=0AS41=0D=0AR$* $: < $P > $1 expand with user id macro=0D=
=0AR< > $+ $@ $1 no user id macro defined=0D=0AR< $+ > $+ < @ $H > $@ $=
P < @ $H > user@host =3D> newuser@host=0D=0AR< $+ > $+ $@ $2 user id m=
acro defined but no rewrite=0D=0A=0D=0A=0D=0A# Sendmail configuration file *=
must* end with a newline - do not remove below newline=0D=0A=1A
Content Type: text/plain
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".
For problems, contact the list owner at
"postmaster@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 30 |
January |
2008 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
|