Courier - How To Change Mailuser Passwords

Discussion in 'Server Operation' started by asyadiqin, Apr 6, 2008.

  1. asyadiqin

    asyadiqin New Member

    Hi all. I have a dedicated server which uses the MatrixSA control panel. The server comes pre-installed with Centos 5 with Postfix and Courier.

    To be fair, the CP is fine. However, there is no options for any mail users created by the CP to change their passwords. I have contacted their Tech Support and they told me there is no such features yet and that I have to install or configure this on my own.

    So, can anyone suggest anything that would allow me to have this function, ie. allow mailusers to change their passwords, eg. web-based email, php scripts, etc... Please do not suggest PostfixAdmin as I have been having problems installing it and have wasted 2 weeks trying to install it. PostfixAdmin will not create any mail folders using the scripts provided and I don't want to go that route again.

    Thanks again and hope someone can give me a useful suggestions.

    PS : Please try to be as detailed as possible as I only have basic understanding as to how mailserver works. Thanks again.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    If the users and passwords are stored in a MySQL database, you can write a PHP script that changes the password.
     
  3. asyadiqin

    asyadiqin New Member

    Thats the problem. The CP does not store users and passwords in MySQL. Its a standard installation with Courier, Courier-IMAP and Postfix. Postfix was installed without any MySQL support too.

    I have tried installing PostfixAdmin but was having issues with the creation of mail directories using scripts, so I have basically given up on that route as its taking too much of my time to configure it.

    Is there any other way to manage the passwords if it was just a standard installation of Courier, Courier-IMAP and Postfix? Thanks again.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Then I guess you're using system users. The system users are stored in /etc/passwd and /etc/shadow.
     
  5. asyadiqin

    asyadiqin New Member

    No, I don't think so. I've checked the those folders and there is no such users. I think its using virtual domains and virtual users as MatrixSA is a webhosting CP, so I guess its stored somewhere.

    Only tips given by me by the Tech Support was to read up on courier-config and to use that Courier API to change the user passwords. I have no idea what that means.
     

Share This Page