/srv/irclogs.ubuntu.com/2022/01/06/#ubuntu-security.txt

=== Hash is now known as EnchanterTim
BCBI'm connecting from a server in the cloud to a server on the ground to send an email through port 58701:13
BCBfrom the command line: openssl s_client -connect server.my-grounded-server.net:58701:13
BCBthe response is: 140185774434048:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:332:01:13
sarnoldtry using s_client -tls1_1   .. -tls1_2 etc kinds of flags; search for -bugs in the s_client manpage for a few more ideas to try01:18
BCBI ran this: openssl  s_client -tls1_1 -connect server.my-grounded-server.net:58701:20
BCBand it returned:140117241747200:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:332:01:20
BCBsarnold: any thoughts01:22
sarnoldkeep trying the various flags mentioned near -bugs in the manpage, one of them might work01:23
BCBcopy01:23
BCBsarnold all of these flags are failing.  Does the flag go after openssl OR  s_client OR  -connect ??01:27
sarnoldBCB: after s_client -- eg: openssl s_client -tls1_2 -connect irc.oftc.net:669701:32
BCBsarnold no chances.  It is also reporting: no peer certificate available AND No client certificate CA names sent01:45
sarnoldBCB: dang. I was hoping that one of those would just fix it for you :/01:46
BCB*changes01:46
BCBme too!01:46
sarnoldBCB: 'no peer certificate' makes sense, because the TLS session negotiation failed to agree on even the basic version of TLS to use01:47
sarnoldBCB: 'no client certificate' makes sense, you didn't use -cert ... and -key ... to request one to be used01:47
BCBsarnold: the openssl connection works on port :443 but NOT on port :56701:49
BCB*58701:49
BCBsarnold let me check my certs on the grounded server01:50
sarnoldBCB: ohh, promising01:50
BCBsarnold seem to be all good.  that server got A+ on Qualys SSL Labs server test???01:53
BCBsarnold so I ~don't~ think it's a certificate issue.01:54
sarnoldBCB: hmm, strange, I thought qualys only checked HTTPS and didn't do anything for submission01:54
BCBmy submission used my ssl cert for the site01:56
BCB*uses01:56
sarnoldsure, but afaik qualys can't tell you if you've got your MTA configured correctly..01:57
BCBsarnold mxtoolbox shows all good when I test my mailserver there.  Maybe it is on the sending server.01:59
sarnoldBCB: do your system logs show them testing port 587? or just 25?02:02
BCBsarnold what do you mean "testing"  the mail server is set up to receive submissions on 58702:09
sarnoldBCB: whatever it is that mxtoolbox does02:09
kenyonBCB: usually you have to do -starttls with submission, it doesn't do TLS directly02:43
kenyon`-starttls smtp`02:44
sarnoldOH MAN02:45
sarnoldcan't believe I forgot that :(02:45
BCBkenyon someone on #postfix just told me that!  But why did the cmd with out '-starttls smtp' work previously ??02:47
BCBkenyon I don't understand why it is failing now.02:47
kenyonBCB: maybe you weren't testing against an smtp server before02:48
kenyonor you were testing with smtps port 465 which does direct TLS02:48
BCBkenyon no it was on a production server that worked fine02:49
BCBnope  port 587 for ever02:49
BCBANYWAY I'm using phpmailer.  Now how do I tell that use use '-starttls smtp' when making the connections??02:49
BCBkenyon my emailserver supports STARTTLS https://pastbin.net/raw/untitled-40402:53
kenyonBCB: looks like you do `$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;`02:53
BCBkenyon: thanks.  let me try that02:53
BCBkenyon: did you get that from a link on the web??'02:53
kenyonBCB: just read the source02:54
kenyonhttps://github.com/PHPMailer/PHPMailer/blob/a69cfb1860c36f607d0822ee88d8a67da35fa5d8/src/PHPMailer.php and https://github.com/PHPMailer/PHPMailer/blob/master/examples/ssl_options.phps02:54
BCBkenyon yes I was poking around in there.  Thank you!02:54
BCBkenyon those examples show '$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS;' NOT $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTLS;'02:58
BCBwhere did you see that cmd02:58
kenyonBCB: this is not really relevant to this channel now, but in the first link I gave, that constant is defined02:58
BCBkenyon Copy.  Thank you!02:59
=== Unit193 is now known as JackFrost
eb3095_Hello, I'm from Vultr. We are having issues with the repos blocking our IP space. Can I get more information on this and how to get this resolved as quickly as possible? All our Ubuntu images are failing to deploy at this time because of this issue.17:19
sdezieleb3095_: I'm not sure but I think #ubuntu-mirrors would be a better place to ask17:47
eb3095_Great thanks, wasnt exactly sure17:49

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!