adduser command and email accounts

Posted on 2001-06-28
Last Modified: 2010-03-18
Hi Linux experts,

When I use adduser to create a new user account on a server, the user can only have a shell access.
If I want him to have an email account on the server what should I do??? is it possible or should I use another command?

I use sendmail as a mail server on a RED HAT Linux box.

Please be precise and clear since I'm a little new to Linux world.

Thanks in advance
Question by:Curieux
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 6235354
What do you mean email account?  Any user can use sendmail manually (ugly and hard).  Unless you have sendmail locked, and even then they can use Perl to access sendmail.

If you mean pine (an email client), the user simply types "pine" at the command prompt and it creates the mail folders automatically for pine.

Author Comment

ID: 6235424
Sorry, I wasn't clear I think ....

My server is running a Web and email server on the same machine with a DNS (

I want to grant an email address ( to all the users on the machine. The users don't have shell access to the machine.

Is it possible? If yes how?


LVL 12

Expert Comment

ID: 6236328
Two ways:

1. Create a normal account and set their shell to /bin/false (if you are using redhat, you can also use linuxonf and use the "create pop account" (does the same thing).

2. Replace sendmail with qmail + Courier IMAPd, since that combo uses their own account lists if so desired.
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.


Author Comment

ID: 6237406
I know for the /bin/false and /bin/badsh .
But What is LINUXONF???

I want to stay with sendmail and have the possibility to create pop accounts via the web (like hotmail).
The site administrator will be the only person who deals with the web interface to create the emails for security reasons.

The site administration interface does a lot of tasks like dealing with products and clients databases.
I want to add the "add pop account" feature to that interface.

Thank you.

Author Comment

ID: 6237673
Please propose a comment first and if it solves the problem I will accept it as an answer
LVL 40

Accepted Solution

jlevie earned 100 total points
ID: 6237918
If you want to have user accounts with email access you'll need to have a POP or IMAP server installed and running. Depending on what IMAP/POP server you use a Linux account for each user may or may not be required. The typical IMAP server used on Linux (Univ. of Washington IMAP) does require a Linux account and home dir for each user, although the shell can be set to /bin/false to disable interactive logins. An alternate IMAP server that doesn't require a Linux account and integrates with sendmail is the Cyrus IMAP implementation ( It uses SASL for user authentication and can be configured to not need a Linux account for authentication. A side benefit of using a sasldb based authentication scheme for the POP & IMAP clients is that you can configure sendmail for SMTP AUTH, which allows your users access to sendmail from outside of the local domain of the server without runnig the risk of having your SMTP server being exploited as a spam relay (which will likely cause your server to be black-listed). It's pretty easy to add Cyrus accounts from the command line and thus easy to implement a Web based process.
LVL 12

Expert Comment

ID: 6237989
Linuxconf is the "all in one" administrativ tool shiped with redhat. It isnt installed by defaultin RH7.1 but on all earlier versions it is.

Expert Comment

ID: 6238153
If you want a web-interface to create and manage the
user/email accounts you can try Webmin ( For security you should install
openssl so the webmin traffic is encrypted.
Webmin offers much more than just managing accounts but you
can disable the functions that you don't need.
You can also configure Sendmail from Webmin.

Expert Comment

ID: 9078765
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.

Expert Comment

ID: 9976040
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: jlevie {http:#6237918}

Please leave any comments here within the next seven days.

EE Cleanup Volunteer

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question