Hi folks,
I’m looking for some assistance getting the eMail Server in Basic Settings working. I’m running Hub 8 on Docker on Ubuntu Server 22.04 with a pretty vanilla setup. Everything seems to be working okay, including HTTPS support and redirection from my internet subdomain.
I’m using mailgun.org as my smtp service, and have gone through all of the setup, validation, and testing with them. I know my Mailgun setup is working fine because I used my smtp credentials to run their provided swak script to send a test message from a) the server’s os, and b) within the nextcloud-app docker container. Here is the test script (redacted):
./swaks --auth \
--server smtp.mailgun.org:587 \
--au <redacted> \
--ap <redacted> \
--to someone@gmail.com \
--h-Subject: "Hello" \
--body 'Testing some Mailgun awesomness!'
This sends an email and is sucessfully received.
I then set up the exact same credentials in NextCloud’s Basic Settings / eMail Server page, clicked Save, then clicked “Send email”. Wihout fail, I see this error message:
A problem occurred while sending the email. Please revise your settings. (Error: Email could not be sent. Check your mail server log)
- I looked at my config.php to make sure the smtp settings were exactly those that I successfully used with the swak script, and they are.
- I looked at my mail server (
mailgun.org) log, and there is no record of any unsuccessful email submission to it. I suspect that no call to mailgun is being made. - I looked at the NextCloud log, and there were no log entries (at all) from the time when I attempted to send the email.
- I double-checked connectivity to the smtp server from within the docker container by running telnet
smtp.mailgun.org587 ad got connected.
I’m at my wit’s end, folks. What am I missing?