From owner-freebsd-questions Mon May 7 17:31: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.121.49]) by hub.freebsd.org (Postfix) with ESMTP id 04F0037B422 for ; Mon, 7 May 2001 17:30:55 -0700 (PDT) (envelope-from ipthomas_77@yahoo.com) Received: from scarlet.my.domain (1Cust22.tnt6.buffalo.ny.da.uu.net [63.10.187.22]) by scaup.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id RAA14873; Mon, 7 May 2001 17:30:53 -0700 (PDT) Received: (from ipt@localhost) by scarlet.my.domain (8.9.3/8.9.3) id UAA02041; Mon, 7 May 2001 20:30:39 -0400 (EDT) (envelope-from ipt) From: User Ipt Ian Patrick Thomas Message-Id: <200105080030.UAA02041@scarlet.my.domain> Subject: Re: sendmail - masquerading user name In-Reply-To: <3AF6A850.B5F1DCC3@yahoo.com> from David Banning at "May 7, 2001 01:51:12 pm" To: david@banning.com Date: Mon, 7 May 2001 20:30:39 -0400 (EDT) Cc: freebsd-questions@freebsd.org Operating-System: FreeBSD X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am guessing that your username on your box is not the same as the one you use when sending out mail. You need the FEATURE(`genericstable') in your .mc file. Here is the way my .mc looks ... OSTYPE(bsd4.4)dnl define(`SMART_HOST', `esmtp:smtp.earthlink.net')dnl FEATURE(`masquerade_envelope')dnl FEATURE(`local_procmail')dnl FEATURE(`genericstable', `hash /etc/mail/genericstable')dnl GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl FEATURE(`nouucp') MASQUERADE_AS(`earthlink.net')dnl MAILER(local)dnl MAILER(smtp)dnl My login is ipt and all of my outgoing mail goes out as ipthomas_77@yahoo.com. The gist of the file genericstable is ... localname newname@whatever.host.domain Check out www.moongroup.com and look under docs. Much info on setting up email. Ian As told by, David Banning > > Does anyone know how to masquerade user name? > > I have a dialup line. > > I need to masquerade both my username and my domain. > Domain is no problem. > > I need it to replace the word "david" with "sky_tracker" > > I utililzed the /etc/mail/userdb option which works, but > only to a point. You can see the it puts in the requested > user name EXCEPT when it is talking to the yahoo server. > It even bounces the mail to the masqueraded address. > > I changes the header information, but that is about it. > > for it to work. > > Any ideas? > > I have this set; > > O UserDatabaseSpec=/etc/mail/userdb.db in sendmail.cf and my > pre-processed userdb said; > > david:mailname sky_tracker@yahoo.com > david:maildrop sky_tracker > > but I've also tried; > > david:mailname sky_tracker@yahoo.com > sky_tracker:maildrop david > > > Here is the rejection error; as I see it the problem shows up > on line 2; > > ... while talking to smtp.mail.yahoo.com: > >>> MAIL From: > <<< 521 yahoo.com closing transmission channel. You must be > pop-authenticated b > efore you can use this smtp server, and you must use your yahoo mail > address for > the Sender/From field. > 554 5.0.0 questions@freebsd.org... Service unavailable > > --f47Diei19872.989243080/d.tracker > Content-Type: message/delivery-status > > Reporting-MTA: dns; d.tracker > Arrival-Date: Mon, 7 May 2001 13:44:37 GMT > > Final-Recipient: RFC822; questions@freebsd.org > Action: failed > Status: 5.0.0 > Diagnostic-Code: SMTP; 521 yahoo.com closing transmission channel. You > must be > pop-authenticated before you can use this smtp server, and you must use > your yah > oo mail address for the Sender/From field. > Last-Attempt-Date: Mon, 7 May 2001 13:44:40 GMT > > --f47Diei19872.989243080/d.tracker > Content-Type: message/rfc822 > > Return-Path: > Received: (from david@localhost) > by d.tracker (8.11.3/8.11.2) id f47Dibj19870 > for questions@freebsd.org; Mon, 7 May 2001 13:44:37 GMT > (envelope-from sky_tracker@yahoo.com) > Date: Mon, 7 May 2001 13:44:37 GMT > From: David Banning > Message-Id: <200105071344.f47Dibj19870@d.tracker> > To: questions@freebsd.org > Subject: this is a test > Reply-To: david@banning.com > > test test test > > > --f47Diei19872.989243080/d.tracker-- > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > -- Have blue screens given you the blues, go to www.freebsd.org for the cure. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message