Path: utzoo!attcan!uunet!snorkelwacker!tut.cis.ohio-state.edu!uc!nic.MR.NET!thor.acc.stolaf.edu!stolaf!towfiq From: towfiq@interlan.Interlan.COM (Mark Towfigh) Newsgroups: comp.mail.misc Subject: Re: Bouncing mail for expired users Message-ID: Date: 10 Mar 90 17:58:21 GMT References: <5637@ur-cc.UUCP> Sender: news@thor.acc.stolaf.edu Followup-To: comp.mail.misc Organization: Racal InterLan Inc., Boxborough, MA (1-800-LAN-TALK) Lines: 33 In-reply-to: karl@giza.cis.ohio-state.edu's message of 7 Mar 90 13:21:50 GMT [how to bounce mail, informing the sender that the user's account has expired.] In article karl@giza.cis.ohio-state.edu (Karl Kleinpaste) writes: 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 Building on Karl's suggestion, how about returning some sensible error, like 67 -- EX_NOUSER (addressee unknown) 69 -- EX_UNAVAILABLE (service unavailable) 73 -- EX_CANTCREAT (can't create (user) output file) 77 -- EX_NOPERM (permission denied) (taken from sysexits.h) Mark -- Mark Towfigh, Racal Interlan, Inc. towfiq@interlan.Interlan.COM W: (508) 263-9929 H: (617) 488-2818 uunet!interlan!towfiq "The Earth is but One Country, and Mankind its Citizens" -- Baha'u'llah