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 Message-ID: <Pine.BSF.3.95q.980105133146.6916C-100000@teel.info-noire.com> In-Reply-To: <199801051745.MAA00054@csrlink.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.980105133146.6916C-100000>