Xref: utzoo comp.mail.misc:3043 comp.mail.sendmail:1426 Path: 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 According to Mark Sirota : >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 , "The Usenet, in a very real sense, does not exist."