Skip to content
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

Tandoor running behind NGINX reverse proxy - SMTP not working #3517

Open
anthonyuk opened this issue Jan 29, 2025 · 0 comments
Open

Tandoor running behind NGINX reverse proxy - SMTP not working #3517

anthonyuk opened this issue Jan 29, 2025 · 0 comments
Labels
setup issue possibly or definitely an issue with the user setup

Comments

@anthonyuk
Copy link

anthonyuk commented Jan 29, 2025

Issue

I'm running Tandoor in a Proxmox container sitting behind NGINX on OPNSense and all is good. Tandoor is natively running HTTP and NGINX is taking care of TLS and LE certs.

I have an issue using Fastmail SMTP in Tandoor and I'm thinking it is related to it sitting behind NGINX.

If I run this command on the Tandoor server I get this error.

openssl s_client -connect smtp.fastmail.com:587 -starttls smtp

4017D5E2867D0000:error:0A000126:SSL routines:ssl3_read_n:unexpected eof while reading:../ssl/record/rec_layer_s3.c:322:

The app says it has sent an email but I can see that the server has never authenticated with fastmail.
I have tried various options which work on my NAS etc and both SSL and TLS (which are required).

Tandoor Version

1.5.30

OS Version

Debian 12

Setup

Others (please state below)

Reverse Proxy

Nginx Proxy Manager (NPM)

Other

Proxmox helper script container

Environment file

# add only a database password if you want to run with the default postgres, otherwise change settings accordingly
DB_ENGINE=django.db.backends.postgresql
POSTGRES_HOST=localhost
POSTGRES_DB=db_recipes
POSTGRES_PORT=5432
POSTGRES_USER=tandoor
POSTGRES_PASSWORD=xxxx
STATIC_URL=/staticfiles/
EMAIL_HOST=smtp.fastmail.com
EMAIL_PORT=587
[email protected]
EMAIL_HOST_PASSWORD=xxxxxxxx
#EMAIL_USE_TLS=0
EMAIL_USE_SSL=1
# email sender address (default 'webmaster@localhost')
[email protected]

Docker-Compose file

Relevant logs

@anthonyuk anthonyuk added the setup issue possibly or definitely an issue with the user setup label Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
setup issue possibly or definitely an issue with the user setup
Projects
None yet
Development

No branches or pull requests

1 participant