Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Apr 1999 11:12:50 -0700 (PDT)
From:      "Kevin G. Eliuk" <kevin_eliuk@sunshine.net>
To:        Stan Brown <stanb@awod.com>
Cc:        Free BSD Questions list <freebsd-questions@freebsd.org>
Subject:   Re: Sendmail config help, please
Message-ID:  <Pine.BSF.4.10.9904251059320.9152-100000@vanessa.eliuk.org>
In-Reply-To: <19990425160604.31A0414C2E@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 25 Apr 1999, Stan Brown wrote:

> 	Thanks to Mark Ovens, I know have masquerading working so my maill now
> 	apperas to come from the isp's doamin. However I am still trying to get
> 	my user name rewriten. Mark pointed me to a web page describing how to
> 	do this, but the method of doing it thier requires creating a dummy
> 	account on my machine with the user name from the ISP> I really don;t
> 	want to do this, since I ahve in the past done it in i what I consider
> 	a much easire way. This involves just using sendmails rewrite rules.

I keep this previous email and use the m4 macro to create my sendmail.cf.
This currently works for me and not aware of any problems thus far, and
it is easy to add new aliases to the /etc/genericstable file and rehash
the db for others in the household.

I am sure this is only one of many options with sendmail.

-- 
Regards,
Kevin G. Eliuk
Box 67, Granthams Landing, BC VON 1X0 (604)886-4040
Discover Rock Solid, Discover FreeBSD | http://www.FreeBSD.Org
--

--- Begin Forwarded Message ---

Date: Mon, 5 Jan 1998 13:44:49 -0500 (EST)
From: Alex Boisvert <boia01@gel.usherb.ca>
To: Rick Knebel <rknebel@csrlink.net>
Cc: freebsd-questions@FreeBSD.ORG
Subject: Re: sendmail
In-Reply-To: <199801051745.MAA00054@csrlink.net>
Message-ID: <Pine.BSF.3.95q.980105133146.6916C-100000@teel.info-noire.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-freebsd-questions@FreeBSD.ORG
X-Loop: FreeBSD.org
Precedence: bulk

On Mon, 5 Jan 1998, Rick Knebel wrote:
> I use a local ISP for my internet connection and am struggling with getting
> my headers right in my from lines and being able to post to
> freebsd-questions without having it rejected.
> I was wondering what I should name my machine .
> Right now it is myname.my.domain
> I am just not sure if I should change this and if so to what?

I do exactly what you're doing with my ISP.  Here's my "sendmail.mc" file,
you'll have to run it through the m4 macro processor to get your
"sendmail.cf" file generated: 

cd /usr/src/usr.sbin/sendmail/cf/m4
m4 cf.m4 /etc/sendmail.mc

----- cut here: /etc/sendmail.mc ----------

divert(-1)
#
#  Masquerade my host
#
divert(0)dnl
VERSIONID(`@(#)freebsd.mc       $Revision: 1.1.4.4 $')
OSTYPE(bsd4.4)dnl
DOMAIN(generic)dnl
MAILER(local)dnl
MAILER(smtp)dnl
MASQUERADE_AS(your.isp.domain.here)dnl
LOCAL_CONFIG
CG localhost yourlocalhost yourlocalhost.with.domain your.domain 
masquerade.isp.domain
FEATURE(genericstable, `btree -o /etc/genericstable')dnl
FEATURE(masquerade_envelope)dnl
define(`confCW_FILE', `-o /etc/sendmail.cw')dnl

---- cut here --------

You'll have to change "yourlocalhost", "yourllocalhost.with.domain",
"your.domain" and "masquerade.domain" to suit your local configuration.

Also, if your usernames on your local host don't match the accounts used
on your ISP, you'll have to create a file called "/etc/genericstable" and
process it with:

makemap -d btree /etc/genericstable.db < /etc/genericstable

This "mangles" the user names so that they automatically change on
outgoing mail.

------ cut here:  /etc/genericstable -------

localusername    useraccount@your.isp.net
anotheruser      anotheraccount@your.isp.net
...              ...
...              ...

------ cut here ----------------------------

Regards,
Alex.




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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9904251059320.9152-100000>