[SM-USERS] (no subject)

2006-07-19 Thread S. Mannem








I’m using Squirrelmail ver. 1.4.7 along with
Mercury/32 ver. 4.01b

I have just installed SquirrelMail.

I’m able to log in and can see that I have some
message, but it doesn’t seem to display the messages.

It reports the following:

 

ERROR : Could not complete request.Query: FETCH 1:* (FLAGS UID RFC822.SIZE BODY.PEEK[HEADER.FIELDS (Date To CcFrom Subject X-Priority Content-Type)])Reason Given: Error 10 processing FETCH command.

 

I have found this problem a few times with google,
but no solution was given. 

Does anyone have any idea on how to solve this?

 

Thanks in advance

 

Sebastiaan Mannem

Eksterstraat 5

2406 VG Alphen aan den Rijn

0172-494936

06-21285505

[EMAIL PROTECTED]

 






-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[SM-USERS] How best to achieve Single Sign-On (using JASIG CAS) with SquirrelMail?

2006-07-19 Thread Mark McLaren
I'm fairly new to PHP programming, I'm trying to achieve single
sign-on between SquirrelMail and our Java-based portal (uPortal).

I'm using JASIG CAS as the authentication system (via PAM CAS on the
IMAP server).  CAS uses one-time password tokens, so each brand new
IMAP authentication attempt will require a new password.

To complicate this further, I'm also planning to use IMAP proxy
(up-imapproxy).   So I'll need to cache password tokens for a short
while in the session and once they expire in the proxy re-obtain new
password credentials from CAS.

I'd also like to continue offering the non-CAS method of IMAP
authentication.  Incidentally, I'm using ESUP phpCAS software.

I've managed to get something working by directly modifying the source
code of several SquirrelMail source files (including imap_general.php
and webmail.php) but it doesn't feel right.

I think I should really be using hooks.  As I understand it, I need a
hook to be called every time the function sqimap_login from
imap_general.php is called.  This hook will need to be able to modify
the password string used for IMAP connection.  It will need to attempt
IMAP authentication and when the password token expires in the IMAP
proxy it will acquire a new password token and re-attempt
authentication.

Does anybody have any advice on the best way to implement this?

Thanks

Mark
-- 
"Those who ignore standards are doomed to reinvent them." - Tantek

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] How best to achieve Single Sign-On (using JASIG CAS) with SquirrelMail?

2006-07-19 Thread Fredrik Jervfors
> I'm fairly new to PHP programming, I'm trying to achieve single
> sign-on between SquirrelMail and our Java-based portal (uPortal).
>
> I'm using JASIG CAS as the authentication system (via PAM CAS on the
> IMAP server).  CAS uses one-time password tokens, so each brand new
> IMAP authentication attempt will require a new password.

Every page opened in SquirrelMail authenticates towards the IMAP server,
so having one-time password won't work.

> To complicate this further, I'm also planning to use IMAP proxy
> (up-imapproxy).   So I'll need to cache password tokens for a short
> while in the session and once they expire in the proxy re-obtain new
> password credentials from CAS.

When using IMAP Proxy, SquirrelMail authenticates towards the proxy, and
the proxy authenticates towards the IMAP server. This should allow you to
stay logged in longer when using one-time passwords. It's probably
possible to configure the proxy for how long it will keep the connection
towards the IMAP server open.

> I'd also like to continue offering the non-CAS method of IMAP
> authentication.  Incidentally, I'm using ESUP phpCAS software.
>
> I've managed to get something working by directly modifying the source
> code of several SquirrelMail source files (including imap_general.php and
> webmail.php) but it doesn't feel right.
>
> I think I should really be using hooks.  As I understand it, I need a
> hook to be called every time the function sqimap_login from
> imap_general.php is called.  This hook will need to be able to modify the
> password string used for IMAP connection.  It will need to attempt IMAP
> authentication and when the password token expires in the IMAP proxy it
> will acquire a new password token and re-attempt authentication.

You can insert your own hooks into the SquirrelMail source code, if the
ones there already isn't useful for you. Keep it as a patch, which will
help you reinstating the hooks when upgrading SquirrelMail the next time.
Using hooks is generally a better idea then source code modifications.

> Does anybody have any advice on the best way to implement this?

On the other hand, I don't know how the JASIG CAS authentication system
works, so I might be completely wrong.

Sincerely,
Fredrik.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] (no subject)

2006-07-19 Thread Tomas Kuliavas
> I'm using Squirrelmail ver. 1.4.7 along with Mercury/32 ver. 4.01b
>
> I have just installed SquirrelMail.
>
> I'm able to log in and can see that I have some message, but it doesn't
> seem to display the messages.
>
> It reports the following:
>
>
>
> ERROR : Could not complete request.
> Query: FETCH 1:* (FLAGS UID RFC822.SIZE BODY.PEEK[HEADER.FIELDS (Date To
> Cc From Subject X-Priority Content-Type)])
> Reason Given: Error 10 processing FETCH command.
>
>
>
> I have found this problem a few times with google, but no solution was
> given.
>
> Does anyone have any idea on how to solve this?

mercury/32 source is closed. Only mercury developers
(http://www.pmail.com) can explain what "Error 10 processing FETCH
command" means.


-- 
Tomas

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] ERROR: Unknown IMAP response.

2006-07-19 Thread Tristan Woudenberg - Prism Mail Solutions
On Thu, June 22, 2006 11:04, Tomas Kuliavas wrote:
> http://www.squirrelmail.org/docs/admin/admin-6.html#ss6.3
>
> Thread sorting should be enabled only if you need it. Thread sorting can
> cause imap connection timeouts on larger mailboxes.
>
>> Thanks for the information.
>>
>> I will be testing with a standard install.
>>
>> We are not using an IMAP proxy.
>>
>> Server side sorting and threading options were set to false in the
>> config.php file, I have set server side sorting ($allow_server_sort =
>> true;)
>> should I also set $allow_thread_sort = true;?

I have the same error on a MacOSX server with Cyrus imap (default MacOSX
setup), quite the different setup. It only gives me this error on a
specific user with quite a large mail box, about 300 emails. If I turn on
server side sorting it gives me a completely different error though:

ERROR: Connection dropped by IMAP server.
Query: SORT (SUBJECT) ISO-8859-1 ALL

Pretty strange, I already tried upping the php memory limit to make sure
it has enough memory to process the inbox. Any clues?

Regards,

Tristan


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] ERROR: Unknown IMAP response.

2006-07-19 Thread Chris Hilts
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tristan Woudenberg - Prism Mail Solutions wrote:
> ERROR: Connection dropped by IMAP server.
> Query: SORT (SUBJECT) ISO-8859-1 ALL
> 
> Pretty strange, I already tried upping the php memory limit to make sure
> it has enough memory to process the inbox. Any clues?

This is not PHP running out of memory.  Read the error message:
Connection dropped by IMAP server.  Check your IMAP logs, and see what's up.

- --
Chris Hilts
[EMAIL PROTECTED]
Say it with flowers -- Send them a triffid!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)

iD8DBQFEvjak98ixrK2vMtARAkP/AJ0Su98W3rJVszRgP9h2SQ2Gc/R9zQCfctSo
WoP8m2yjY3j/Gyr9uGH3eg4=
=WTsp
-END PGP SIGNATURE-

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] ERROR: Unknown IMAP response.

2006-07-19 Thread Tristan Woudenberg - Prism Mail Solutions
On Wed, July 19, 2006 15:41, Chris Hilts wrote:
> Tristan Woudenberg - Prism Mail Solutions wrote:
>> ERROR: Connection dropped by IMAP server.
>> Query: SORT (SUBJECT) ISO-8859-1 ALL
>>
>> Pretty strange, I already tried upping the php memory limit to make sure
>> it has enough memory to process the inbox. Any clues?
>
> This is not PHP running out of memory.  Read the error message:
> Connection dropped by IMAP server.  Check your IMAP logs, and see what's
> up.

