[SM-USERS] password complexity squirrelmail change password plugin

2010-02-07 Thread Rajesh M
hi

for those who wish to ensure password complexity in squirrelmail.

pl edit options.php file which is within the plugin change_pass folder

it works in my system, but pl check from your side before using the same

i am not a programmer but i implemented this with a bit of googling and
some searching here and there


#

if ($cp_oldpass == '') {
$messages[] = _("PASSWORD NOT CHANGED. You must type in your old
password.");
}
if ($cp_newpass == '') {
$messages[] = _("PASSWORD NOT CHANGED. You must type in a new
password.");
}
if ($cp_verify  == '') {
$messages[] = _("PASSWORD NOT CHANGED. You must also type in your new
password in the verify box.");
}
if ($cp_newpass != '' && ($cp_verify != $cp_newpass)) {
$messages[] = _("PASSWORD NOT CHANGED. New Password doesn't match
the Verify New Password.");
}


if (strlen ($cp_newpass ) < 8 ) {
$messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
atleast 8
characters.");
}

if (strlen ($cp_newpass ) > 15 ) {
$messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
less than 15
characters.");
}


if (strcspn($cp_newpass , '0123456789') == strlen($cp_newpass)  ) {
  $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
atleast one number.");
}


if (strcspn($cp_newpass , 'abcdefghijklmnopqrstuvwxyz') ==
strlen($cp_newpass)  ) {
  $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
atleast one
small (lower-case) alphabet.");
}

if (strcspn($cp_newpass , 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') ==
strlen($cp_newpass)  ) {
  $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
atleast one
capital (upper-case) alphabet.");
}


if ($cp_oldpass != '' && ($cp_oldpass != $password)) {
$messages[] = _("PASSWORD NOT CHANGED. Your old password is not
correct.");
}

if ($cp_newpass != '' && ($cp_newpass == $password)) {
$messages[] = _("PASSWORD NOT CHANGED. Your new password is same
as old password.");
}


#

regds
rajesh





--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] password complexity squirrelmail change password plugin

2010-02-07 Thread Tomas Kuliavas


Rajesh M-3 wrote:
> 
> hi
> 
> for those who wish to ensure password complexity in squirrelmail.
> 
> pl edit options.php file which is within the plugin change_pass folder
> 
> it works in my system, but pl check from your side before using the same
> 
> i am not a programmer but i implemented this with a bit of googling and
> some searching here and there
> 
> 
> #
> 
> if ($cp_oldpass == '') {
> $messages[] = _("PASSWORD NOT CHANGED. You must type in your old
> password.");
> }
> if ($cp_newpass == '') {
> $messages[] = _("PASSWORD NOT CHANGED. You must type in a new
> password.");
> }
> if ($cp_verify  == '') {
> $messages[] = _("PASSWORD NOT CHANGED. You must also type in your
> new
> password in the verify box.");
> }
> if ($cp_newpass != '' && ($cp_verify != $cp_newpass)) {
> $messages[] = _("PASSWORD NOT CHANGED. New Password doesn't match
> the Verify New Password.");
> }
> 
> 
> if (strlen ($cp_newpass ) < 8 ) {
> $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
> atleast 8
> characters.");
> }
> 
> if (strlen ($cp_newpass ) > 15 ) {
> $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
> less than 15
> characters.");
> }
> 
> 
> if (strcspn($cp_newpass , '0123456789') == strlen($cp_newpass)  ) {
>   $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
> atleast one number.");
> }
> 
> 
> if (strcspn($cp_newpass , 'abcdefghijklmnopqrstuvwxyz') ==
> strlen($cp_newpass)  ) {
>   $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
> atleast one
> small (lower-case) alphabet.");
> }
> 
> if (strcspn($cp_newpass , 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') ==
> strlen($cp_newpass)  ) {
>   $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
> atleast one
> capital (upper-case) alphabet.");
> }
> 
> 
> if ($cp_oldpass != '' && ($cp_oldpass != $password)) {
> $messages[] = _("PASSWORD NOT CHANGED. Your old password is not
> correct.");
> }
> 
> if ($cp_newpass != '' && ($cp_newpass == $password)) {
> $messages[] = _("PASSWORD NOT CHANGED. Your new password is same
> as old password.");
> }
> 
Are you sure that you can't set these restrictions in poppassd?

-- 
Tomas
-- 
View this message in context: 
http://old.nabble.com/password-complexity-squirrelmail-change-password-plugin-tp27488891p27492347.html
Sent from the squirrelmail-users mailing list archive at Nabble.com.


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] Can't see my emails?!

2010-02-07 Thread Tomas Kuliavas


seesee wrote:
> 
> I love Squirrelmail usually but this is annoying me so much!
> 
> I have a few squirrelmail accounts, and my main site one has 17,000
> e-mails... none of which I can see!
> 
> Here is what I see:
> 
>  http://old.nabble.com/file/p27493930/picture126.png 
> 
> anyway my website has 95% of its memory wasted from just this e-mail
> account, and i can't delete it as it's my main one!
> 
> any ideas??
> 

Log into your webmail account.

After your see that empty left frame, go to
http://www.17-days.com/squirrelmail/src/right_main.php?newsort=6&startMessage=1&mailbox=INBOX.
If this url does not show you mailbox contents, check SquirrelMail
configuration and disable server side threading.

Provide more information about your setup. Like name and version of your
IMAP server. Check your SquirrelMail configuration and enable server side
sorting, if your IMAP server supports it.

-- 
Tomas
-- 
View this message in context: 
http://old.nabble.com/Can%27t-see-my-emails-%21-tp27493930p27495346.html
Sent from the squirrelmail-users mailing list archive at Nabble.com.


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] password complexity squirrelmail change password plugin

2010-02-07 Thread Rajesh M
hi

i am not aware about how the same can be implemented in poppassd

however such modifications in the options.php

i felt it is very easy -- most people are familiar with php
i can customize this on a per domain basis provide each customer what
complexity level he needs by having seperate squirrelmail folders for each
domain.


rajesh



>
>
> Rajesh M-3 wrote:
>>
>> hi
>>
>> for those who wish to ensure password complexity in squirrelmail.
>>
>> pl edit options.php file which is within the plugin change_pass folder
>>
>> it works in my system, but pl check from your side before using the same
>>
>> i am not a programmer but i implemented this with a bit of googling and
>> some searching here and there
>>
>>
>> #
>>
>> if ($cp_oldpass == '') {
>> $messages[] = _("PASSWORD NOT CHANGED. You must type in your old
>> password.");
>> }
>> if ($cp_newpass == '') {
>> $messages[] = _("PASSWORD NOT CHANGED. You must type in a new
>> password.");
>> }
>> if ($cp_verify  == '') {
>> $messages[] = _("PASSWORD NOT CHANGED. You must also type in
>> your
>> new
>> password in the verify box.");
>> }
>> if ($cp_newpass != '' && ($cp_verify != $cp_newpass)) {
>> $messages[] = _("PASSWORD NOT CHANGED. New Password doesn't
>> match
>> the Verify New Password.");
>> }
>>
>>
>> if (strlen ($cp_newpass ) < 8 ) {
>> $messages[] = _("PASSWORD NOT CHANGED. Your Password  must
>> contain
>> atleast 8
>> characters.");
>> }
>>
>> if (strlen ($cp_newpass ) > 15 ) {
>> $messages[] = _("PASSWORD NOT CHANGED. Your Password  must
>> contain
>> less than 15
>> characters.");
>> }
>>
>>
>> if (strcspn($cp_newpass , '0123456789') == strlen($cp_newpass)  ) {
>>   $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
>> atleast one number.");
>> }
>>
>>
>> if (strcspn($cp_newpass , 'abcdefghijklmnopqrstuvwxyz') ==
>> strlen($cp_newpass)  ) {
>>   $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
>> atleast one
>> small (lower-case) alphabet.");
>> }
>>
>> if (strcspn($cp_newpass , 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') ==
>> strlen($cp_newpass)  ) {
>>   $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
>> atleast one
>> capital (upper-case) alphabet.");
>> }
>>
>>
>> if ($cp_oldpass != '' && ($cp_oldpass != $password)) {
>> $messages[] = _("PASSWORD NOT CHANGED. Your old password is not
>> correct.");
>> }
>>
>> if ($cp_newpass != '' && ($cp_newpass == $password)) {
>> $messages[] = _("PASSWORD NOT CHANGED. Your new password is same
>> as old password.");
>> }
>>
> Are you sure that you can't set these restrictions in poppassd?
>
> --
> Tomas
> --
> View this message in context:
> http://old.nabble.com/password-complexity-squirrelmail-change-password-plugin-tp27488891p27492347.html
> Sent from the squirrelmail-users mailing list archive at Nabble.com.
>
>
> --
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the
> business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> -
> squirrelmail-users mailing list
> Posting guidelines: http://squirrelmail.org/postingguidelines
> List address: squirrelmail-users@lists.sourceforge.net
> List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
> List info (subscribe/unsubscribe/change options):
> https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
>






--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] password complexity squirrelmail change password plugin

2010-02-07 Thread Paul Lesniewski
I think you've been asked in the past to stop top-posting.  Please
STOP.  READ the mailing list posting guidelines before you post again.

>>> hi
>>>
>>> for those who wish to ensure password complexity in squirrelmail.
>>>
>>> pl edit options.php file which is within the plugin change_pass folder
>>>
>>> it works in my system, but pl check from your side before using the same
>>>
>>> i am not a programmer but i implemented this with a bit of googling and
>>> some searching here and there
>>>
>>>
>>> #
>>>
>>>     if ($cp_oldpass == '') {
>>>         $messages[] = _("PASSWORD NOT CHANGED. You must type in your old
>>> password.");
>>>     }
>>>     if ($cp_newpass == '') {
>>>         $messages[] = _("PASSWORD NOT CHANGED. You must type in a new
>>> password.");
>>>     }
>>>     if ($cp_verify  == '') {
>>>         $messages[] = _("PASSWORD NOT CHANGED. You must also type in
>>> your
>>> new
>>> password in the verify box.");
>>>     }
>>>     if ($cp_newpass != '' && ($cp_verify != $cp_newpass)) {
>>>         $messages[] = _("PASSWORD NOT CHANGED. New Password doesn't
>>> match
>>> the Verify New Password.");
>>>     }
>>>
>>>
>>>     if (strlen ($cp_newpass ) < 8 ) {
>>>         $messages[] = _("PASSWORD NOT CHANGED. Your Password  must
>>> contain
>>> atleast 8
>>> characters.");
>>>     }
>>>
>>>     if (strlen ($cp_newpass ) > 15 ) {
>>>         $messages[] = _("PASSWORD NOT CHANGED. Your Password  must
>>> contain
>>> less than 15
>>> characters.");
>>>     }
>>>
>>>
>>> if (strcspn($cp_newpass , '0123456789') == strlen($cp_newpass)  ) {
>>>   $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
>>> atleast one number.");
>>>     }
>>>
>>>
>>> if (strcspn($cp_newpass , 'abcdefghijklmnopqrstuvwxyz') ==
>>> strlen($cp_newpass)  ) {
>>>   $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
>>> atleast one
>>> small (lower-case) alphabet.");
>>>     }
>>>
>>> if (strcspn($cp_newpass , 'ABCDEFGHIJKLMNOPQRSTUVWXYZ') ==
>>> strlen($cp_newpass)  ) {
>>>   $messages[] = _("PASSWORD NOT CHANGED. Your Password  must contain
>>> atleast one
>>> capital (upper-case) alphabet.");
>>>     }
>>>
>>>
>>>     if ($cp_oldpass != '' && ($cp_oldpass != $password)) {
>>>         $messages[] = _("PASSWORD NOT CHANGED. Your old password is not
>>> correct.");
>>>     }
>>>
>>>     if ($cp_newpass != '' && ($cp_newpass == $password)) {
>>>         $messages[] = _("PASSWORD NOT CHANGED. Your new password is same
>>> as old password.");
>>>     }
>>>
>> Are you sure that you can't set these restrictions in poppassd?
>
> i am not aware about how the same can be implemented in poppassd
>
> however such modifications in the options.php
>
> i felt it is very easy -- most people are familiar with php
> i can customize this on a per domain basis provide each customer what
> complexity level he needs by having seperate squirrelmail folders for each
> domain.

Then you have to manage and upgrade multiple installations, which is a
waste of time, when you can simply use the Login Manager plugin to
serve SquirrelMail to multiple domains from a single installation
(yes, with different functionalities if needed).

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users