Open hanscees opened 7 years ago
Hi,
I will take a look at this!
OK so the plan is to only set those two lines in the ssmtp.conf if the authentication related variables are set.
I will implement this tomorrow, should be a quick fix.
Since I can't test this feature because I have no mail server where authentication is not required, I will create a new branch + tag on docker hub.
If it is working properly I can merge into the main branch.
Feel free to test it:
the image is called:
gmentsik/docktartar:3-email-without-auth
Please report back if it is working properly, so i can merge it into the master branch.
Sorry but I dont know howto pull such a branch :( this does not exist: https://github.com/gmentsik/docktartar:3-email-without-auth
and this does not work: git clone: https://github.com/Gmentsik/docktartar/tree/3-email-without-auth Cloning into '3-email-without-auth'... remote: Not Found fatal: repository 'https://github.com/Gmentsik/docktartar/tree/3-email-without-auth/' not found
You have to pull it from docker, just with :
docker run (stuff) gmentsik/Docktartar:3-email-without-auth
Gesendet von ProtonMail mobile
-------- Original-Nachricht -------- An 12. Okt. 2017, 21:12, Hans-Cees Speel schrieb:
Sorry but I dont know howto pull such a branch :( this does not exist: https://github.com/gmentsik/docktartar:3-email-without-auth
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Is it working? In your docker-compose you have to put it like this:
image: gmentsik/docktartar:3-email-without-auth
first part goes fine Pulling docktartar (gmentsik/docktartar:3-email-without-auth)... 3-email-without-auth: Pulling from gmentsik/docktartar
and yes, that works fine! Thanks!
docker exec -it backup_docktartar_1 /root/test-mail.sh Sending test email Success
the email works, but the smb backup does not. Is that on purpose?
I didn't change anything SMB related, please check your configuration, especially if you have elevated privileges set to true or added the appropriate capabilities mentioned in the readme regarding SMB.
I will merge the changes into master soon.
In #4 you wrote that it was working for you. Are the smb mount problems specific to this image?
gmentsik/docktartar:3-email-without-auth
Yes, the smbmount issues are specific tot this image.
Hi,
I am trying to send a test email message but that fails with the docker-compose.yml you provide.
The last line should be deleted when sending email, or there is no email.
Secondly. I want to send email without authentication. Is it possible to provide an environmental variable like EMAIL_AUTH "false"?
when I leave the authuser blanc apparently it uses auth anyway:
root@core containers/BACKUP2017-10-07# docker exec -it backup_docktartar_1 /root/test-mail.sh Sending test email ssmtp: Server didn't like our AUTH LOGIN (500 Unrecognized command) Could not send email, ssmtp returned a non-zero code!
If I delete the line with autjuser form ssmtp.conf the test goes fine: root@core containers/BACKUP2017-10-07# docker exec -it backup_docktartar_1 /root/test-mail.sh Sending test email Success
ssmtp.conf then is: root=hans@cees.com mailhub=192.168.0.1:25 UseSTARTTLS=NO FromLineOverride=YES