Sorry must be the weather over here, it's 33Celcius over here, the log
tells me:

Jul 19 09:25:22 xserver imap[6956]: ERROR: invaldi date/time: 0 (year = 69)

A quick google search gives me:

http://www.opensource.apple.com/darwinsource/Current/CyrusIMAP-156.10/cyrus_imap/imap/global.c

this error is generated by the cyrus_ctime function:

/* covert a time_t date to an IMAP-style date
 * datebuf needs to be >= 30 bytes */

Something goes wrong there, obviously I'm posting to the wrong mailinglist
now, am I?

Regards,

Tristan



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] ERROR: Unknown IMAP response.

2006-07-19 Thread Tristan Woudenberg - Prism Mail Solutions
On Wed, July 19, 2006 16:31, Tristan Woudenberg - Prism Mail Solutions wrote:
> On Wed, July 19, 2006 15:41, Chris Hilts wrote:
>> Tristan Woudenberg - Prism Mail Solutions wrote:
>>> ERROR: Connection dropped by IMAP server.
>>> Query: SORT (SUBJECT) ISO-8859-1 ALL
>>>
>>> Pretty strange, I already tried upping the php memory limit to make
>>> sure
>>> it has enough memory to process the inbox. Any clues?
>>
>> This is not PHP running out of memory.  Read the error message:
>> Connection dropped by IMAP server.  Check your IMAP logs, and see what's
>> up.
>
> Sorry must be the weather over here, it's 33Celcius over here, the log
> tells me:
>
> Jul 19 09:25:22 xserver imap[6956]: ERROR: invaldi date/time: 0 (year =
> 69)
>
> A quick google search gives me:
>
> http://www.opensource.apple.com/darwinsource/Current/CyrusIMAP-156.10/cyrus_imap/imap/global.c
>
> this error is generated by the cyrus_ctime function:
>
> /* covert a time_t date to an IMAP-style date
>  * datebuf needs to be >= 30 bytes */
>
> Something goes wrong there, obviously I'm posting to the wrong mailinglist
> now, am I?

Nope I'm not, on the SquirrelMail 1.5.1 the mailbox works just fine, any
clues what could have been changed?

Kind regards,

Tristan


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


[SM-USERS] Thank you and more question

2006-07-19 Thread slee
Dear Guys,
Thank you for helping me about this matter. After I read all the mails, it
seem the first step i must do is to configure apache to use HTTPS. Then I
could use plug-in or modify squirrelmail configuration. 
Do I need commercial certificate like CA for configure HTTPS?  Anyone would
help advise me how to configure HTTPS in apache. I am using Redhat 7.3

Thank you.

Lee
 



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] Thank you and more question

2006-07-19 Thread Tomas Kuliavas
> Dear Guys,
> Thank you for helping me about this matter. After I read all the mails, it
> seem the first step i must do is to configure apache to use HTTPS. Then I
> could use plug-in or modify squirrelmail configuration.
> Do I need commercial certificate like CA for configure HTTPS?  Anyone
> would
> help advise me how to configure HTTPS in apache. I am using Redhat 7.3

Please read your webserver documentation. See
http://httpd.apache.org/docs/2.0/ssl/ and
http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/ch-apache-secure-server.html


If documentation does not help - get a book.
* http://www.amazon.com/gp/product/0596001916
* http://www.amazon.com/gp/product/0596002033
* http://www.amazon.com/gp/product/0596007248

Commercial signed certificates cost 15 USD or more. You can use self
signed SSL certificate or create own certificate authority, but then you
will get unknown certificate warnings in standard browsers. See also
http://cacert.org and http://en.wikipedia.org/wiki/CAcert.


-- 
Tomas

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: 
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@lists.sourceforge.net
List Archives: 
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users