[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference noted::seal

Title:SEAL
Moderator:GALVIA::SMITH
Created:Mon Mar 21 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1989
Total number of notes:8209

1839.0. "Mail problem" by NETRIX::"torsten.kerschat@beo.mts.dec.com" (torsten kerschat) Thu Mar 06 1997 11:45

Hi mail-experts,

when my customer sends a mail from his Firewall (AVFW 2.1) 
to an internal mail-user, the from line doesn't contain
the hostname (which should be in there). 
Furtheron, the "received from" contains only the external
firewall-hostname (fw) and not the FQDN... (internal name:
fw-gate). It is not configured to remove to the hostname.
Any ideas ? Here are the config files and the
contents of one the test-mails:

From:	MX%"root@subdomain.domain.de"  5-MAR-1997 12:50:43.14
To:	internal
CC:	
Subj:	

Return-Path: <root@subdomain.domain.de>
Received: from fw (fwgate.subdomain.domain.De) by bad.subdomain.domain.de (MX
V4.1
          VAX) with SMTP; Thu, 05 Mar 1997 12:50:40 EST
          <- desired from fw.subdomain.domain.de
Received: by fw; (5.65v3.2/1.3/10May95) id AA00912; Thu, 5 Mar 1997 12:50:58
          GMT
          <- desired: by fw.subdomain.domain.de
Date: Thu, 5 Mar 1997 12:50:58 GMT
From: <root@subdomain.domain.de>  <- desired <root@fw.subdomain.domain.de>
Message-ID: <9703051250.AA00912@fw>     <- desired: fw.subdomain.domain.de
Apparently-To: internal@mailhost.subdomain.domain.de

##
## $Id: sendmail.cf.osf,v 1.7 1996/01/10 12:07:59 dtynan Exp $
##
## Copyright (c) 1995, Digital Equipment Corporation.  All rights
## reserved.  Unpublished rights reserved under the copyright laws of the
## United States.
## 
## The software contained herein is proprietary to and embodies the
## confidential technology of Digital Equipment Corporation.  Possession,
## use, duplication or dissemination of the software and media is
## authorized only pursuant to a valid written license from Digital
## Equipment Corporation.
## 
## RESTRICTED RIGHTS LEGEND   Use, duplication, or disclosure by the U.S.
## Government is subject to restrictions as set forth in Subparagraph
## (c)(1)(ii) of DFARS 252.227-7013, or in FAR 52.227-19, as applicable.
##
## ABSTRACT:
## Configuration file for sendmail running on single-machine firewall.
##

#
# ***** Site-specific information *****
#

#
# What is the local domain?
DDsubdomain.domain.de
#
# What internal machine (if any) can handle local mail?
DMmailhost.subdomain.domain.de
#
# If defined, export mail at this address.
# DHdomain.com

#
# If defined, specify the name of an external mail relay.
#DR
#
# These users don't hide.
CEroot postmaster

#
# ***** End of site-specific stuff -- don't change anything else *****
#

# Name of this machine.
Dj$w

# Version Number
DV1.3/10May95
# Name of mailer
DnMAILER-DAEMON
# Unix header format
DlFrom $g $d
# Delimiter characters
Do.:%@!^=/[]
# Format of a full name
Dq$?x$x $.<$g>
# SMTP login message (not seen)
De$j Sendmail $v ($V) $b

# Location of various files
OS/var/adm/sendmail/sendmail.st
OA/var/adm/sendmail/aliases
OH/usr/share/lib/sendmail.hf

# Location of queue directory
OQ/var/spool/mqueue

# Temporary file mode
OF0600

# default delivery mode (deliver in background)
Odbackground

# default UID and GID
Ou1
Og1
# support 8-bit mode
O8
# log level
OL9
# include sender if she's on an alias to which she's sending
Om
# read timeout -- violates protocols
Or1h
# wait 5 minutes for newaliases to complete
Oa
# queue up everything before starting transmission
Os
# use separate envelope/header rewriting rulesets (IDA)
O/
# default timeout interval
OT3d
# load average for forcing "Odq" behaviour
Ox20
# load average for refusing connections
OX12

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

# Trusted users
Troot daemon uucp news

# Format of headers
HReceived: by $j; ($v/$V) id $i; $b
H?D?Resent-Date: $a
H?D?Date: $a
H?F?Resent-From: $q
H?F?From: $q
HSubject:
H?M?Resent-Message-Id: <$t.$i@$j>
H?M?Message-Id: <$t.$i@$j>

#
# Ruleset 3.
#
S3

# handle "from:<>" special case
R<>			$@@				turn into magic token

# route-addr's look canonical but aren't
R<@$+:$+>$*		@$1:$2				unfocus <route-addr>

# already canonical?
R$*<@$+>$*		$@$>7$1<@$2>$3			idempotency is good

# basic textual canonicalization -- note lack of RFC733 heuristic here
R$*<$+>$*		$2				basic RFC822 parsing

# make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later
R@$+,$+			@$1:$2				change all "," to ":"
R@$+:$+			$@$>7<@$1>:$2			handle <route-addr>

# more miscellaneous cleanup
R$+:$*;$*		$@$1:$2;$3			list syntax
R$+@$+			$:$1<@$2>			focus on domain
R$+<$+@$+>		$1$2<@$3>			move gaze right
R$+@$+<@$+>		$1%$2<@$3>			a@b@c@d ->a%b%c@d

# things that are still in @-form are ready to eat
R$+<@$+>		$@$>7$1<@$2>			now canonical

# convert rightmost % to @ (ruleset 7 has the rest of the magic for this)
R$+%$+			$@$>7$1<@$2>			user%host
R$-			$@$>7$1<@$D>			user

#
# Ruleset 7.
#
S7
R$*<@$+%$+>$*		$1%$2<@$3>$4			move @ right after %
R$+<@POP>$*		$@$1<@POP>$2			POP already OK
R$*<@$j>$*		$1<@$M>$2			don't allow local
R$*<@$k>$*		$1<@$M>$2			don't allow local
R$*<@localhost>$*	$1<@$M>$2			no localhost
R$*<@localhost.$D>$*	$1<@$M>$2			no localhost
R$*<@$->$*		$1<@$2.$D>$3			qualify hostnames

#
# Ruleset 4.
#
S4

R@			$@				handle <> error addr
R$*<$+>$*		$1$2$3				defocus
R@$+:$+:$+		@$1,$2:$3			<route-addr> canonical
R@$+:$+			$@<@$1:$2>			route-addr needs <>

#
# Ruleset 0.
#
S0

R@			$#error $:$n			handle <> form
R$*<@[$+]>$*		$#red $@$?R$R$|[$2]$. $:$1<@[$2]>$3	numeric 
R$*<@$D>$*		$#blue $@$?M$M$|$D$. $:$1<@$D>$2	internal
R$*<@$*.$D>$*		$#blue $@$?M$M$|$2.$D$. $:$1<@$2.$D>$3	internal
R$*<@$+>$*		$#red $@$?R$R$|$2$. $:$1<@$2>$3		external

#
# Ruleset 8 - rewrite sender address if hidden domain.
#
S8
R$=E<@$+>$*		$@$1<@$2>$3			don't rewrite E class
R$*<@$D>$*		$@$1<@$?H$H$|$D$.>$2		rewrite the address
R$*<@$*.$D>$*		$@$1<@$?H$H$|$2.$D$.>$3		rewrite the address

#
# Definitions for various mailers.  The 'blue' definition is for incoming
# mail, and the 'red' definition for mail to the outside world.
#
Mlocal,	P=/bin/false, F=ml, A=false
Mprog,	P=/bin/false, F=ml, A=false
Mblue,	P=[IPC], F=mDFMuX, S=0, R=0, A=IPC $h, E=\r\n
Mred,	P=[IPC], F=mDFMuXL, S=10, R=0, A=IPC $h, E=\r\n

#
# Ruleset 10 (handle addresses heading out onto the red network)
#
S10
R<@$+>$*		$@<@$1>$2			<route-addr> syntax
R$*<@[$+]>$*		$@$1<@[$2]>$3			numeric, lv alone
R$*<@$+>$*		$@$>8$1<@$2>$3			canonicalize domain

#
# Ruleset 1, 2, 5 & 6 don't do much (no need for them).
#
S1
S2
S5
S6

[Posted by WWW Notes gateway]
T.RTitleUserPersonal
Name
DateLines
1839.1CHEFS::16.37.11.45::PITTGone with the winsock ...Thu Mar 06 1997 13:113
I think you'll find this is how it's supposed to work.

T