home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
popsrv22.zip
/
SENDMAIL.CF
< prev
Wrap
Text File
|
1997-07-28
|
7KB
|
369 lines
#########################################################################
# #
# Sendmail #
# Copyright (c) 1983 Eric P. Allman #
# Berkeley, California #
# #
# Copyright (c) 1983 Regents of the University of California. #
# All rights reserved. The Berkeley software License Agreement #
# specifies the terms and conditions for redistribution. #
# #
# This configuration file was created specifically for sendmail on the #
# IBM OS/2 Operating System at habcnx.stben.be for pop server. #
# #
# Created by: Jean-Louis Noel (jln@stben.be) #
# for use at habcnx.stben.be with mail.exe #
# #
# March 21, 1996 #
# #
#########################################################################
# Name for the local host
#
Dwhabcnx
Cwhabcnx rout-dom mail localhost
# Domain name
#
DDstben.be
# Remote subdomain (tcp)
#
C1chanae
# Local subdomain (all users in one pop3 mailbox)
#
C2prof student mn2
# UUCP nodes
#
C3Uchanae
# Valid mail users
#
# default
C4postmaster newsmaster webmaster mailer-daemon os2user
#
# at domain level
# (a list of users [left part of address])
F5f:/tcpip/etc/stbenusr
#
# at host level
# (a list of users [left part of address])
F6f:/tcpip/etc/mailusr
# my official host name
#
Dj$w$?D.$D$.
# Version number
#
DZ2.2
# My name
#
DnMailer-Daemon
# UNIX header format
#
DlFrom $g $d remote from $w
# Delimiter characters
#
Do.:%@!^=/[]
# Format of a total name
#
Dq$g$?x ($x)$.
# SMTP login message
#
De$j Sendmail $v/$Z ready at $b
# Alias file
#
OAf:/tcpip/etc/aliases
# Substutution for space characters
#
OB.
# (don't) connect to "expensive" mailers
#
Oc
# Default delivery mode
#
Odbackground
# Location of help file
#
OHf:/tcpip/etc/sendmail.hf
# Queue directory
#
OQd:/mqueue
# Default messages to old style
#
Oo
# Status file
#
OSf:/tcpip/etc/sendmail.st
# Queue up everything before starting transmission
#
Os
# Return/warning queued mail after
#
OT5d/2d
# Load average at which we refuse connections
#
#OX
# Work recipient factor
#
#Oy
# Work msg class factor
#
#Oz
# Work time factor
#
#OZ
###########################
# Message precedences #
###########################
Pfirst-class=0
Pspecial-delivery=100
Pbulk=-60
Pjunk=-100
# Trusted users
Troot daemon uucp
#########################
# Format of headers #
#########################
H?P?Return-Path: <$g>
HReceived: $?sfrom $s $.by $j ($v/$Z) id $i; $b
H?D?Date: $a
H?F?From: $q
H?M?Message-Id: <$t.$i@$j>
#H?D?Resend-Date: $a
H?F?Resent-From: $q
H?M?Resent-Message-Id: <$t.$i@$j>
H?x?Full-Name: $x
HSubject:
#########################################################
# #
# MAILERS #
# #
#########################################################
#
# Local
#
Mlocal, P=f:/tcpip/bin/mail.exe, F=lnsDFMP, S=10, R=20, A=d:/mail $u $f
# Local Sender rules
S10
# Local Recipient rules
S20
#
# POP
#
Mpop, P=f:/tcpip/bin/mail.exe, F=lnsDFMP, S=11, R=21, A=d:/mail $u $f
# POP Sender rules
S11
# POP Recipient rules
S21
#
# Program
#
Mprog, P=c:/os2/command.com, F=lsDFM, S=12, R=22, A=command -c $u
# Program Sender rules
S12
# Program Recipient rules
S22
#
# UUCP
#
Muucp, P=d:/uupc/bin/umail.exe, F=DFMhuU, S=13, R=13, A="-x 1" $u
# UUCP Sender rules
S13
R$+<@$D> $* $: $w!$1<@$D>$2
R$+<@$-.$*$-.$-> $* $2!$1<@$3$4.$5>$6
# UUCP Recipient rules
S23
#
# TCP mailer
#
Mtcp, P=[IPC], F=mDFMueXL, S=14, R=24, A=IPC $h
# TCP Sender rules
S14
# TCP Recipient rules
S24
#########################################################
# #
# REWRITING RULES #
# #
#########################################################
#
# Initial input for all requests -- Name Canonicalization
#
S3
# handle null input (translate to <@> special case)
R$@ $@ <@>
# basic textual canonicalization -- note RFC733
R$*<$*>$*<$*>$* $2$3<$4>$5 strip multiple <> <>
R$*<$*<$+>$*>$* <$3>$5 2-level <> nesting
R$*<>$* $@ <@> MAIL FROM: <> case
R$*<$+>$* $2 basic RFC821/822 parsing
# handle list:; syntax as special case
R$*:;$* $@ $1:;<@>
# change a%b to a@b
#
R$+%$- $1@$2
# change a!b@c to b@a.c
#
R$-!$+@$+ $2@$1.$3
# change commas(,) to colons(:)
#
R$+,$+ $1:$2
# focus and call localizer
R@$+:$* $@$>9<@$1>:$2 handle <route-addr>
#R$-!$+ $@$>8<$1>!$2 UUCP route
# detect domain!user convert to user@domain (RFC976)
# rule set 8 detect local addresses and strip periods
R$-.$*!$+ $@$>8<$1.$2>!$3
# Focus
#
R$+@$+ $:$1<@$2>
#
# Determine delivery agent
#
S0
R<@> $#local $: jln error msg
R$*:$*; $#error $@ USAGE $: "list:; syntax illegal for recipient addresses"
R<@$+> $#error $@ USAGE $: "user address required"
R<$*:$*> $#error $@ USAGE $: "colon illegal in host name part"
# handle numeric address spec
R$*<@[$+]>$* $#smtp $@ [$2] $: $1<@[$2]>$3
# change a%b<$*> to <$*>:a@b
#
R$+%$-<$*> <$3>:$1@$2
# deal with UUCP
#
R$+ <@ $* $=3> $* $#uucp $@$3 $:$1@$2$3.$D
R$+<@ $* $=3 . $D> $* $#uucp $@$3 $:$1@$2$3.$D
# Canonicalize, (pass to nameserver)
R$*<@$+>$* $:$1<@$[$2$]>$3
# Send to pop mailbox's
#
# subdomain level
#
R$+ <@ $=2 . $D> $* $#pop $: $2 subdomain level (pop delivred)
R$=4 <@ $D> $* $#local $: $1 reserved names (domain level)
R$=5 <@ $D> $* $#local $: $1 domain users names
R$=4 <@ $w . $D> $* $#local $: $1 reserved names (local level)
R$=6 <@ $w . $D> $* $#local $: $1 local users names
R$=4 $#local $: $1 reserved names
R$=6 $#local $: $1 local users names
R$* <@ $D> $* $#error $:Unknow user $1 at domain level
R$* <@ $w . $D> $* $#error $:Unknow user $1 at machine level
#
# Send external mail
# at subdomains
R$+ <@ $* $=1 . $D> $* $#tcp $@ $3.$D $:$1<@$2$3.$D>$4
R$+ <@ $* $-. $D> $* $#error $:Unknow subdomain $3
# other recipicients (if Relay host is defined send at relay)
R$*<@$+>$* $#tcp $@ $?R $R $| $2 $. $:$1<@$2>$3
#
R<@$+>:$+ $#tcp $@ $1 $:$2
R/$* $#local $: /$1 file name
# I am wrong! :-)
R$* $#error $:Fail to decode $1
S1
S2
##########################
# Final output rewriting #
##########################
S4
# Handle <> and list :;
R$*<@> $@ $1
# Strip trailling dot off
R$*<@$+.>$* $1<@$2>$3
# Remove focus brackets
R$*<$+>$* $1$2$3
R@$+:@$+:$+ @$1,@$2:$3
########################
# Deal with subdomains #
########################
S6
# test if subdomain is know
#
R$*<@$*$->$* $:$1<@$2$[$3$:UNKNOW$]>$4
S8
##################################
# Canonicalize and test if local #
##################################
S9
R<@$*$-.$D>:$* $:<@$1$[$2$:$2.UNKNOW$]>:$3
R<@$w.$D>:$+ $:$>3$1