imapd GSSAPI requests host/ ticket

2009-11-04 Thread david l goodrich
I'm running 2.2.13-14+lenny3 on service-n2.dsrw.org, running 
Debian/lenny with Heimdal kerberos.  The built-in GSSAPI is functional, 
but on my KDC I see that it requests a ticket for 
host/service-n2.dsrw@dsrw.org, digest/d...@dsrw.org and finally 
krbtgt/d...@dsrw.org.

Why?  I see no obvious need for a host/* ticket to authorize imap, and 
digest/DSRW and krbtgt/DSRW simply make no sense.

Thanks!
   --david

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: avelsieve problem switching mail servers

2009-11-04 Thread Maria McKinley
Simon Matter wrote:
 snipped a bunch of stuff to keep things readable<<
 I seem to have scripts created by both websieve and avelsieve, but I do
 know that we have been managing sieve through squirrelmail for a very
 long time. Looks like the websieve scripts haven't been touched since
 2007. So, I think I'm back to where I was. Avelsieve was working on the
 last machine, but isn't working now. I'm pretty sure I have copied all
 configs over. How can I increase logging, so I can see what is
 happening
 when I get the time-out?

 thanks,
 maria
>>>
>>> Which Versions of cyrus do you have installed on the new
>>> and the old mailserver? And does Avelsieve use Net_Sieve?
>>> If yes which version of Net_Sieve do you have installed.
>>>
>> old
>>cyrus-admin-2.2   2.2.13-13
>>avelsieve 1.9.7-2
>> new
>>cyrus-admin-2.2 2.2.13-14+lenny3
>>avelsieve   1.9.7-6+lenny1
>>
>> avelsieve does not appear to use Net_Sieve.
> 
> Which version of PHP do you have on old and new?
> 
> Simon
> 

Well, this is interesting.

old:
montoya:~# dpkg -l |grep php
ii  libapache-mod-php46:4.4.4-9+lenny1 
server-side, HTML-embedded scripting languag
ii  libapache2-mod-php5   5.2.6.dfsg.1-1+lenny2 
server-side, HTML-embedded scripting languag
ii  libphp-phpmailer  1.73-6 full 
featured email transfer class for PHP
ii  libphp-snoopy 1.2.4-1Snoopy 
is a PHP class that simulates a web b
ii  php4-common   6:4.4.4-9+lenny1   Common 
files for packages built from the php
ii  php4-ldap 6:4.4.4-9+lenny1   LDAP 
module for php4
ii  php5  5.2.4-2 
server-side, HTML-embedded scripting languag
ii  php5-common   5.2.6.dfsg.1-1+lenny2  Common 
files for packages built from the php
ii  php5-gd   5.2.6.dfsg.1-1+lenny2  GD 
module for php5
ii  php5-ldap 5.2.6.dfsg.1-1+lenny2  LDAP 
module for php5
ii  php5-mysql5.2.6.dfsg.1-1+lenny2  MySQL 
module for php5


new:
ella:~# dpkg -l |grep php
ii  libapache2-mod-php5 5.2.6.dfsg.1-1+lenny3 
server-side, HTML-embedded scripting language (Apache 2 module
ii  php5-common 5.2.6.dfsg.1-1+lenny3 
Common files for packages built from the php5 source
ii  php5-ldap   5.2.6.dfsg.1-1+lenny3  LDAP 
module for php5

I'm not sure how to figure out which php packages avelsieve was actually 
using. There is no executable to check libraries, and there is not a 
version of php listed in dependencies for the package.

thanks,
maria

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


quota -f doubling users' quota usage

2009-11-04 Thread Jack Neely
Folks,

I'm in the midst of upgrading our cyrus imap servers.  We've hit a snag
that our testing did not reveal.  The quota -f utility is doubling all
of our users' actual usage.  This seems to be reported several times on
various places on the web.  Running quota -f a second time seems to
correct the issue.  However, I wanted to track down the actual issue/bug
here.

We are moving from RHEL 3 i386 with Cyrus version 2.2.12 to RHEL 5
x86_64 machines running cyrus version 2.3.14.  We tar up the cyrus data
store and move it to the new server, rebuild the DB from a dump from the
old server, run reconstructs, and finally run quota -f.  We are getting
output below.

user.cechafin.RESTORE.Drafts: quota root user.cechafin.RESTORE --> 
user.cechafin 
user.cechafin.RESTORE.Sent: quota root user.cechafin.RESTORE --> user.cechafin  
user.cechafin.RESTORE.Sent.2006: quota root user.cechafin.RESTORE --> 
user.cechafi
user.cechafin.RESTORE.Sent.2007: quota root user.cechafin.RESTORE --> 
user.cechafin
user.cechafin: usage was 33900479, now 33914622
user.mmorrow: usage was 152034181, now 105570337
user.vrtownse: usage was 9382963, now 9385921
user.wwang: usage was 203145147, now 20738
user.aaardest: usage was 31204975, now 62409950
user.aaaskar: usage was 44789845, now 89579690
user.aaatiq: usage was 29105529, now 58211058

What's happening?

Jack
-- 
Jack Neely 
Linux Czar, OIT Campus Linux Services
Office of Information Technology, NC State University
GPG Fingerprint: 1917 5AC1 E828 9337 7AA4  EA6B 213B 765F 3B6A 5B89

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Over quota when not

2009-11-04 Thread Adam Tauno Williams
On Wed, 2009-11-04 at 08:02 -0600, Kenneth Marshall wrote:
> On Wed, Nov 04, 2009 at 01:51:18PM +, Richard Gilbert wrote:
> > The 4.5 GB quota was subsequently reinistated.  Initially the quota file 
> > contained
> > which looks like the amount of mail received after the quota was 
> > reinstated.  After running quota -f it went back to a similar number as 
> > before, equivalent to 78% usage, but still with the "Mailbox is over 
> > quota" error.
> > How can I correct this problem?
> > Thank you in anticipation.
> Is Cyrus 2.2.x able to handle quotas over what can be stored in
> an integer? That certainly seems to be the about the typical size
> that 32-bit OS systems start having problems. I know that they
> fixed such a problem, but you would need to check the change logs
> for when and in which versions. Good luck.

I think this is it; we had the exact same problem with very large
quotas.  This issue is resolved in a recent update;  we are running
2.3.14-8 and large quotas are working.

I think that is Bug#2690



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Over quota when not

2009-11-04 Thread Kenneth Marshall
On Wed, Nov 04, 2009 at 01:51:18PM +, Richard Gilbert wrote:
> We have been happily running cyrus-imap 2.2.12 on a Solaris 10 system 
> (installed from Blastwave) for years.  I now have a problem with a 
> user's quota which I don't understand.
> 
> Usage as reported by cyradm lq, lqr and by the equivalent IMAP query all 
> report that the user is at 78% but when they login, after selecting a 
> folder they get a "Mailbox is over quota" error.
> 
> The user's quota file in /var/imap/quota contained:
> 
> 3604871753
> 450
> 
> The actual filestore in use is consistent with the 3.6 GB usage figure 
> above.  I tried running quota -f on the mailbox but that did not make 
> any difference.  I deleted the quota file and this had the effect of 
> disabling quotaing for the user.  This would appear to be a workaround 
> for the user but not really a satisfactory solution.
> 
> The 4.5 GB quota was subsequently reinistated.  Initially the quota file 
> contained
> 
> 2285158
> 450
> 
> which looks like the amount of mail received after the quota was 
> reinstated.  After running quota -f it went back to a similar number as 
> before, equivalent to 78% usage, but still with the "Mailbox is over 
> quota" error.
> 
> How can I correct this problem?
> 
> Thank you in anticipation.
> 
> Richard

Is Cyrus 2.2.x able to handle quotas over what can be stored in
an integer? That certainly seems to be the about the typical size
that 32-bit OS systems start having problems. I know that they
fixed such a problem, but you would need to check the change logs
for when and in which versions. Good luck.

Regards,
Ken

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Over quota when not

2009-11-04 Thread Richard Gilbert
We have been happily running cyrus-imap 2.2.12 on a Solaris 10 system 
(installed from Blastwave) for years.  I now have a problem with a 
user's quota which I don't understand.

Usage as reported by cyradm lq, lqr and by the equivalent IMAP query all 
report that the user is at 78% but when they login, after selecting a 
folder they get a "Mailbox is over quota" error.

The user's quota file in /var/imap/quota contained:

3604871753
450

The actual filestore in use is consistent with the 3.6 GB usage figure 
above.  I tried running quota -f on the mailbox but that did not make 
any difference.  I deleted the quota file and this had the effect of 
disabling quotaing for the user.  This would appear to be a workaround 
for the user but not really a satisfactory solution.

The 4.5 GB quota was subsequently reinistated.  Initially the quota file 
contained

2285158
450

which looks like the amount of mail received after the quota was 
reinstated.  After running quota -f it went back to a similar number as 
before, equivalent to 78% usage, but still with the "Mailbox is over 
quota" error.

How can I correct this problem?

Thank you in anticipation.

Richard
-- 
Richard Gilbert
Corporate Information and Computing Services
University of Sheffield, Sheffield, S10 2TN, UK
Phone: +44 114 222 3028   Fax: +44 114 222 3040

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: avelsieve problem switching mail servers

2009-11-04 Thread Simon Matter
>>>snipped a bunch of stuff to keep things readable<<

>>> I seem to have scripts created by both websieve and avelsieve, but I do
>>> know that we have been managing sieve through squirrelmail for a very
>>> long time. Looks like the websieve scripts haven't been touched since
>>> 2007. So, I think I'm back to where I was. Avelsieve was working on the
>>> last machine, but isn't working now. I'm pretty sure I have copied all
>>> configs over. How can I increase logging, so I can see what is
>>> happening
>>> when I get the time-out?
>>>
>>> thanks,
>>> maria
>>
>>
>> Which Versions of cyrus do you have installed on the new
>> and the old mailserver? And does Avelsieve use Net_Sieve?
>> If yes which version of Net_Sieve do you have installed.
>>
> old
>cyrus-admin-2.2   2.2.13-13
>avelsieve 1.9.7-2
> new
>cyrus-admin-2.2 2.2.13-14+lenny3
>avelsieve   1.9.7-6+lenny1
>
> avelsieve does not appear to use Net_Sieve.

Which version of PHP do you have on old and new?

Simon


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: avelsieve problem switching mail servers

2009-11-04 Thread Maria McKinley
>>snipped a bunch of stuff to keep things readable<<
>>>
>> I seem to have scripts created by both websieve and avelsieve, but I do
>> know that we have been managing sieve through squirrelmail for a very
>> long time. Looks like the websieve scripts haven't been touched since
>> 2007. So, I think I'm back to where I was. Avelsieve was working on the
>> last machine, but isn't working now. I'm pretty sure I have copied all
>> configs over. How can I increase logging, so I can see what is happening
>> when I get the time-out?
>>
>> thanks,
>> maria
> 
> 
> Which Versions of cyrus do you have installed on the new
> and the old mailserver? And does Avelsieve use Net_Sieve?
> If yes which version of Net_Sieve do you have installed.
> 
old
   cyrus-admin-2.2   2.2.13-13
   avelsieve 1.9.7-2
new
   cyrus-admin-2.2 2.2.13-14+lenny3
   avelsieve   1.9.7-6+lenny1

avelsieve does not appear to use Net_Sieve.

cheers,
maria

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: avelsieve problem switching mail servers

2009-11-04 Thread Michael Menge

Hi,

Quoting Maria McKinley :


Simon Matter wrote:

Simon Matter wrote:

Hi there,

I tried posting this on the squirrelmail plugin mailing list, but
didn't
get a response, so thought maybe someone on this list might be able to
give me a hint, since I know a lot of you have sieve set up with cyrus
and squirrelmail. Feel free to tell me this is the wrong list, and I
will try elsewhere, but if someone can help, I would be very grateful.

I recently moved my mail server to a new server, and have managed to
get
everything working except for sieve access through squirrelmail. I hope
this mail isn't too confusing, but wanted to lay out a few different
possibilities for what might be going on.

Initially, when I tried to go to filters after logging into
squirrelmail, squirrelmail would hang, and eventually time out with no
error messages (just a reset by peer, I think). I tried going into
imapd.conf and turning off tls for sieve to see if there was an
authentication problem:

sieve_tls_cert_file: disable

When I do this, then I get an error message when I click on filters:

Warning: stream_socket_enable_crypto()
[function.stream-socket-enable-crypto]: SSL operation failed with code
1. OpenSSL Error messages: error:1408F10B:SSL
routines:SSL3_GET_RECORD:wrong version number in
/usr/share/squirrelmail/plugins/avelsieve/include/managesieve.lib.php
on
line 514
ERROR:
Could not log on to timsieved daemon on your IMAP server
localhost:2000.
Error Encountered: 255
Please contact your administrator.

I looked at the managesieve.lib.php script, and I noticed that it uses
php4, but I am using php5. But, it seems kind of strange that it would
require php4, since this is the stable package for debian with default
settings, and I didn't have any dependency issues installing, so I'm
not
sure this is the problem.

squirrelmail2:1.4.15-4+lenny2
avelsieve   1.9.7-6+lenny1

TLS/SSL works for eveything else (imap,imaps,smtp,and apache), so I'm a
little bit suspicious for that being the problem.

Something I did notice was that in the previous installation, we seemed
to be using something called websieve, although we also had the
avelsieve plugin installed. I copied the websieve directory, but I
haven't found any documentation about how websieve is different from
avelsieve or whether you can use both, or how
squirrelmail/avelsieve/websieve interact. I think I need to get rid of
websieve, and just use avelsieve, but I'm not sure about this. Would I
run into problems if I just got rid of the websieve directory? How is
avelsieve suppose to interact with squirrelmail?

Hi,

From you previous mail I got the impression that you have used avelsieve
in the past. Now, did you use avelsieve or websieve (or both). At least
I
think using both at the same time doesn't make much sense. Avelsieve
uses
comments in your sieve scripts to store it's "metadata" and other tools
won't understand them.

On one host running RHEL4 (which means PHP 4) I'm running
avelsieve-1.9.8
and in it's config file I see this:

/**
 * @var boolean Disable STARTTLS for ManageSieve. You can set this to
true,
 * if you do not wish to use encryption via TLS mechanisms (i.e. the
server
 * is not configured properly, or this is a local connection and TLS is
not
 * needed.
 * Note that STARTTLS is supported only in PHP5+. In PHP4 this option
will
 * have no effect and STARTTLS will be disabled anyway.
 */
