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
Unable to send Verification email - Self Hosted #1956
Comments
The instructions are entirely correct but assume that:
From that perspective, what you are seing is that: The Does that match your setup? |
@springcomp Yes that is exactly my setup. |
On another note, you mention using docker run --rm \
--name sl-migration \
-v $(pwd)/sl:/sl \
-v $(pwd)/sl/upload:/code/static/upload \
-v $(pwd)/dkim.key:/dkim.key \
-v $(pwd)/dkim.pub.key:/dkim.pub.key \
-v $(pwd)/simplelogin.env:/code/.env \
--network="sl-network" \
- simplelogin/app:3.4.0 flask db upgrade
+ simplelogin/app:4.6.5-beta alembic upgrade head |
@springcomp I tried with both 3.4.0 and 4.6.5-beta (with updated command for migration). |
Can you try and report the following troubleshooting steps:
Please, try to connect to the local SMTP server: > telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 app.domain.tld ESMTP Postfix (Ubuntu)
QUIT
221 2.0.0 Bye
Connection closed by foreign host.
> Please, make sure you can successfully connect to the local SMTP server.
Please, run the following command: docker inspect network simplelogin_default You should get a JSON-formatted output with network configuration. "IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "10.0.0.0/24",
"Gateway": "10.0.0.1"
}
]
} Please, check that the running containers all share the same network. My setup reports the following configuration:
|
|
Here's the complete network config: [
{
"Name": "sl-network",
"Id": "8cec3bd46e9b11bacee64dc78bce420cba24da11eae89b2c19b6741289bf703b",
"Created": "2023-12-04T09:42:08.000606397Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": {},
"Config": [
{
"Subnet": "10.0.0.0/24",
"Gateway": "10.0.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"130efb6112097084a2a6b8824632f410d841a980641e813928ea0af523833f30": {
"Name": "sl-job-runner",
"EndpointID": "e00ecba8377355420af7cf5e149d633d30d494e2c7d3af637de7f314224645a4",
"MacAddress": "02:42:0a:00:00:03",
"IPv4Address": "10.0.0.3/24",
"IPv6Address": ""
},
"346a1367145e71a15a0122c413fc748fd3548348809d65239995b752b65f7e40": {
"Name": "sl-email",
"EndpointID": "bee71577a8b9109ae466b0f23bc1ec1bfb5d1285820ae0f45ff1c5527a644f1f",
"MacAddress": "02:42:0a:00:00:02",
"IPv4Address": "10.0.0.2/24",
"IPv6Address": ""
},
"4b94e28d23e1a0180ed6ee8234c258c9e749c30fad0fb7bece7fe7b1b4cfa40a": {
"Name": "sl-db",
"EndpointID": "d9bb04d3cc43a94fab3966ffa56fb182002741c82158c55219660fcc0f47ad00",
"MacAddress": "02:42:0a:00:00:05",
"IPv4Address": "10.0.0.5/24",
"IPv6Address": ""
},
"5d07dac7c4af4a1ed9b17f400489c4eb4af866c44619e8c05c7296fad2ef889f": {
"Name": "sl-app",
"EndpointID": "1cf92077bae94a6e66ae197c2f3ee8a636b6ff6904c5398ece9d46d92a371f84",
"MacAddress": "02:42:0a:00:00:04",
"IPv4Address": "10.0.0.4/24",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {}
}
] |
So, for some reason, when inside a docker container, you cannot reach the host… 🤔 Can you try connecting to > docker exec -it sl-app bash
root@5d07dac7c4a:/code# apt update && apt install -y inetutils-telnet
root@5d07dac7c4a:/code# telnet 10.0.0.1 25
Trying 10.0.0.1 ...
Connected to 10.0.0.1.
Escape character is '^]'.
220 app.domain.tld ESMTP Postfix (Ubuntu)
QUIT
221 2.0.0 Bye
Connection closed by foreign host.
root@5d07dac7c4a: /code# If that works, I’m out of ideas 😥 |
I'm not able to connect to host from within the container: root@705a1b7af81c:/code# telnet 10.0.0.1 25
Trying 10.0.0.1...
telnet: Unable to connect to remote host: Connection refused |
Can you share the output of I would suggest disabling the firewall for troubleshooting. |
I did turn off the firewall to see if that was causing some issue but that was not the case. Also, two of my host's interfaces are in the range |
Also, now when I try to create an account or resend the verification email, I get "502 Bad gateway" error from nginx and this in the logs: 2023-12-05 02:13:54,643 - SL - DEBUG - 337 - "/code/app/email_utils.py:298" - send_email() - - send email to myemail@yahoo.com, subject 'Just one more step to join SimpleLogin'
[2023-12-05 02:14:10 +0000] [1] [CRITICAL] WORKER TIMEOUT (pid:337)
[2023-12-05 02:14:10 +0000] [337] [INFO] Worker exiting (pid: 337)
[2023-12-05 02:14:11 +0000] [343] [INFO] Booting worker with pid: 343 |
I'm also getting the same as @mrehanabbasi. Same errors, same issue. I got around the account registration by modifying the users table like so...
But I'm not able to send an email to my alias and have it forwarded as I'm getting connection refused
|
@edleeman17 I wasn't able to get simplelogin to run. However using this helped me get it up and running. I'd highly recommend it. |
Thank you! I'll take a look |
I have followed all the instructions for self-hosted and even used the
simplelogin/app:4.5.6-beta
image along with using the-traditional
flag for DKIM keys. However, when registering my first account, I get this error:Invalid email, are you sure the email is correct?
Upon checking the DB, I see that a new user has been added to the
users
table. However, upon checking the logs ofsl-app
, I see that the verification email is not being sent:I also have enabled
ufw
to allow ports22
,25
,80
and443
.Is there anything I am doing wrong or are the instructions not complete/correct?
The text was updated successfully, but these errors were encountered: