Xref: utzoo comp.mail.misc:3034 comp.mail.sendmail:1418 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!giza.cis.ohio-state.edu!karl From: karl@giza.cis.ohio-state.edu (Karl Kleinpaste) Newsgroups: comp.mail.misc,comp.mail.sendmail Subject: Re: Bouncing mail for expired users Message-ID: Date: 7 Mar 90 13:21:50 GMT References: <5637@ur-cc.UUCP> Sender: news@tut.cis.ohio-state.edu Followup-To: comp.mail.misc Organization: Ohio State Computer Science Lines: 16 msir@uhura.cc.rochester.edu writes: 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. With apologies for a certain tendency to grotesque hacks, try this: some-expired-user: "|/usr/local/lib/expire-bounce" where /usr/local/lib/expire-bounce consists of #!/bin/sh echo 500 User no longer on system. exit 1 which results in bounces of the form: ----- Transcript of session follows ----- 500 User no longer on system. 554 "|/usr/local/lib/expire-bounce"... unknown mailer error 1 --karl