global $avelsieve_disabletls;
$avelsieve_disabletls = false;

I was using avelsieve 1.9.7 before and a patch was needed to get the
same
behaviour. The patch is attached, don't remember where I got it, I think
from avelsieve CVS.

That said, I have used it to run sieve on the local host with STARTTLS.
If
you want to use STARTTLS then I don't know how to make it work.

Regards,
Simon

Thanks Simon,
I don't seem to have anything about tls in my avelsieve-config.php file.

I seem to have both websieve and avelsieve on the previous installation,
and I'm not sure which was actually being used. Where in the config
files would I find out which one was actually being used?


I don't think websieve was used with squirrelmail but standalone. At least
I never heard of a websieve plugin for squirrelmail, but I know a tool
named websieve which has no relation to squirrelmail.

If you want to know how your sieve scripts were managed, you may just look
at the script on your imap server. If they have been created with
avelsieve then you will find lot's of comment string from avelsieve.

Regards,
Simon



I seem to have scripts created by both websieve and avelsieve, but I do
know that we have been managing sieve through squirrelmail for a very
long time. Looks like the websieve scripts haven't been touched since
2007. So, I think I'm back to where I was. Avelsieve was working on the
last machine, but isn't working now. I'm pretty sure I have copied all
configs over. How can I increase logging, so I can see what is happening
when I get the time-o

