Add users for squirrelmail


Wondering how I can add users to Ubuntu from PHP or some other scripting language.

I have installed Squirrelmail and do not want to do all the steps to create new mail users all the time. I can create their home directories from PHP but now need to be able to add the actual user. Am I doing this correctly or should I be authenticating users for webmail differently???
LVL 10
Tyler LaczkoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you shouls add user from the web mail and not create a user from shell using PHP or other scripting language because creating user from shell will only give him access to the server and never have an account on your webmail
Andrew DoadesIT TechnicianCommented:
any user on the system will have access to webmail

So you can just run the adduser command and create a user who can access the server and webmail
Tyler LaczkoAuthor Commented:
How do u access the admin interface of squirrelmail???
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

Andrew DoadesIT TechnicianCommented:
squirrelmail does not have an admin interface
Tyler LaczkoAuthor Commented:
doades please research before answering
Andrew DoadesIT TechnicianCommented:
Sorry I was not aware of any squirrelmail admin plugin, but to answer your question above

if you read and install the plugin plugins/administrator/INSTALL
you should be able to log in as a user with assigned administrator privileges and click "Options > Administration"
Tyler LaczkoAuthor Commented:
Having issues installing admin plugin
Tyler LaczkoAuthor Commented:
got it to work
Can you let us know please what you did please in order to add this to our records?
Andrew DoadesIT TechnicianCommented:
in what way?

have you added

$plugins[0] = 'administrator';

to the plugins list in config/config.php
James MurrellProduct SpecialistCommented:
we use webmim it manages all on Ubuntu

Preparing Your System

You need to install the following packages

sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

Install Webmin in Ubuntu

You can use the above procedure but if you want to install latest version of .deb package you can download from webmin site under Download Section

Download latest webmin using the following command


Now we have webmin_1.340_all.deb package you need to install using the following command

sudo dpkg -i webmin_1.340_all.deb

If your server complains that there is some library things does not find. Just run the following command

sudo apt- get install -f

You should now be able to login to Webmin at the URL https://localhost:10000/

Webmin User Password Change

If you want to change root password in webmin use this included Perl script:

sudo /usr/share/webmin/ /etc/webmin root

taken from
Tyler LaczkoAuthor Commented:
i already have webmin
Tyler LaczkoAuthor Commented:
how do you setup users EG

Tyler LaczkoAuthor Commented:
I installed ISPConfig.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.