*BSD News Article 54416


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!in2.uu.net!winternet.com!news.cinenet.net!not-for-mail
From: wraith@cinenet.net (Robert Gorichanaz)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Help with Sendmail
Date: 3 Nov 1995 15:39:15 -0800
Organization: Cinenet Communications, Internet Access, Santa Monica, USA
Lines: 29
Message-ID: <47e973$mlr@hollywood.cinenet.net>
NNTP-Posting-Host: hollywood.cinenet.net


I need a quick hand with a rewrite rule for sendmail with FreeBSD.

We have an internal network, a freebsd firewall, and connection to
the internet.

What I need to do is, for all internal mail crossing the firewall,
change the From: and Return_Path: lines from:

		user@machine-name.domain-name.com

to

		user@domain-name.com



Should be relatively easy, and I could probably hack it if I rewrote 
pieces of sendmail itself, but I'd rather not and follow standard
practice of writing a rewrite rule.

However, I 've spent the past 2 days beating my head against a brick
wall with this.

Anyone out there have more expertise than I?

-=bob=-