Setting up - Users with mail access but without telnet access
David Miller
dmiller at search.sparks.net
Thu Feb 24 19:56:24 PST 2005
On Thu, 24 Feb 2005, Joseph E. Maxwell wrote:
> I am running a mail server (qmail) on a machine (freebsd 4.9). How can I
> set up users on it with email functioning but without telnet access ?
This really isn't a database question, but I'll take a stab at it anyway.
The quick answer is to just add them as unix users but turn telnet off in
inetd.conf. That's almost certainly the default anyway, nobody uses telnet
to access a system anymore. It's also kind of a wisecrack, because you're
probably asking how to deny them shell access.
If you just give them a shell of /bin/false they won't be able to login
with ssh, rlogin, telnet, or a serial terminal.
There are other more complex answers too, like setting up qmail to use
LDAP or query some sort of database to see if the recipient is a
legitimate user. This is not a trivial thing to setup, and will be client
specific (qmail/POP/IMAP all have to match up).
Hope this helps,
--- David
More information about the freebsd-database
mailing list