Skip to content
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

Need option to disable TLS on SMTP Connections #1

Open
fukawi2 opened this issue Apr 10, 2018 · 0 comments
Open

Need option to disable TLS on SMTP Connections #1

fukawi2 opened this issue Apr 10, 2018 · 0 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@fukawi2
Copy link
Owner

fukawi2 commented Apr 10, 2018

Platform Name and Version

FreeNAS-11.1-U1

fscanary version

0.4.0

Problem Description

gomail appears to use opportunistic TLS, but panics if the certificate doesn't not match the configured hostname:

Apr 10 09:55:11 nas-fs1 fscanary[87740]: panic: x509: certificate is valid for mail.example.com.au, www.mail.example.com.au, not smarthost.example.com.au
Apr 10 09:55:11 nas-fs1 fscanary[87740]: 
Apr 10 09:55:11 nas-fs1 fscanary[87740]: goroutine 509 [running]:
Apr 10 09:55:11 nas-fs1 fscanary[87740]: main.handle_event.func1(0xc444eea2a0, 0xc444ee8390, 0x694680, 0xc440cfe990)
Apr 10 09:55:11 nas-fs1 fscanary[87740]: 	/home/phs/go/src/fscanary/main.go:194 +0x55c
Apr 10 09:55:11 nas-fs1 fscanary[87740]: created by main.handle_event
Apr 10 09:55:11 nas-fs1 fscanary[87740]: 	/home/phs/go/src/fscanary/main.go:182 +0x770

Expected Results

It may be reasonable to want to disable opportunistic TLS and just use a plain-text connection, or accept any certificate regardless of hostname match.

@fukawi2 fukawi2 self-assigned this Apr 10, 2018
@fukawi2 fukawi2 added the good first issue Good for newcomers label Apr 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant