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