Bye Fatal Error Tls_start_servertls Failed
09:52:59 +0000 On 2004.02.18 09:25, Kacper Wysocki wrote: > Pawel cyrus imaps fatal error tls_start_servertls failed Salek wrote: > > Kacper Wysocki wrote: > >> cyrus imapd fatal error tls_start_servertls failed No idea - I've been using their squirrelmail interface until now, > > >> but telnetting the box and giving it any two lines of characters > >> gives: * BYE Fatal error: tls_start_servertls() failed > >> > >> How do I find out? Suppose I could axe the admins... > > > > Axing the admins would definetely provide the answer. But what > about > > > doing > > > > telnet host.domain imap > > and then typing: > > . capability > > . logout > > This times out on the imap port, but connects on the imaps port. I > still get the same "BYE" message, though. You need to use then something similar to the following - use apriopriate host name: openssl s_client -connect cyrus.andrew.cmu.edu:993 Z pozdrowieniami, Pawel Follow-Ups: Re: imap troubles From: Kacper Wysocki References: Re: imap troubles From: Kacper Wysocki [Date Prev][Date Next] [Thread Prev][Thread Next] [Thread Index] [Date Index] [Author Index] The GNOME Project About Us Get Involved Teams Support GNOME Contact Us The GNOME Foundation Resources Developer Center Documentation Wiki Mailing Lists IRC Channels Bug Tracker Development Code Build Tool News Press Releases Latest Release Planet GNOME GNOME Journal Development News Identi.ca Twitter Copyright © 2005 - 2012 The GNOME Project. Optimised for standards. Hosted by Red Hat. Powered by MailMan
order to test things, I have started cyrus-imapwith services for imap on port 1431, for imaps on port 9931.I can create an account on mail.app that talks to port 1431 just fine- no problems, it just works.When I create an account on mail.app with ssl set and port 9931, itfails to connect.Connecting to uw-imap on the same server (at port 993 of course)works without a hitch.Of note:1) I have "real" certificates (thawte) - I configured /etc/imapd.confwith the key and crt file, no ca file.2) I https://mail.gnome.org/archives/balsa-list/2004-February/msg00065.html get a note in my log from cyrus imap saying that it couldn'tload the ca file, I guess this is ok, no idea.3) One interesting note is that:telnet MAILHOST 993enter a few timesdisconnects me with no message, Whereastelnet MAILHOST 9931enter a few timesdisconnects me with * BYE Fatal error: tls_start_servertls() failed4) imtest connects correctly, with some odd messages:imtest -p http://info-cyrus.andrew.cmu.narkive.com/8FFx690T/cyrus-imapd-ssl-against-mac-osx-mail-app 9931 -s MAILHOSTverify error:num=20:unable to get local issuer certificateverify error:num=27:certificate not trustedverify error:num=21:unable to verify the first certificateTLS connection established: TLSv1 with cipher AES256-SHA (256/256 bits)S: * OK MAILHOST Cyrus IMAP4 v2.2.12-Invoca-RPM-2.2.12-1.1.fc3 serverreadyC: C01 CAPABILITYS: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALSNAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPENDBINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLEAUTH=LOGIN AUTH=PLAIN SASL-IR LISTEXT LIST-SUBSCRIBED X-NETSCAPES: C01 OK CompletedC: A01 AUTHENTICATE LOGINS: + VXNlcm5hbWU6Please enter your password:Any idea how to fix this?Thanks - Yossie Ken Murchison 2005-12-01 13:48:07 UTC PermalinkRaw Message Post by Joseph SilvermanWe are trying to migrate from uw-imap to cyrus-imap.In the process, in order to test things, I have started cyrus-imap withservices for imap on port 1431, for imaps on port 9931.I can create an account on mail.app that talks to port 1431 just fine -no problems, it just works.When I create an account on mail.app with ssl set and port 9931, itfails to connect.Connecting to uw-imap on the same server (at port 993 of course) workswithout a hitch.1) I have "real" certificates (thawte) - I confi
youtrying to use DIGEST-MD5? What happens if you try:imtest -m http://info-cyrus.andrew.cmu.narkive.com/9yHq5lUW/fatal-error-tls-start-servertls-failed-fwd plain -u cyrus -a cyrus -s localhostI hope the attached file helps us solve the problem which startedthis thread.Thanks so much https://github.com/PHPMailer/PHPMailer/issues/604 for your help.Mike Allen------------------------------------------------------------------------[mail2] ~> imtest -u cyrus -a cyrus -s localhostverify error:num=18:self signed certificateTLS connection established: TLSv1 with cipher fatal error AES256-SHA (256/256 bits)S: * OK mail2.familyradio.org Cyrus IMAP4 v2.1.12 server readyC: C01 CAPABILITYS: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE STARTTLS AUTH=NTLM AUTH=LOGIN AUTH=PLAIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5S: C01 OK fatal error tls_start_servertls CompletedC: A01 AUTHENTICATE DIGEST-MD5S: + bm9uY2U9ImdEaXQ2Y3d6ekRvNHhkdFlNUzVCSlZBSnpibmVQcnRQV1N1Nm5DczgxUW89IixyZWFsbT0ibWFpbDIuZmFtaWx5cmFkaW8ub3JnIixxb3A9ImF1dGgiLG1heGJ1Zj00MDk2LGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNzC: dXNlcm5hbWU9ImN5cnVzIixyZWFsbT0ibWFpbDIuZmFtaWx5cmFkaW8ub3JnIixub25jZT0iZ0RpdDZjd3p6RG80eGR0WU1TNUJKVkFKemJuZVBydFBXU3U2bkNzODFRbz0iLGNub25jZT0iQUFUVkRndnJwUjgxL2Z0SDJxaXZHWWEzQVY1dVJac0FCTjJlWTU4Y2hLUT0iLG5jPTAwMDAwMDAxLHFvcD1hdXRoLG1heGJ1Zj0xMDI0LGRpZ2VzdC11cmk9ImltYXAvbG9jYWxob3N0LmZhbWlseXJhZGlvLm9yZyIscmVzcG9uc2U9ZjQ1YTkxY2Q4OTZiNTg0NzZhMGYyNTY4OTE4YjIzZTg=S: A01 NO authentication failureAuthentication failed. generic failureSecurity strength factor: 256^CC: Q01 LOGOUTConnection closed.======================================================Please note that user cyrus does have a saslpasswd2 and it is in sasldb2.dbSee attached 'cyrus.conf'. I;ll send more logging information if needed.Thanks for your help on this.Mike Allen--Kenneth Murchison Oceana Matrix Ltd.Software Engineer 21 Princeton Place716-662-8973 x26 Orchard Park, NY 14127--PGP Public Key-- http://www.oceana.com/~ken/ksm.pgp Mike Allen 2003-08-26 20:18:31 UTC PermalinkRaw Message Ken:I hope the attached file helps us solve the problem which startedthis thread.Thanks so much for your help.Mike Allen Mike Allen 2003-08-26 00:32:06 UTC PermalinkRaw Message Ken: I forgot to include this information in my previous email.Mike Allen---------- Forwarded message ----------Date: Mon, 25 Aug 2003 15:12:59 -0700 (PDT)From: Mi
Support Search GitHub This repository Watch 648 Star 7,181 Fork 4,124 PHPMailer/PHPMailer Code Issues 53 Pull requests 10 Projects 0 Wiki Pulse Graphs New issue SMTP time limit ($Timeout) fails if server is not responding at all #604 Open BurninLeo opened this Issue Jan 9, 2016 · 7 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants BurninLeo commented Jan 9, 2016 I had a hard day with an SMTP issue... Although the PHPMailer::$Timeout was set to 30 (does not matter which value) SMTP::get_lines() hung for a very long time (30-60 minutes). I run on an up-to-date Linux system (Ubuntu VPS, nginx, php5-pfm). A plausible explanation was that the SMTP server does not send anything, which can cause stream_set_timeout() to be effectless. Here's is a suggestion how to modify SMTP::get_lines() to solve the issue - at least on a Linux system. Replace the following line: $str = @fgets($this->smtp_conn, 515); by the following block: // Use non-blocking reading for first loop to avoid the timeout being ignored because not data is received if (($data === '') and ($this->Timeout > 0)) { stream_set_blocking($this->smtp_conn, false); $endtimeOut = time() + $this->Timeout; $str = ''; while ((time() < $endtimeOut) and (strlen($str) < 515) and !feof($this->smtp_conn)) { sleep(1); // Note: This may require tuning $str.= @fgets($this->smtp_conn, 515); } if (time() >= $endtimeOut) { $this->edebug( 'SMTP -> get_lines(): timed-out (' . $this->Timeout . ' sec)', self::DEBUG_LOWLEVEL ); break; } stream_set_blocking($this->smtp_conn, true); } else { $str = @fgets($this->smtp_conn, 515); } I'd like to state explicitly that I am an expert neither on SMTP nor on non-blocking file operations. This is a practitioners solution that seems to work quite well. PHPMailer member Synchro commented Jan 10, 20