
no I ran it on localhost

Would you please try it on the same server that's running Appwrite?

okay

BTW this is the program


yes it is working


I received mail in inbox

Do you have ssl
as the secure env var?

yes


Does docker compose exec appwrite-worker-mails vars
show the correct values? Including _APP_SYSTEM_EMAIL_ADDRESS

all values are correct

Would you be willing to DM me the exact values you used for the script and the output of the docker compose command?

including password ?

You can leave out the password

you deleted previous message of mine ?

I shared information in message for you

I DMed you

yes

Circiling back here. After testing with this script:
#!/bin/sh
TO=demo@example.com
if [ ! -z "$1" ]; then
TO=$1
fi
COMMAND='echo -e "From: <$_APP_SYSTEM_EMAIL_ADDRESS>\nSubject: Test SMTP Connection" | sendmail -H "openssl s_client -quiet -tls1 -connect $_APP_SMTP_HOST:$_APP_SMTP_PORT" -au$_APP_SMTP_USERNAME -ap$_APP_SMTP_PASSWORD -f $_APP_SYSTEM_EMAIL_ADDRESS -v'
COMMAND="${COMMAND} ${TO}"
docker compose exec appwrite-worker-mails sh -c "$COMMAND"
We got something like:
sendmail: send:'NOOP' 140170094533448:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:ssl/record/ssl3_record.c:331: sendmail: helper exited (1)
Based on this, we've determined there's something wrong with the appwrite server/smtp server preventing the connection. Maybe an SSL certificate problem.

[SOLVED] SMTP not working . . .

thanks a lot 🙂

If you are using your custom domain email (business mail) with appwrite then while generating SSL certificate don't generate two separate SSL for domain.com & mail.domain.com
instead generate single SSL for domain.com & *.domain.com and use it for mail.domain.com
Other wise appwrite SMTP won't work and gives error

This is final solution
Recommended threads
- upgrading from 1.4.5 to 1.6.0 broke my s...
I managed to upgrade my self hosted instance from 1.4.5 to 1.6.0 and now when i try to log into the dashboard i get the error in the attached image. Also any ap...
- Is it possible to getRow with all relati...
With the new Opt-In relationship loading, is it possible to query getRow to get all attributes and relationships and possibly even cascading relationships? I tr...
- TableDB.getRow() response does not conta...
This is for Web/React sdk 20.0.0 The row was created via `TableDB.createRow(...)` and I can see it in the console with the relationships correctly set. In the c...
