I have just bought the Nextcloud VM [Pre-installed – 500 GB version from hanssonit.se.
But while installing I encountered an error or what seems to be a bug. I’m unable to setup the email notification service.
While running “sudo bash /var/scripts/menu.sh” again and again(with different options) I always get the message:
And using the webinterface there is no way to use or test it because there I also get an error message saying that i should enter an email address.
But it seems that a lot of software regarding email is not installed by the installer so that might not be the real problem.
Is this a bug?
Or should I do someting different?
I’m not getting an error message of any kind and can’t find one in the logs.
I didn’t have time to investigate the logging part yet.
Feel free to dig in to it.
@provell The SMTP relay is outside of Nextcloud. everything happens in the OS, so there’s no GUI where you can reach it, and there’s no connection to the Nextcloud logs either.
@provell we just merged https://github.com/nextcloud/vm/pull/1536.
Please wait 10 minutes and try to run the setup again. If it still doesn’t work, you will find more debugging information in the /var/log/msmtp file.
I updated the server using the /var/scripts/update.sh script to get the new software.
Then I ran the smpt setup again and unfortunatly got the same result that it failed.
The error message did say I could find out more about the failure in /var/log/msmtp so I am running the updated software.
But when I looked in to /var/log/msmtp the file was 0 in size and thus empty.
NOTE! Sending a test email using the settings menu in the GUI now works.
I deleted the admin user that had a email address as a username and created a “normal” username.
If this was realy the problem maybe catching the input of username and checking for @ could help in future versions.
Please let me know if I can do some more testing.
Thanks in advance for the help
Ok, did another test:
sudo bash /var/scripts/setup.sh
sudo bash/var/scripts/menu.sh…and all the smpt setup info.
Then got the same error telling met to look in /var/log/msmtp
This time with content: mail: /usr/bin/msmtp -t: No such file or directory Can’t send mail: sendmail process failed with error code 1
I checked and there is indeed no such file or directory in /user/bin
Seems like I’m missing an executable file. Correct?
Appart from why it is missing there is another question: How do I get it?
Currently I’m using the nextcloud server and would rather not do a complete re-install.
How do you get it is already answered by the link that I’ve send to you in my post above. Those commands should install those automatically.
But if it helps:
Run sudo apt install msmtp msmtp-mta mailutils
Afterwards check if the directory exists.
Would also be interesting to know if all packets get successfully installed.
The question is when did you buy the VM? Depending on this the VM will be on Ubuntu 18.04 or 20.04…