Skip Menu |

This queue is for tickets about the NET-Sieve CPAN distribution.

Report information
The Basics
Id: 52061
Status: resolved
Priority: 0/
Queue: NET-Sieve

People
Owner: agostini [...] univ-metz.fr
Requestors: arbatovevgeniy [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.05
Fixed in: 0.11



Hello, I have a problem with Net::Sieve and connecting to Cyrus IMAP server. When I run the following script: my $SieveServer = Net::Sieve->new ( server => '10.129.1.101', port => '2000', user => 'username', password => 'password', ssl_verif => '0x00', debug => '1', dumptlsinfo => '1', ); I am using Ubuntu 9.04 with perl v5.10.0. $uname -a Linux computer 2.6.28-16-generic #55-Ubuntu SMP Tue Oct 20 19:48:24 UTC 2009 i686 GNU/Linux
Subject: Previous message continued
Sorry, it seems I have not finished composing the previous message. Once I run the script (see attachment) the following message appears: earbatov@computer:~/Desktop/Mail_soritng$ ./first Connection dropped unexpectedly when trying to read. No Sieve script is uploaded to the IMAP server as a result. The SSL debugging gives me: connection: remote host address is 10.129.1.101 <<< "IMPLEMENTATION" "Cyrus timsieved v2.3.14" <<< "SASL" "PLAIN LOGIN" <<< "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy" <<< "STARTTLS" <<< OK Show quoted text
>>> STARTTLS\r\n
<<< OK "Begin TLS negotiation now" --- TLS activated here Subject Name: Issuer Name: Show quoted text
-----BEGIN CERTIFICATE----- <text cut here> -----END CERTIFICATE-----
>>> NOOP\r\n
<<< "IMPLEMENTATION" "Cyrus timsieved v2.3.14" <<< "SASL" "PLAIN LOGIN" <<< "SIEVE" "comparator-i;ascii-numeric fileinto reject vacation imapflags notify envelope relational regex subaddress copy" <<< OK
>>> AUTHENTICATE "PLAIN" {24+}\r\n
An interesting issue is that StartTLS does not seem to work for Cyrus IMAP Sieve at all, when tested with openssl: earbatov@computer:~$ openssl s_client -connect 10.129.1.101:2000 -tls1 -CApath /home/earbatov/Desktop/Mail_soritng/eca-mail-dev-ca-crt.pem -starttls smtp CONNECTED(00000003) didn't found starttls in server response, try anyway... read:errno=32 The Cyrus IMAP logs do not show anything interesting: mail sieve[28482]: accepted connection mail master[28485]: about to exec /usr/lib/cyrus-imapd/timsieved mail sieve[28485]: executed mail sieve[28482]: imapd:Loading hard-coded DH parameters mail sieve[28482]: SSL_accept() incomplete -> wait mail sieve[28482]: SSL_accept() succeeded -> done mail sieve[28482]: starttls: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits new) no authentication mail sieve[28482]: Lost connection to client -- exiting mail master[26194]: process 28482 exited, status 0 I can see from the LDAP logs, that no authentication attempts are being made by Cyrus IMAP server, when I run my script. Many thanks. Best regards, Evgeniy
Download simple_net_sieve_script
application/octet-stream 606b

Message body not shown because it is not plain text.