From owner-freebsd-questions Wed May 15 06:35:20 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA17669 for questions-outgoing; Wed, 15 May 1996 06:35:20 -0700 (PDT) Received: from mole.mole.org (marmot.mole.org [204.216.57.191]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA17661 for ; Wed, 15 May 1996 06:35:15 -0700 (PDT) Received: (from mail@localhost) by mole.mole.org (8.6.12/8.6.12) id NAA02622; Wed, 15 May 1996 13:33:17 GMT Received: from meerkat.mole.org(206.197.192.110) by mole.mole.org via smap (V1.3) id sma002620; Wed May 15 13:32:55 1996 Received: (from mrm@localhost) by meerkat.mole.org (8.6.12/8.6.9) id GAA24831; Wed, 15 May 1996 06:32:55 -0700 Date: Wed, 15 May 1996 06:32:55 -0700 From: "M.R.Murphy" Message-Id: <199605151332.GAA24831@meerkat.mole.org> To: terry@lambert.org Subject: Re: Setting up user accounts but with no email access Cc: freebsd-questions@freebsd.org, paul@riker.comcirc.com.au Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > I am setting up a few user accounts on our WWW server so that users can > > FTP to the server to post up their web pages into their relevant > > web page directories. > > > > How can I disable email access for these users. ie. I dont want them > > to have an email account, only an account to FTP files to. > > The easiest (grossest) way would be to define another name for > the machine and *not* put in a Cw entry for it. [...] Add the users to the password file as usual. Then put a different mailer program instead of P=/usr/libexec/mail.local for Mlocal in /etc/sendmail.cf. Do in your replacement program what you will. That replacement program can be a script. Try this first to see how it behaves: #!/bin/sh echo $@ >>/tmp/mail.log exec /usr/libexec/mail.local $@ -- Mike Murphy mrm@Mole.ORG +1 619 598 5874 Better is the enemy of Good