Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2002 01:30:53 +0200 (CEST)
From:      "Julian Stacey" <jhs@bim.bsn.com>
To:        freebsd-net@freebsd.org
Cc:        "Gary Jennejohn" <gj@freebsd.org>
Subject:   	Masquerade fails to suppress X-sender
Message-ID:  <200207102330.g6ANUrV66462@flip.jhs.private>

next in thread | raw e-mail | index | archive | help
Hi freebsd-net@freebsd.org
Since I gave my FreeBSD-4.5-Release gateway a new sendmail.cf today,
I've been getting both these in my headers:
	Received: from jhs.muc.de (520006753247-0001@[217.235.121.155])
		 by fmrl11.sul.t-online.com with esmtp id
		 17SPs5-0MzVXEC; Thu, 11 Jul 2002 00:23:41 +0200
	X-sender: 520006753247-0001@t-dialin.net
I never used to have 520006753247 appear, (I've confirmed that by
inspecting my morning's post to a simple expoder list (that leaves
headers unchanged), which came back clean without any 520006753247)
	( Reason I don't want people to see 520006753247-0001 is that's my
	  account, & while not private as such, no need ot publicise,
	  & dont want people emailing me (or spamming!) there either ).

So I'd like to kill off that number from appearing, any idea how to do it ?
I tried enabling allmasquerade, didn't help.

I disabled in .cf the DSsmtprelay.t-online.de & that did indeed
avoid the 2 lines with 520006753247-0001 in, but thats a bit drastic,
I'd prefer to use the t-online.de smart host if possible ?
Does that seem likely possible ?

I'm on a DSL with dynamic IP & time out, so think it better to use the ISP's
relay if possible.
( I do have control of another FreeBSD box on the net I coud use as a relay,
but I'd have to get myself set up for DDNS first I presume, before it would
be safe to tell my other box on the permanent net to relay me ).

Here's my sendmail.mc,
The file I generate the .mc from contains my notes
  http://bim.bsn.com/~jhs/src/bsd/fixes/FreeBSD/src/jhs/etc/sendmail/common.cpp

VERSIONID(`@(#) src/etc/sendmail/common.cpp by jhs@ for wall.jhs.private ')
OSTYPE(freebsd4)
define(`RECEIVER_JHS_FULL',`mail.jhs.private')
define(`MASQ_JHS_HOST',`jhs')
define(`MASQ_JHS_DOMAIN',`muc.de')
define(`MASQ_JHS_FULL',`MASQ_JHS_HOST.MASQ_JHS_DOMAIN')
MASQUERADE_AS(`MASQ_JHS_FULL')
MASQUERADE_DOMAIN(`jhs.private mmc.private gj.org ew.private')
MASQUERADE_DOMAIN_FILE(`/etc/mail/masquerade')
FEATURE(masquerade_envelope)
define(`SMART_JHS_HOST',`smtprelay')
define(`SMART_JHS_DOMAIN',`t-online.de')
define(`SMART_JHS_FULL',`SMART_JHS_HOST.SMART_JHS_DOMAIN')
# F EATURE(allmasquerade)
FEATURE(masquerade_entire_domain)
FEATURE(`relay_entire_domain')
FEATURE(access_db,`hash -o /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
FEATURE(local_lmtp)
FEATURE(smrsh)
FEATURE(`accept_unresolvable_domains')
define(`confCW_FILE',`-o /etc/mail/local-host-names-gateway')
define(`confNO_RCPT_ACTION',`add-to-undisclosed')
define(`confMAX_MIME_HEADER_LENGTH',`256/128')
define(`confPRIVACY_FLAGS',`authwarnings,noexpn,novrfy')
FEATURE(use_cw_file)
define(`MAIL_HUB',`RECEIVER_JHS_FULL')
define(`SMART_HOST',`smtp:SMART_JHS_FULL')
undefine(`UUCP_RELAY')
define(`confTRUSTED_USERS', `jhs majordom')
define(`confTIME_ZONE',`USE_SYSTEM')
define(`confAUTO_REBUILD',True)
define(`confCOPY_ERRORS_TO',`postmaster')
define(`confTO_QUEUERETURN',`3d')
define(`confTO_QUEUEWARN',`24h')
define(`confDIAL_DELAY',`8s')
Dw`'MASQ_JHS_HOST
Dm`'MASQ_JHS_DOMAIN
define(`confDOMAIN_NAME', $w.$m)
define(`LUSER_RELAY',`RECEIVER_JHS_FULL')
define(`LOCAL_RELAY',`RECEIVER_JHS_FULL')
define(`confTO_HOSTSTATUS',`6h')
MAILER(local)
MAILER(smtp)
MAILER(uucp)
EXPOSED_USER(jhs2)

Any hints welcome, thanks !

Julian Stacey		Freelance Unix (BSD Linux etc) Consultant, Munich
  Ihr Rauchen = mein allergischer Kopfschmerz !  Schnupftabak probieren.
  FreeBSD-4.6 just released: 7000 Free programs: http://www.freebsd.org/ports/ 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207102330.g6ANUrV66462>