From owner-freebsd-questions Sun Apr 25 11:13:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from vanessa.eliuk.org (sec2d2.dial.uniserve.ca [204.244.165.65]) by hub.freebsd.org (Postfix) with ESMTP id F0C3D15650 for ; Sun, 25 Apr 1999 11:13:21 -0700 (PDT) (envelope-from kevin_eliuk@sunshine.net) Received: from localhost (cagey@localhost) by vanessa.eliuk.org (8.9.3/8.9.3) with ESMTP id LAA10993; Sun, 25 Apr 1999 11:13:21 -0700 (PDT) (envelope-from cagey@vanessa.eliuk.org) Date: Sun, 25 Apr 1999 11:12:50 -0700 (PDT) From: "Kevin G. Eliuk" To: Stan Brown Cc: Free BSD Questions list Subject: Re: Sendmail config help, please In-Reply-To: <19990425160604.31A0414C2E@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 To: Rick Knebel Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sendmail In-Reply-To: <199801051745.MAA00054@csrlink.net> Message-ID: 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