outdoorbits / little-backup-box

This software turns a single-board computer into a versatile, pocket-sized backup solution. Especially for digital photography, this is the solution for backing up images and media files on mass storage devices when traveling or at events. Media content can be viewed and rated for the subsequent process.
http://littlebackupbox.com
GNU General Public License v3.0
504 stars 103 forks source link

Bug or stupid User? #183

Closed ruebyi closed 1 year ago

ruebyi commented 1 year ago

Hi,

I'm not able to get the Email-Notification to work. I tested gmx.de google.com hosteurope

as Mailprovider - I don't receive mail and can't find any mails in the send Folders of this providers.

What am I doing wrong - I'm using the same settings as I use on my iPhone / iPad for those Accounts

outdoorbits commented 1 year ago

Did this work before? I had to change a few things about mailing a few days ago. I'll test against GMX, but maybe not before Monday. Could you set loglevel to max, mail security to STARTTLS, send a testmail and post the log? Thank you!

outdoorbits commented 1 year ago

Does your password contain characters like ", ' or : ?

ruebyi commented 1 year ago

It did work with an other Mailprovider, I'm not suing anymore. But yes, my Passwords have some kind of special Characters - and the working one did not (Except for an "-")

ruebyi commented 1 year ago

Here ist the Bug Report - tested GMAIL with STARTLS

`15:40:16 OUTGOING MAIL

curl --url 'smtps://smtp.gmail.com:465' --ssl-reqd --mail-from '****ww/little-backup-box/tmp/email.txt: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (67) Login denied

15:40:16 Mail: Greetings from LBB

Congratulations, the mail delivery works.

`

ruebyi commented 1 year ago

Tested GMX with SSL

15:42:32 OUTGOING MAIL

curl --url 'smtps://mail.gmx.net:587' --ssl --mail-from '*@gmx.de' --mail-rcpt '*****' --user '****@gmx.de':'PASSWORD' --upload-file /var/www/little-backup-box/tmp/email.txt: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

15:42:32 Mail: Greetings from LBB

Congratulations, the mail delivery works.

ruebyi commented 1 year ago

I only deleted the Mailadressen and replaced them - sorry

outdoorbits commented 1 year ago

I just updated lbb. This should make passwords more robust, only >'< inside a password should cause trouble. For mail.gmx.net I had success with port 465, STARTTLS. Does this work for you?

smu commented 1 year ago

some problem here. I get a curl: (67) Login denied without any special character is my password.

(Didn't know, that you can send mail using curl, btw. very simple solution!)

outdoorbits commented 1 year ago

Did you give your username as number or mail-address?

smu commented 1 year ago

I have my personal mailserver (exim) where I define username and password myself. No numbers and no '@' symbol or other special characters in the username or password.

ruebyi commented 1 year ago

the fix worked for dmx - thank you!

smu commented 1 year ago

In my case the problem must be related to my server 🙄. When using another mail server it works fine.

outdoorbits commented 1 year ago

Does your servers mail logfile tell more?

smu commented 1 year ago

Nope, only '535 Incorrect authentication data'

The verbose output of curl looks fine as well, including the base64 encoded username:password combination. I don't get it, but it is clearly not an issue in little-backup-box. thanks again!

Asturbike commented 1 year ago

I think I only receive emails when the log level is maximum

outdoorbits commented 1 year ago

You are right, thank you, bug is fixed.Message ID: @.***>

outdoorbits commented 1 year ago

I'll close this issue now. Thank you for your bug reports.