Sending emails to smtp4dev

I'm trying to test emails with smtp4dev, logs appear about sent email but nothing appears in smtp4dev web page, here's what I did: - worker is running from npx nx start - created new smtp4dev container using docker run --rm -it -p 8090:80 -p 2525:25 rnwood/smtp4dev from docs - uncommented necessary options in .env in twenty-server (all starting at EMAIL_ except for EMAIL_SMTP_USER and EMAIL_SMTP_PASSWORD) - created new mailbox in smtp4dev for [email protected] - sent forgot password and invitation email but got nothing Am I missing something like another worker?
17 Replies
martmull
martmull4w ago
Hey @ɃØĦɆᵾS You did well You need those env variable values - [email protected] - [email protected] - EMAIL_FROM_NAME='John from YourDomain' - EMAIL_DRIVER=smtp - EMAIL_SMTP_HOST=localhost - EMAIL_SMTP_PORT=2525 Can you check those? You don't need to create a mailbox in smtp4dev Don't forget. You need to restart server and worker to take env variable changes into account!
ɃØĦɆᵾS
ɃØĦɆᵾSOP4w ago
Here are my env variables, the only difference is EMAIL_DRIVER
No description
ɃØĦɆᵾS
ɃØĦɆᵾSOP4w ago
I checked and the driver was the source of problem, thanks a lot @martmull, I'll update docs as this info is missing yet it's crucial for testing emails locally
martmull
martmull4w ago
ok great, ping me for a review, cheers
BitePa
BitePa4w ago
Hey Bob, do I need to restart the container after adding anything to .env?
ɃØĦɆᵾS
ɃØĦɆᵾSOP4w ago
Yes
BitePa
BitePa4w ago
for sending emails, what's the best way to test mail server after restarting the container?
ɃØĦɆᵾS
ɃØĦɆᵾSOP4w ago
Check docs, there are all information
BitePa
BitePa4w ago
Trying to create 1 Person, typed in First name and Last name using values "BitePa" and "So". I got an error.
No description
No description
ɃØĦɆᵾS
ɃØĦɆᵾSOP4w ago
GitHub
Can't create any record · Issue #8662 · twentyhq/twenty
Scenario: Log in Go to any records tab (e.g. People tab) Try to create a new record Actual: There's error in UI and also in logs while creating new records and preventing from creating Video Ex...
BitePa
BitePa4w ago
I followed the doc and used the 1 line install option 2 hours ago. I guess the image is not updated yet?
BitePa
BitePa4w ago
Twenty - User Guide
Discover how to use Twenty CRM effectively with our detailed user guide. Explore ways to customize features, manage tasks, integrate emails, and navigate the system with ease.
ɃØĦɆᵾS
ɃØĦɆᵾSOP4w ago
https://twenty.com/developers/section/self-hosting/self-hosting-var#email-smtp-server-configuration-examples Images have their releases, not sure when there'll be new release, you can pull image with latest tag to get fix but expect breaking changes
BitePa
BitePa4w ago
oh... can't try Twenty until there is a new proper image... I tried to use "Change Password" function to test receiving email. Twenty UI says success, but my Postfix server has no log of Twenty attempting to connect and send email. There is no firewall between them. From Twenty server, I can send email and get it by using command line "mail -s" [email protected] [email protected] EMAIL_FROM_NAME='Twenty Administrator' EMAIL_DRIVER=smtp EMAIL_SMTP_HOST='192.168.1.5' EMAIL_SMTP_PORT=25 [email protected] EMAIL_SMTP_PASSWORD=XXXXXX Restarted the Docker container ?
BitePa
BitePa3w ago
docker ps shows 2 containers running twentycrm when I try to docker exec bash I get OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown how do I perform the actual upgrade command? please help need to at least try 0.33.4 or I can't even create any new records in Twenty... making it completely useless Pulled the "main" tag image, and boy it sure is bad! Upon reboot CPU is 100% for over 3mins and I still cannot ssh in. Don't know what it is doing...
shairozan
shairozan3w ago
Try docker exec ... sh instead of bash. It may be the source container doesn't have BASH installed. Works for kubernetes containers
Want results from more Discord servers?
Add your server