Xref: utzoo comp.mail.sendmail:893 comp.bugs.4bsd:1335 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!usc!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!ucsfcgl!gregc From: gregc@cgl.ucsf.edu (Greg Couch) Newsgroups: comp.mail.sendmail,comp.bugs.4bsd Subject: Re: How to prevent mail to non-existent accounts Message-ID: <11691@cgl.ucsf.EDU> Date: 13 Jul 89 19:03:30 GMT References: <11680@cgl.ucsf.EDU> <3853@phri.UUCP> Sender: daemon@cgl.ucsf.edu Reply-To: gregc@cgl.ucsf.edu.UUCP (Greg Couch) Followup-To: comp.mail.sendmail Organization: Computer Graphics Lab, UCSF Lines: 29 I should have given a bit more background. We sort of share the alias file among the various hosts by routing all mail that only has a user in the address through the mail gateway for our lab. All outgoing mail appears to be from the mail gateway so we're free to change any of the other host names at will. Mail to a particular host will be delivered on that host so a local user may pick which host he wants to read mail on. Consequently, with sharing of the password file and the not allowing logging in to hosts that the user doesn't have a home directory on, mail needed to be disabled to accounts that don't have home directories. True sharing of the alias file would solve the above problem, except: When we turn off an account, we don't remove a user from the password file (just disable the password, change the shell to /noshell, and rm -rf the account). The local mailer can't be changed to reject mail to disabled accounts because sendmail thinks that all local mailer errors are temporary. Thus sendmail had to be changed to not deliver the mail in the first place. This has the nice side effects of having the SMTP VRFY command return "User Unknown" for disabled accounts and of causing errors in mailing lists that include that user. If you have the second problem but not the first, you could alter my change from checking if the home directory exists to checking if the shell is /noshell (or whatever your local convention is). Further followups have been redirected to comp.mail.sendmail. - Greg Couch gregc@cgl.ucsf.edu gregc@ucsfcgl.bitnet