Re: avelsieve problem switching mail servers

2009-11-04 Thread Maria McKinley
Simon Matter wrote:
>> Simon Matter wrote:
 Hi there,

 I tried posting this on the squirrelmail plugin mailing list, but
 didn't
 get a response, so thought maybe someone on this list might be able to
 give me a hint, since I know a lot of you have sieve set up with cyrus
 and squirrelmail. Feel free to tell me this is the wrong list, and I
 will try elsewhere, but if someone can help, I would be very grateful.

 I recently moved my mail server to a new server, and have managed to
 get
 everything working except for sieve access through squirrelmail. I hope
 this mail isn't too confusing, but wanted to lay out a few different
 possibilities for what might be going on.

 Initially, when I tried to go to filters after logging into
 squirrelmail, squirrelmail would hang, and eventually time out with no
 error messages (just a reset by peer, I think). I tried going into
 imapd.conf and turning off tls for sieve to see if there was an
 authentication problem:

 sieve_tls_cert_file: disable

 When I do this, then I get an error message when I click on filters:

 Warning: stream_socket_enable_crypto()
 [function.stream-socket-enable-crypto]: SSL operation failed with code
 1. OpenSSL Error messages: error:1408F10B:SSL
 routines:SSL3_GET_RECORD:wrong version number in
 /usr/share/squirrelmail/plugins/avelsieve/include/managesieve.lib.php
 on
 line 514
 ERROR:
 Could not log on to timsieved daemon on your IMAP server
 localhost:2000.
 Error Encountered: 255
 Please contact your administrator.

 I looked at the managesieve.lib.php script, and I noticed that it uses
 php4, but I am using php5. But, it seems kind of strange that it would
 require php4, since this is the stable package for debian with default
 settings, and I didn't have any dependency issues installing, so I'm
 not
 sure this is the problem.

 squirrelmail2:1.4.15-4+lenny2
 avelsieve   1.9.7-6+lenny1

 TLS/SSL works for eveything else (imap,imaps,smtp,and apache), so I'm a
 little bit suspicious for that being the problem.

 Something I did notice was that in the previous installation, we seemed
 to be using something called websieve, although we also had the
 avelsieve plugin installed. I copied the websieve directory, but I
 haven't found any documentation about how websieve is different from
 avelsieve or whether you can use both, or how
 squirrelmail/avelsieve/websieve interact. I think I need to get rid of
 websieve, and just use avelsieve, but I'm not sure about this. Would I
 run into problems if I just got rid of the websieve directory? How is
 avelsieve suppose to interact with squirrelmail?
>>> Hi,
>>>
>>> From you previous mail I got the impression that you have used avelsieve
>>> in the past. Now, did you use avelsieve or websieve (or both). At least
>>> I
>>> think using both at the same time doesn't make much sense. Avelsieve
>>> uses
>>> comments in your sieve scripts to store it's "metadata" and other tools
>>> won't understand them.
>>>
>>> On one host running RHEL4 (which means PHP 4) I'm running
>>> avelsieve-1.9.8
>>> and in it's config file I see this:
>>>
>>> /**
>>>  * @var boolean Disable STARTTLS for ManageSieve. You can set this to
>>> true,
>>>  * if you do not wish to use encryption via TLS mechanisms (i.e. the
>>> server
>>>  * is not configured properly, or this is a local connection and TLS is
>>> not
>>>  * needed.
>>>  * Note that STARTTLS is supported only in PHP5+. In PHP4 this option
>>> will
>>>  * have no effect and STARTTLS will be disabled anyway.
>>>  */
>>> global $avelsieve_disabletls;
>>> $avelsieve_disabletls = false;
>>>
>>> I was using avelsieve 1.9.7 before and a patch was needed to get the
>>> same
>>> behaviour. The patch is attached, don't remember where I got it, I think
>>> from avelsieve CVS.
>>>
>>> That said, I have used it to run sieve on the local host with STARTTLS.
>>> If
>>> you want to use STARTTLS then I don't know how to make it work.
>>>
>>> Regards,
>>> Simon
>> Thanks Simon,
>> I don't seem to have anything about tls in my avelsieve-config.php file.
>>
>> I seem to have both websieve and avelsieve on the previous installation,
>> and I'm not sure which was actually being used. Where in the config
>> files would I find out which one was actually being used?
> 
> I don't think websieve was used with squirrelmail but standalone. At least
> I never heard of a websieve plugin for squirrelmail, but I know a tool
> named websieve which has no relation to squirrelmail.
> 
> If you want to know how your sieve scripts were managed, you may just look
> at the script on your imap server. If they have been created with
> avelsieve then you will find lot's of comment string from avelsieve.
> 
> Regards,
> Simon
> 


