#SMTP connect() failed on Appwrite Messaging

21 messages · Page 1 of 1 (latest)

hearty hedge
#

Hi,

I've upgraded to Appwrite 1.5.2, and want to try out Appwrite Messaging with my SMTP server. I've tried Gmail SMTP relay and Mailersend.com, but both give me SMTP connect() failed. Which is kinda weird, because if I use the same credentials in the project settings in the SMTP tab, Appwrite sends out confirmation and sign-up emails just fine.

How can I debug this?

Kind regards,

Bas

tropic flicker
hearty hedge
# tropic flicker Is SMTP set up in the server `.env`, or just in the Project settings?

in three locations, the environment variables (which work, Appwrite is sending out emails to admins), the project SMTP tab (which works, Appwrite is sending out emails to site user signups and such), and in Appwrite Messaging, which doesn't work with the error SMTP connect() failed. All settings are the same server, same credentials and same TLS settings. I've tried both Gmail and Mailersend, all works except Appwrite Messaging.

ionic fjord
hearty hedge
#

I've tested it just now with a localhost nc -l 25, and it looks like it at least connects and sends SMTP commands. Looks like something with TLS. Might it be something to do with the worker container? How can I debug further?

ionic fjord
hearty hedge
#

yes, that seems to work. I am not able to actually test mail sending, as no sane SMTP provider without encryption exists, but it at least connects, which I guess is one step further than SMTP connect() failed

hearty hedge
#

Ok, let me try that out

hearty hedge
#

@ionic fjord just to be sure, which container do I exec into?

jovial sparrow
#

I did that. The mailing process does not fail directly now, however it does not complete either and hangs at processing, This is for both mailgun and my own smtp as well as googlemail smtp.

ebon kelp
#

Even I encountered issues via TLS, not sure if thats related.

misty brook
#

I'm also getting the SMTP connect() failed error. I don't see any logs in the worker-mails container.
Did anyone manage to resolve the issue?

jovial sparrow
#

Sadly not I followed the advice posted by Steven above and exchanged the lines of code. I found one solitary email in spam but could not for the life of me figure out why this worked

ionic fjord
jovial sparrow
#

Done! Thank you Steven

tropic flicker