From wotan@deathpenguin.com Wed Nov 3 15:56:59 1999 Path: uni-berlin.de!fu-berlin.de!fu-berlin.de!newsfeed.berkeley.edu!nntp.primenet.com!nntp.gctr.net!news.primenet.com!A.wandering.one From: wotan@deathpenguin.com (Wotan) Newsgroups: comp.mail.elm,comp.mail.misc,comp.mail.pine,comp.mail.sendmail,comp.mail.smail Subject: Re: How do I forge my FROM address Date: 22 Oct 1999 02:33:11 GMT Organization: Frontier GlobalCenter Inc. Lines: 28 Message-ID: <7uoid7$hm$1@nnrp02.primenet.com> References: <7umo58$hd3$1@news2.inter.net.il> NNTP-Posting-Host: usr06.primenet.com X-Complaints-To: abuse@globalcenter.net Summary: Read and comprehend the post X-Posted-By: wmcclatc@206.165.6.206 (wmcclatc) X-Comment: Aw, are you offended? X-Reality: check X-usenet-1: Lunatic Asylum, n.: X-usenet-2: The place where optimism most flourishes. X-Example: bad X-hunt1: If its tourist season, X-hunt2: How come I can not shoot them? X-no-archive: yes X-Newsreader: MindFucker (19 April 1999) Xref: fu-berlin.de comp.mail.elm:24536 comp.mail.misc:49857 comp.mail.pine:43013 comp.mail.sendmail:91030 comp.mail.smail:5516 In article <7umo58$hd3$1@news2.inter.net.il>, David Henry posted, then thought about: >On my system, the user 'admin' is aliased to me (henryd). >My .procmailrc has a script that does some stuff, generates a letter and >e-mails it back to the originator. Trouble is that the From: field of the >outgoing letter is henryd@hostname rather than admin@domainname. > >From the man pages of mail I don't see how I forge (sorry, that should be >masquerade) the senders name. >I looked for other mailers that could be used in a script, all I found was >elm >but it doesn't give me what I want. > >Even if I set up a genuine account for admin, outgoing mail is still from >admin@hostname rather than admin@domainname. > >I have the authority to configure sendmail, if necessary. man formail. It comes with procmail, and does exactly what you want. An example from my own procmail filter. DeathPenguin is a forwarding only address. | formail -rtkb -I"From: Wotan's MailBouncing Daemon (wotan@DeathPenguin.com)" \ -- What this country needs is a good five cent ANYTHING!