email icon indicating copy to clipboard operation
email copied to clipboard

X509 certificate signed by unknown authority

Open CodyGuo opened this issue 9 years ago • 4 comments

Using the LAN email

ESMTP

CodyGuo avatar Nov 01 '16 09:11 CodyGuo

I have this problem too ,can you have resoves ,thanks

zhang1shuo avatar Nov 08 '16 07:11 zhang1shuo

in windows ,it is ok ,but in linux ,it doesnt work .

zhang1shuo avatar Nov 08 '16 08:11 zhang1shuo

Hi,

I remember I had this problem myself some time ago and did a small test that fixed it: https://github.com/scorredoira/basicSmtp/blob/master/smtp.go.

I will check it again to integrate it.

thanks

scorredoira avatar Nov 08 '16 09:11 scorredoira

Hi , I modify some codes in smtp.SendMail() : Befor : if ok, _ := c.Extension("STARTTLS"); ok { config := &tls.Config{ServerName: c.serverName} if testHookStartTLS != nil { testHookStartTLS(config) } if err = c.StartTLS(config); err != nil { return err } }

After: if ok, _ := c.Extension("STARTTLS"); ok { config := &tls.Config{ServerName: c.serverName,# InsecureSkipVerify:true} if testHookStartTLS != nil { testHookStartTLS(config) } if err = c.StartTLS(config); err != nil { return err } } Then ,it works .

zhang1shuo avatar Nov 08 '16 09:11 zhang1shuo