Re: avelsieve problem switching mail servers

2009-11-04 Thread Simon Matter
> Simon Matter wrote:
>>> Hi there,
>>>
>>> I tried posting this on the squirrelmail plugin mailing list, but
>>> didn't
>>> get a response, so thought maybe someone on this list might be able to
>>> give me a hint, since I know a lot of you have sieve set up with cyrus
>>> and squirrelmail. Feel free to tell me this is the wrong list, and I
>>> will try elsewhere, but if someone can help, I would be very grateful.
>>>
>>> I recently moved my mail server to a new server, and have managed to
>>> get
>>> everything working except for sieve access through squirrelmail. I hope
>>> this mail isn't too confusing, but wanted to lay out a few different
>>> possibilities for what might be going on.
>>>
>>> Initially, when I tried to go to filters after logging into
>>> squirrelmail, squirrelmail would hang, and eventually time out with no
>>> error messages (just a reset by peer, I think). I tried going into
>>> imapd.conf and turning off tls for sieve to see if there was an
>>> authentication problem:
>>>
>>> sieve_tls_cert_file: disable
>>>
>>> When I do this, then I get an error message when I click on filters:
>>>
>>> Warning: stream_socket_enable_crypto()
>>> [function.stream-socket-enable-crypto]: SSL operation failed with code
>>> 1. OpenSSL Error messages: error:1408F10B:SSL
>>> routines:SSL3_GET_RECORD:wrong version number in
>>> /usr/share/squirrelmail/plugins/avelsieve/include/managesieve.lib.php
>>> on
>>> line 514
>>> ERROR:
>>> Could not log on to timsieved daemon on your IMAP server
>>> localhost:2000.
>>> Error Encountered: 255
>>> Please contact your administrator.
>>>
>>> I looked at the managesieve.lib.php script, and I noticed that it uses
>>> php4, but I am using php5. But, it seems kind of strange that it would
>>> require php4, since this is the stable package for debian with default
>>> settings, and I didn't have any dependency issues installing, so I'm
>>> not
>>> sure this is the problem.
>>>
>>> squirrelmail2:1.4.15-4+lenny2
>>> avelsieve   1.9.7-6+lenny1
>>>
>>> TLS/SSL works for eveything else (imap,imaps,smtp,and apache), so I'm a
>>> little bit suspicious for that being the problem.
>>>
>>> Something I did notice was that in the previous installation, we seemed
>>> to be using something called websieve, although we also had the
>>> avelsieve plugin installed. I copied the websieve directory, but I
>>> haven't found any documentation about how websieve is different from
>>> avelsieve or whether you can use both, or how
>>> squirrelmail/avelsieve/websieve interact. I think I need to get rid of
>>> websieve, and just use avelsieve, but I'm not sure about this. Would I
>>> run into problems if I just got rid of the websieve directory? How is
>>> avelsieve suppose to interact with squirrelmail?
>>
>> Hi,
>>
>> From you previous mail I got the impression that you have used avelsieve
>> in the past. Now, did you use avelsieve or websieve (or both). At least
>> I
>> think using both at the same time doesn't make much sense. Avelsieve
>> uses
>> comments in your sieve scripts to store it's "metadata" and other tools
>> won't understand them.
>>
>> On one host running RHEL4 (which means PHP 4) I'm running
>> avelsieve-1.9.8
>> and in it's config file I see this:
>>
>> /**
>>  * @var boolean Disable STARTTLS for ManageSieve. You can set this to
>> true,
>>  * if you do not wish to use encryption via TLS mechanisms (i.e. the
>> server
>>  * is not configured properly, or this is a local connection and TLS is
>> not
>>  * needed.
>>  * Note that STARTTLS is supported only in PHP5+. In PHP4 this option
>> will
>>  * have no effect and STARTTLS will be disabled anyway.
>>  */
>> global $avelsieve_disabletls;
>> $avelsieve_disabletls = false;
>>
>> I was using avelsieve 1.9.7 before and a patch was needed to get the
>> same
>> behaviour. The patch is attached, don't remember where I got it, I think
>> from avelsieve CVS.
>>
>> That said, I have used it to run sieve on the local host with STARTTLS.
>> If
>> you want to use STARTTLS then I don't know how to make it work.
>>
>> Regards,
>> Simon
>
> Thanks Simon,
> I don't seem to have anything about tls in my avelsieve-config.php file.
>
> I seem to have both websieve and avelsieve on the previous installation,
> and I'm not sure which was actually being used. Where in the config
> files would I find out which one was actually being used?

I don't think websieve was used with squirrelmail but standalone. At least
I never heard of a websieve plugin for squirrelmail, but I know a tool
named websieve which has no relation to squirrelmail.

If you want to know how your sieve scripts were managed, you may just look
at the script on your imap server. If they have been created with
avelsieve then you will find lot's of comment string from avelsieve.

Regards,
Simon


Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/c

Re: avelsieve problem switching mail servers

2009-11-04 Thread Maria McKinley
Simon Matter wrote:
>> Hi there,
>>
>> I tried posting this on the squirrelmail plugin mailing list, but didn't
>> get a response, so thought maybe someone on this list might be able to
>> give me a hint, since I know a lot of you have sieve set up with cyrus
>> and squirrelmail. Feel free to tell me this is the wrong list, and I
>> will try elsewhere, but if someone can help, I would be very grateful.
>>
>> I recently moved my mail server to a new server, and have managed to get
>> everything working except for sieve access through squirrelmail. I hope
>> this mail isn't too confusing, but wanted to lay out a few different
>> possibilities for what might be going on.
>>
>> Initially, when I tried to go to filters after logging into
>> squirrelmail, squirrelmail would hang, and eventually time out with no
>> error messages (just a reset by peer, I think). I tried going into
>> imapd.conf and turning off tls for sieve to see if there was an
>> authentication problem:
>>
>> sieve_tls_cert_file: disable
>>
>> When I do this, then I get an error message when I click on filters:
>>
>> Warning: stream_socket_enable_crypto()
>> [function.stream-socket-enable-crypto]: SSL operation failed with code
>> 1. OpenSSL Error messages: error:1408F10B:SSL
>> routines:SSL3_GET_RECORD:wrong version number in
>> /usr/share/squirrelmail/plugins/avelsieve/include/managesieve.lib.php on
>> line 514
>> ERROR:
>> Could not log on to timsieved daemon on your IMAP server localhost:2000.
>> Error Encountered: 255
>> Please contact your administrator.
>>
>> I looked at the managesieve.lib.php script, and I noticed that it uses
>> php4, but I am using php5. But, it seems kind of strange that it would
>> require php4, since this is the stable package for debian with default
>> settings, and I didn't have any dependency issues installing, so I'm not
>> sure this is the problem.
>>
>> squirrelmail2:1.4.15-4+lenny2
>> avelsieve   1.9.7-6+lenny1
>>
>> TLS/SSL works for eveything else (imap,imaps,smtp,and apache), so I'm a
>> little bit suspicious for that being the problem.
>>
>> Something I did notice was that in the previous installation, we seemed
>> to be using something called websieve, although we also had the
>> avelsieve plugin installed. I copied the websieve directory, but I
>> haven't found any documentation about how websieve is different from
>> avelsieve or whether you can use both, or how
>> squirrelmail/avelsieve/websieve interact. I think I need to get rid of
>> websieve, and just use avelsieve, but I'm not sure about this. Would I
>> run into problems if I just got rid of the websieve directory? How is
>> avelsieve suppose to interact with squirrelmail?
> 
> Hi,
> 
> From you previous mail I got the impression that you have used avelsieve
> in the past. Now, did you use avelsieve or websieve (or both). At least I
> think using both at the same time doesn't make much sense. Avelsieve uses
> comments in your sieve scripts to store it's "metadata" and other tools
> won't understand them.
> 
> On one host running RHEL4 (which means PHP 4) I'm running avelsieve-1.9.8
> and in it's config file I see this:
> 
> /**
>  * @var boolean Disable STARTTLS for ManageSieve. You can set this to true,
>  * if you do not wish to use encryption via TLS mechanisms (i.e. the server
>  * is not configured properly, or this is a local connection and TLS is not
>  * needed.
>  * Note that STARTTLS is supported only in PHP5+. In PHP4 this option will
>  * have no effect and STARTTLS will be disabled anyway.
>  */
> global $avelsieve_disabletls;
> $avelsieve_disabletls = false;
> 
> I was using avelsieve 1.9.7 before and a patch was needed to get the same
> behaviour. The patch is attached, don't remember where I got it, I think
> from avelsieve CVS.
> 
> That said, I have used it to run sieve on the local host with STARTTLS. If
> you want to use STARTTLS then I don't know how to make it work.
> 
> Regards,
> Simon

Thanks Simon,
I don't seem to have anything about tls in my avelsieve-config.php file.

I seem to have both websieve and avelsieve on the previous installation, 
and I'm not sure which was actually being used. Where in the config 
files would I find out which one was actually being used?

thanks,
maria

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html