Add users for squirrelmail

Hello,

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?
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.

michofreihaCommented:
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
0
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
0
Tyler LaczkoAuthor Commented:
How do u access the admin interface of squirrelmail???
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Andrew DoadesIT TechnicianCommented:
squirrelmail does not have an admin interface
0
Tyler LaczkoAuthor Commented:
doades please research before answering
0
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"
0
Tyler LaczkoAuthor Commented:
Having issues installing admin plugin
0
Tyler LaczkoAuthor Commented:
got it to work
0
michofreihaCommented:
Can you let us know please what you did please in order to add this to our records?
Regards
0
Andrew DoadesIT TechnicianCommented:
in what way?

have you added

$plugins[0] = 'administrator';

to the plugins list in config/config.php
0
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

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.340_all.deb

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/changepass.pl /etc/webmin root



taken from http://onlyubuntu.blogspot.com/2007/05/how-to-install-webmin-in-ubuntu.html
0
Tyler LaczkoAuthor Commented:
i already have webmin
0
Tyler LaczkoAuthor Commented:
how do you setup users EG

tyler@isp.com
tyler@diffISP.com

0
Tyler LaczkoAuthor Commented:
I installed ISPConfig.
0

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
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.