From owner-freebsd-questions Sun Apr 25 9:31:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sand3.global.net.uk (sand3.global.net.uk [194.126.80.247]) by hub.freebsd.org (Postfix) with ESMTP id E371B14FEC for ; Sun, 25 Apr 1999 09:31:24 -0700 (PDT) (envelope-from marko@globalnet.co.uk) Received: from p08s10a06.client.global.net.uk ([195.147.218.9] helo=marder-1.) by sand3.global.net.uk with esmtp (Exim 2.05 #3) id 10bRoK-00088S-00; Sun, 25 Apr 1999 17:31:17 +0100 Received: (from marko@localhost) by marder-1. (8.9.2/8.8.8) id RAA00579; Sun, 25 Apr 1999 17:24:56 +0100 (BST) (envelope-from marko) Date: Sun, 25 Apr 1999 17:24:56 +0100 From: Mark Ovens To: Stan Brown Cc: Free BSD Questions list Subject: Re: Sendmail config help, please Message-ID: <19990425172456.C253@marder-1> References: <19990425160604.31A0414C2E@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <19990425160604.31A0414C2E@hub.freebsd.org>; from Stan Brown on Sun, Apr 25, 1999 at 12:06:01PM -0400 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Apr 25, 1999 at 12:06:01PM -0400, Stan Brown wrote: > I need for my FreeBSD 2.2.8 machine to send mail, and have it appear as > though it comes from my ISP account, since I don;t have a real domain, > and my usier ID on my machines is differetn from my user ID on the ISP > machine. > > 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. > Glad to be of help. I think you mis-understood about the user name though. As you will see, my user name is ``markov'' but I don't have a user on this system called ``markov'', I log in as ``marko''. I see you are using ELM. I'm not familiar with that, I use mutt, but can you not specify a ``From:'' line of your choice. In mutt you can add a line like this to ~/.muttrc: my_hdr From: Mark Ovens Since I modified sendmail.cf as per the webpage I pointed you to, sendmail leaves the ``From:'' line alone. If you can't specify a ``From:'' line (or can't edit it before sending) try sending a test mail whilst off-line, and the edit the ``From:'' line in the file(s) in /var/spool/mqueue. I'm sure you can do this without re-writing the rules in sendmail.cf (I tried, and failed - and that was with a copy of Sendmail by Costales(sp?) in front of me!). > However the problem is that I was using an earlier version of sendmail > at the time. Version 5.65 to be specific. With thisa version, I was > able to add the following rules to ruleet 11: > > Rstan<$+> $:stanb<$1$.> rewrite sender to awod acount name > Rsandi<$+> $:sandib<$1$.> For sandi also > > Which originaly looked like: > > S11 > R$*<@$+.UUX> $@$2!$1<@$w> add local domain to UUCP address > R<@$+>:$* $@<@$w>:@$1:$2 add local domain to source route > R$+<@$+> $@$1<@$2> already has domain > R$+ $:$1<@$?Y$Y$|$w$.> add local domain > > And all was well. > > The veersion of sendmail installed on my 2.2.8 machne is 8.8.8.1 > And now ruleset 11 looks like: > > S11 > R$+ $: $>51 $1 sender/recipient common > R$* :; <@> $@ list:; special case > R$* $: $>61 $1 qualify unqual'ed names > R$+ $: $>94 $1 do masquerading > > And appending the two rewrite rules no longer works. > > Can some kind soul give me some guidance ere? > > Thanks. > > -- > Stan Brown stanb@netcom.com 843-745-3154 > Westvaco > Charleston SC. > -- > Windows 98: n. > useless extension to a minor patch release for 32-bit extensions and > a graphical shell for a 16-bit patch to an 8-bit operating system > originally coded for a 4-bit microprocessor, written by a 2-bit > company that can't stand for 1 bit of competition. > - > (c) 1999 Stan Brown. Redistribution via the Microsoft Network is prohibited. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://www.users.globalnet.co.uk/~markov _______________________________________________________________ Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK CAD/CAM solutions for Sheetmetal Working Industry mailto:marko@uk.radan.com http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message