Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 1996 06:32:55 -0700
From:      "M.R.Murphy" <mrm@Mole.ORG>
To:        terry@lambert.org
Cc:        freebsd-questions@freebsd.org, paul@riker.comcirc.com.au
Subject:   Re: Setting up user accounts but with no email access
Message-ID:  <199605151332.GAA24831@meerkat.mole.org>

next in thread | raw e-mail | index | archive | help
> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605151332.GAA24831>