Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 400
  • Last Modified:

How to Change mail password??

Hi experts.

I have a linux redhat server with sendmail. All Mail account users are added as system users.

I want to write a php program that let users change their mail passwords (or system passwords) but i don't know how to do it because this is handled via passwd and shadow files.

My question is, is there any way to do it with php or should i try something else??.

The goal is the users can modify their own passwords (for mail account purposes).

Thanks.
0
rbraym
Asked:
rbraym
  • 3
  • 3
  • 2
  • +1
1 Solution
 
grbladesCommented:
Hi rbraym,
Personally I would install Squirrelmail which is a webmail system. You can then install the plugin which enables users to change their password.
0
 
grbladesCommented:
0
 
rbraymAuthor Commented:
Thanks grblades but i need to do this with sendmail (by now). Any ideas??
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
pablouruguayCommented:
passwd in the system console

and like jlivie says depends of the client.

eudora in your web have a server for that.
0
 
marcin79Commented:
try to use openwebmail
http://www.openwebmail.org/
its a great and free webmail client

regards
marcin
0
 
rbraymAuthor Commented:
Ok but that wasn't my idea.

So this can't be done with php??

0
 
pablouruguayCommented:
openwebmail is a perl based webmail and have a module to change password. but. what client do you use?
0
 
marcin79Commented:
ok but You can use this module and call it from php script right ?

Regards
Marcin
0
 
grbladesCommented:
You can write something yourself in PHP and if you know PHP it wont be difficult. Why do you want to write it yourself instead of installing a webmail program such as Squirrelmail which also has a module for you to change your password?
Squirrelmail will just give you an alternative metod of accessing your mail. Sometime this is usefull if people are using a different machine and don't want to have to setup the email client.
0
 
marcin79Commented:
the access rights might be the problem. Becouse most of opensource webmail are balanced in case of functionality and security. Thats why I (and not only I)was pointing to some kind of webmail.
a) as grblades mentioned above - it might be usefull
b) as I mentioned above - You can use module to implement in your site

From the other hand if You will not try to analyze changing password module You will not learn anything.
The choice is up to You

Regards
Marcin
0
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.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now