New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:ssl crash #17
Comments
|
https://www.zoho.com/mail/help/zoho-smtp.html SMTP Configuration settings for Zoho Mail - SSL SMTP Configuration settings for Zoho Mail - TLS my $client = Net::SMTP.new( :server( "smtp.zoho.com" ), :port( 465 ), :ssl, :debug( 1 ) ); $ crashme.pl6 my $client = Net::SMTP.new( :server( "smtp.zoho.com" ), :port( 587 ), :starttls, :debug( 1 ) ); $ crashme.pl6 |
|
The fact that the errors note SSL3 suggests that the target server only supports the newer tls versions. Or, if they use the same cert for those two ports as they do for port 25, the issue might be that they provide a cert for *.zoho.com rather than for anything in zohomail.com, thus the client might dislike that the cert is for a different name. (The above comments are strictly from a tls point of view; I am not at all familiar with the p6 modules.) |
|
On 08/20/2017 11:23 AM, James Cloos wrote:
The fact that the errors note SSL3 suggests that the target server only
supports the newer tls versions.
Or, if they use the same cert for those two ports as they do for port
25, the issue might be that they provide a cert for *.zoho.com rather
than for anything in zohomail.com, thus the client might dislike that
the cert is for a different name.
(The above comments are strictly from a tls point of view; I am not at
all familiar with the p6 modules.)
Is there a work around? I need to get status and alerts on server
raid pairs sent to me.
|
|
Sorry, I don't mean to rush you guys but I really need to get this going. Do you have a time frame on this? Would it be better for me to revert to Perl 5? (I prefer Perl 6 for its better sub headers and loops. Much easier for me to maintain.) I am troubleshooting a SATA hot swap issue that knocks the RAID 1 pairs out of sync (you have to flip the power off to recover after the file system hoses itself). So I has become a really big deal to get status reports on the RAID status. |
|
i cannot reproduce the problem with this code i don't think i'd have to authenticate correctly because in your error output no authentication appears. here's my output: though it does seem like once starttls has happened the debug printer no longer prints what's going on? i don't see my outgoing auth attempt. |
|
Is there any way to force SSL3 ? The following is for both port 587 (starttls) and 465 (ssl[3]):
#!/usr/bin/env perl6
use Net::SMTP;
my $client = Net::SMTP.new( :server( "smtp.zoho.com" ), :port( 587 ), :starttls, :simple, :debug( 1 ) );
$client.auth("hello", "goodbye");
$ crashme.pl6 And, $ crashme.pl6 |
|
Workaround: curl smtps://smtp.zoho.com:465 -v --mail-from "xxxxxxxxx@zoho.com" --mail-rcpt "yyyyyyyy@zoho.com" --ssl -u xxxxxxxxx@zoho.com:zzzzzzzzzzzzzz -T "mail.txt" -k --anyauth |
#!/usr/bin/env perl6 use Net::SMTP; my $client = Net::SMTP.new( :server( "smtp.zoho.com" ), :port( 465 ), :ssl, :starttls, :debug( 1 ) );$ crashme.pl6
err code: 336130329
error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac
Use of uninitialized value of type Str in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
in method get-response at /home/todd/.perl6/sources/C7BFE131D057F94A1EC6C5CBF4DFC8C731D85400 (Net::SMTP::Raw) line 13
Start argument to substr out of range. Is: 3, should be in 0..0; use *-3 if you want to index relative to the end
in method get-response at /home/todd/.perl6/sources/C7BFE131D057F94A1EC6C5CBF4DFC8C731D85400 (Net::SMTP::Raw) line 13
in method start at /home/todd/.perl6/sources/B0AFFC7E1CD3A465D71AF333700CF7086E4870E5 (Net::SMTP::Simple) line 59
in method new at /home/todd/.perl6/sources/AF0C4F60F05B28648456130019BA1D9C3B2FE938 (Net::SMTP) line 38
in block at ./crashme.pl6 line 6
The text was updated successfully, but these errors were encountered: