+
diff -urN --exclude=CVS mailadmin-1.5.1/change_password.php mailadmin/change_password.php
--- mailadmin-1.5.1/change_password.php 2001-07-03 20:57:39.000000000 -0500
+++ mailadmin/change_password.php 2003-12-24 14:08:20.000000000 -0600
@@ -16,11 +16,12 @@
if ($submitted) {
/* If the account can not connect, we can not verify the validity of the account or the password. */
if (!user_login($username, $current_password)) {
+ set_cookie("MAILADMIN_EXPIRED", 0);
header("Location: error/error_current.php");
exit;
}
- system("./scripts/setpassword.pl ".$username." '".$newpassword1."'");
+ system("./scripts/setpassword.pl ".$username." '".$newpassword1."' u");
if (strcmp($enable_dbase, "Yes") == 0) {
$account = new account_information;
@@ -46,24 +47,31 @@
Mail Server Administration - Change Password
-
+
@@ -81,7 +89,7 @@
Change Password
-
-
+ Note: You will be logged off, and will need to log back in.
- [Change]
+
+
+
+ [Change]
[Reset]
+
+
diff -urN --exclude=CVS mailadmin-1.5.1/docs/mailadmin Installation Notes.html mailadmin/docs/mailadmin Installation Notes.html
--- mailadmin-1.5.1/docs/mailadmin Installation Notes.html 1969-12-31 18:00:00.000000000 -0600
+++ mailadmin/docs/mailadmin Installation Notes.html 2003-12-24 16:21:03.000000000 -0600
@@ -0,0 +1,46 @@
+
+
+ mailadmin Installation Notes
+
+
+
+
+
mailadmin Installation Notes
+
Prerequisities:
+
+
IMAP::Admin
+
Cyrus Sasl2 (saslpasswd2, etc.)
+
PHP capable web server (apache, etc.)
+
PostgreSQL 7.1+ for database support
+
+
Installation:
+
+
Make saslpasswd2 suid: chmod +s /usr/sbin/saslpasswd2
+
Make an entry in sasldb2 for the cyrus user: saslpasswd2 -c cyrus
+
Create the PostgreSQL User: createuser -U postgres mail Say yes to create databases,
+ no to create other users.
+
Now set the password for this user: psql -U postgres template1
+ Inside psql: ALTER USER mail PASSWORD 'password'; - If using PostgreSQL 7.2 you can use ENCRYPTED before PASSWORD to md5 encrypt the password.
+ Exit psql. Now make sure PostgreSQL is asking for a password for all connections from the web server:
+ vi /var/lib/pgsql/data/pg_hba.conf
+ Add a line at the bottom: host all Server IP Address 255.255.255.255 password - If using md5 ENCRYPTED passwords, use md5 instead of password.
+
Make sure PostgreSQL is answering network connections. vi /var/lib/pgsql/data/postgresql.conf
+ uncomment tcpip_socket = false - remove the leading # sign.
+ Then change the false to true.
+ Restart PostgreSQL: service postgresql restart
+
Now create the database that mailadmin will use: createdb -U mailmailadmin
+
Now populate the database with the tables needed: psql -U mailmailadmin -f mailadmin-pg.sql
+
Point the config.inc file to the database server and use the user you created, etc.
+
+
Usage:
+
+
You log into the application as user cyrus using the password you setup in the Installation process.
+
+
+
+ Note: The above steps and locations were pretty much specific to RedHat. Debian, for example, puts postgresql in slightly different locations. The actual values being worked with should still be valid. - 2003/12/24
+
+
+
diff -urN --exclude=CVS mailadmin-1.5.1/edit/changepassword.php mailadmin/edit/changepassword.php
--- mailadmin-1.5.1/edit/changepassword.php 2001-07-03 20:57:39.000000000 -0500
+++ mailadmin/edit/changepassword.php 2003-12-24 14:09:01.000000000 -0600
@@ -22,7 +22,7 @@
/* Testing operation, the form submits a request change an email account password. */
if ($submitted) {
- system("../scripts/setpassword.pl ".$user." ".$pass1);
+ system("../scripts/setpassword.pl '".$user."' '".$pass1."' u");
if (strcmp($enable_dbase, "Yes") == 0) {
$account = new account_information;
@@ -49,12 +49,17 @@
Mail Server Administration - Change Password
-
+
@@ -72,7 +77,7 @@
We are sorry, but the password you entered was not correct and we could not complete the change, please
- try again.
+ ">try again.
diff -urN --exclude=CVS mailadmin-1.5.1/expired_password.php mailadmin/expired_password.php
--- mailadmin-1.5.1/expired_password.php 2001-07-03 20:57:39.000000000 -0500
+++ mailadmin/expired_password.php 2003-12-24 14:09:41.000000000 -0600
@@ -16,11 +16,12 @@
if ($submitted) {
/* If the account can not connect, we can not verify the validity of the account or the password. */
if (!user_login($username, $current_password)) {
+ set_cookie("MAILADMIN_EXPIRED", 1);
header("Location: error/error_current.php");
exit;
}
- system("./scripts/setpassword.pl ".$username." '".$newpassword1."'");
+ system("./scripts/setpassword.pl '".$username."' '".$newpassword1."' u");
if (strcmp($enable_dbase, "Yes") == 0) {
$account = new account_information;
@@ -50,24 +51,30 @@
Mail Server Administration - Expired Password
-
+
@@ -88,7 +95,7 @@
-
- [Change]
+
+
+
+ [Change]
[Reset]
+
+
diff -urN --exclude=CVS mailadmin-1.5.1/help/index.php mailadmin/help/index.php
--- mailadmin-1.5.1/help/index.php 2001-07-03 20:57:39.000000000 -0500
+++ mailadmin/help/index.php 2003-05-28 13:52:17.000000000 -0500
@@ -30,17 +30,21 @@
Email Accounts. The interface has evolved into an easy to use simple to understand collection of features, some of the features
of mailadmin are:
-
Administrator:
-
-
Adding/Deleting Email accounts.
-
Setting Account Quotas.
-
Obtaining Administrative Access Over Older Accounts.
-
Changing An Accounts Password.
-
Interfaces with the Cyrus IMAP/POP3 server.
-
Transaction Log system, allowing you to track changes or to help debug issues.
-
Account Tracking System, allowing to track changes as well as debug issues with accounts.
-
-
+ Administrator: ";
+ print "
";
+ print "
Adding/Deleting Email accounts.
";
+ print "
Setting Account Quotas.
";
+ print "
Obtaining Administrative Access Over Older Accounts.
";
+ print "
Changing An Accounts Password.
";
+ print "
Interfaces with the Cyrus IMAP/POP3 server.
";
+ print "
Transaction Log system, allowing you to track changes or to help debug issues.
";
+ print "
Account Tracking System, allowing to track changes as well as debug issues with accounts.
diff -urN --exclude=CVS mailadmin-1.5.1/includes/menu.inc mailadmin/includes/menu.inc
--- mailadmin-1.5.1/includes/menu.inc 2001-07-03 20:57:39.000000000 -0500
+++ mailadmin/includes/menu.inc 2003-12-24 14:19:12.000000000 -0600
@@ -4,16 +4,22 @@
/* If an administrator is logged in, display administrator menus. */
if (strcmp($username, $mail_server_admin) == 0) {
?>
- [List Current Users]
- [Add User Mail Account]
- [View Transaction Log]
+ [List Current Users]
+ [Add User Mail Account]
+ [View Transaction Log]
- [Change Your Password]
- [Whats New]
- [Online Help]
- [Logout]
+ [Change Your Password]
+
+ [Whats New]
+
+ [Online Help]
+ [Logout]
diff -urN --exclude=CVS mailadmin-1.5.1/includes/notes.inc mailadmin/includes/notes.inc
--- mailadmin-1.5.1/includes/notes.inc 2001-07-03 20:57:39.000000000 -0500
+++ mailadmin/includes/notes.inc 2003-12-24 16:17:17.000000000 -0600
@@ -1,5 +1,24 @@
+
12/24/2003
+
v1.5.2
+
+ Changes by James A. Pattie (Xperience, Inc.) <pcxuser@users.sourceforge.net>:
+
+
Added the ability to specify you want buttons instead of links for making changes, etc.
+
Added javascript error handling to make user input and validation cleaner.
+
Made sure that there is a pretty good distinction of admin and user help when you view the help topics.
+
Added the ability to specify a prefix url. This allows you to install mailadmin in a subdirectory of your website and have the urls all work correctly.
+
Added support for different imap seperators. It defaults to '.'.
+
Updated the scripts to work with sasl2. There is currently no way to use sasl1 unless you re-edit the scripts. You would just have to remove the 2 from the salspasswd2 instances.
+
Quoted all arguments to the perl scripts so that special characters are hidden from the shell.
+
Made the username edit field larger so you can try and use user@domain style usernames. Cyrus 2.2+
+
Made the setcookie code hopefully work with the different versions of php since it changed to require just the unix timestamp and not the ISO format date value.
+
+ This version (1.5.2) is basically 1.5.1 with the above mentioned changes and is being hosted on our .org website until active work is resumed on the sourceforge project.
+