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

Email configuration did not work for me #62

Open
TimH54 opened this issue Mar 13, 2022 · 5 comments
Open

Email configuration did not work for me #62

TimH54 opened this issue Mar 13, 2022 · 5 comments
Labels
invalid This doesn't seem right question Further information is requested

Comments

@TimH54
Copy link

TimH54 commented Mar 13, 2022

Hi!

First of all, great set of scripts to wrap around restic - I love them! 🙂

I ran into one little problem (under Windows 10). In "secrets.ps1" I had set up the info regarding my SMTP server. In particular, I had set:

$ResticEmailConfig=@{UseSsl=$true; Port="465"}

But email sending would not work, I would get timeouts from the mail server. Strangely enough, omitting the port made it work for me:

$ResticEmailConfig=@{UseSsl=$true;}

After all, 465 should be the standard port for SMTP via SSL/TLS. I hope it still uses SSL, not sure how to check that.

Cheers,
Tim

@TimH54
Copy link
Author

TimH54 commented Mar 13, 2022

Checking the headers I confirmed that it still does use SSL:

Received: from [84.xxx.xxx.xx] (helo=xxx) by smtprelay06.xxx.xx with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384

So, for me it's all good, but I guess worth checking so that others do not run into the same problem.

By the way, this is what I am using restic with: https://www.syncosync.org

@rawtaz
Copy link

rawtaz commented Mar 13, 2022

I would get timeouts from the mail server.

Presumably the server isn't accessible on that port then?

FWIW, for submission port 587 is more appropriate than 465. The latter is just what became mainstream due to misuse.

@TimH54
Copy link
Author

TimH54 commented Mar 13, 2022

Yeah, but 465 is the port that my provider uses: https://www.df.eu/blog/sslin-df-eu-sslout-df-eu/ I have also set that up in my email clients and it works fine there!?

So I can't really explain it, but when I leave out the port bit it works fine. (If I get the PowerShell documentation right, default port will be 25, seems that works also with SSL enabled in case of my provider.)

@rawtaz
Copy link

rawtaz commented Mar 13, 2022

Would need to inspect the network traffic to determine why it fails when you have the port number configured I suppose. But if you're lucky enough that your ISP isn't blocking outgoing port 25 (very common around where I live) and it works then not much to fix :)

@kmwoley
Copy link
Owner

kmwoley commented Jan 15, 2023

Is it safe to close this issue? It doesn't look like there's a code fix here needed for the scripts?
Thanks!
Kevin

@kmwoley kmwoley added invalid This doesn't seem right question Further information is requested labels Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants