Back

[SOLVED] SMTP Error

  • 0
  • Self Hosted
  • General
mimimi
17 Dec, 2023, 12:35

Hello dear! I'm planning to deploy appwrite for migration from firebase. I'm deploying appwrite in docker swarm. It seems to be starting, but I ran into a strange SMTP problem. Cant send invite..

appwrite-worker-mails log: [Worker] Worker 0 is ready! Worker mails started [Job] Received Job (657ee8a6430838.07524580). [Job] (657ee8a6430838.07524580) failed to run. [Job] (657ee8a6430838.07524580) Error sending mail: SMTP Error: Could not authenticate. [Error] Type: Exception [Error] Message: Error sending mail: SMTP Error: Could not authenticate. [Error] File: /usr/src/code/src/Appwrite/Platform/Workers/Mails.php [Error] Line: 96

I tried different SMPT configurations in .env, different servers, but the answer is always the same. I can't connect to the servers. Version Appwrite 1.4.13 .env: _APP_ENV=production _APP_LOGGING_CONFIG= _APP_LOGGING_PROVIDER= _APP_OPENSSL_KEY_V1=mypassword _APP_REDIS_HOST=appwrite_redis _APP_REDIS_PASS= _APP_REDIS_PORT=6379 _APP_REDIS_USER= _APP_SMTP_HOST=mail.mySMTPserver _APP_SMTP_PASSWORD=myPasswordForSenderEmail _APP_SMTP_PORT=25 _APP_SMTP_SECURE= _APP_SMTP_USERNAME=SenderEmail@mySMTPserver _APP_SYSTEM_EMAIL_ADDRESS=SenderEmail@mySMTPserver _APP_SYSTEM_EMAIL_NAME=SenderEmail@mySMTPserver _APP_SYSTEM_SECURITY_EMAIL_ADDRESS=SenderEmail@mySMTPserver _APP_WORKER_PER_CORE=6

TL;DR
The user was experiencing an SMTP error while trying to send invites in their deployed Appwrite app. They tried different SMTP configurations but couldn't connect to the servers. The specific error was "SMTP Error: Could not authenticate." The user found a problem in the SMTP server configuration and fixed it. The solution was to check the SMTP server configs with email clients and double-check the credentials. After making the necessary corrections, the issue was resolved.
mimimi
17 Dec, 2023, 18:02

telnet on 25, 465, 587 ports connected

ideclon
17 Dec, 2023, 18:31

Have you double checked the same credentials with an email client?

Drake
17 Dec, 2023, 19:17

Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting

mimimi
18 Dec, 2023, 14:30

thx! I checked configs with email clients, and found a problem in the smtp server

mimimi
18 Dec, 2023, 15:34

[SOLVED] SMTP Error

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more