🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #1731

Re: Purposely bouncing selected mail?

#1731
From: karl_kleinpaste
Date: Sun, 23 Sep 1990 16:55
53 lines
1887 bytes
jlol@remus.ee.byu.edu writes:
   Let's suppose I'm on some junk mail mailing list that I haven't been
   able to get off of.  How can I make mail from that particular
   person/list bounce or appear (convincingly) to have bounced without
   having to change my email address?

The following suggestion is entirely untested, but the principle
should be reasonably obvious.

In .forward, place this:
	\jlol, "|/home/dirs/jlol/bin/bouncer"

Then the bouncer script could look like...

    ----------------
#!/bin/csh -f
#
# Bouncer: a script to scan incoming mail to see if it comes
# from the "wrong" place, and fakes a bounce-o-gram back if so.
#
set t1=/tmp/bounce.a$$
set t2=/tmp/bounce.b$$
#
# Save the mail; then pull out the From_ address.
cat > $t1
set origin="`head -1 $t1 | awk '{ print $2 }'`"
#
# If it comes from the wrong place (hopefully, a *-request@* form)...
if ("$origin" == bad@addr.ess) then
	#
	# Bad juju.  Preformat a pseudobounce-o-gram.
	cat << EoF > $t2
To: $origin
Subject: Returned mail: User unknown
From: mailer-daemon@remus.ee.byu.edu

   ----- Transcript of session follows -----
   554 jlol...User unknown

EoF
	#
	# Stuff it directly into sendmail.
	(cat $t2 ; tail +2 $t1) | /usr/lib/sendmail -t
endif
#
# Clean up.
rm -f $t1 $t2
exit 0
    ----------------

Embellish to taste.

--karl
Technical Details
Message-ID: <KARL.90Sep23125554@mesquite.charcoal.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!mesquite.charcoal.com!charcoal.com!karl_kleinpaste
References: <9009212253.AA10968@ucbvax.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!tut.cis.ohio-state.edu!mesquite.charcoal.com!charcoal.com!karl_kleinpaste
From: karl_kleinpaste@charcoal.com
Newsgroups: comp.mail.misc,comp.mail.sendmail,comp.unix.admin
Subject: Re: Purposely bouncing selected mail?
Message-ID: <KARL.90Sep23125554@mesquite.charcoal.com>
Date: 23 Sep 90 16:55:54 GMT
References: <9009212253.AA10968@ucbvax.Berkeley.EDU>
Sender: karl_kleinpaste@mesquite.charcoal.com
Followup-To: comp.mail.misc
Organization: Charcoal Communicators
Lines: 53