🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.misc
Article #5592

Re: Bouncing mail for expired users

#5592
From: Chip Salzenberg
Date: Wed, 07 Mar 1990 14:03
33 lines
1459 bytes
According to Mark Sirota <msir@cc.rochester.edu>:
>What I think I want to do is create an alias in sendmail's alias file which
>will cause a message to bounce, but with a particular message.

(You knew this was coming...)

Deliver 2.0, patchlevel 9 (which should be out today) supports bounces
with user-specified error messages.

Delivery files can output a string of the form "user?error message",
and the resulting error report will include the given error message.
So to do what you request:

>What I would like to do is to bounce mail for such users back to the sender,
>with a useful message, like "Account expired."

Create a post-user delivery file that looks like this:

	for u
	do
	    if grep "^${u}$" /usr/lib/mail/expired >/dev/null
	    then
		echo "$u?Account expired."
	    else
		echo "$u"
	    fi
	done

Then create the file "/usr/lib/mail/expired" with a list of expired
accounts, one per line.
-- 
Chip Salzenberg at ComDev/TCT   <chip%tct@ateng.com>, <uunet!ateng!tct!chip>
          "The Usenet, in a very real sense, does not exist."
Technical Details
Message-ID: <25F514B1.5E18@tct.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!pdn!tscs!tct!chip
References: <5637@ur-cc.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!pdn!tscs!tct!chip
From: chip@tct.uucp (Chip Salzenberg)
Newsgroups: comp.mail.misc,comp.mail.sendmail
Subject: Re: Bouncing mail for expired users
Message-ID: <25F514B1.5E18@tct.uucp>
Date: 7 Mar 90 14:03:28 GMT
References: <5637@ur-cc.UUCP>
Organization: ComDev/TCT, Sarasota, FL
Lines: 33