[GH-ISSUE #969] SMTP_FROM_NAME not working #688

Closed
opened 2026-03-03 02:02:13 +03:00 by kerem · 1 comment
Owner

Originally created by @duffycop on GitHub (Apr 16, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/969

SMTP_FROM_NAME isn't working

In the last version of the Docker image the environment variable SMTP_FROM_NAME isn't working.
By taking a look at the source code I was able to identify the issue in the line 388 of src/config.rs
smtp_from_name: String, true, def, "Bitwarden_RS".to_string();
Maybe this should be as line 386 where the definition is
smtp_from: String, true, def, String::new();

So modified line 388 would be like this
smtp_from_name: String, true, def, String::new();

EDIT: I didn't tested the environment: tag in the docker-compose.yml file.

My docker-compose.yml look like this

version: "3"
services:
password:
container_name: password
image: bitwardenrs/server
restart: always
volumes:
- ./password/bw-data/:/data/
env_file: ./password/env

nginx:
image: docker.io/nginx:latest
restart: always
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/etc:/etc/nginx
- ./nginx/certs:/etc/letsencrypt
- ./nginx/certs-data:/data/letsencrypt
- /var/run/docker.sock:/tmp/docker.sock:ro
depends_on:
- password

Thanks for your time! And you've done an amazing work here!
Best regards!

Originally created by @duffycop on GitHub (Apr 16, 2020). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/969 <!-- Please fill out the following template to make solving your problem easier and faster for us. This is only a guideline. If you think that parts are unneccessary for your issue, feel free to remove them. Remember to hide/obfuscate personal and confidential information, such as names, global IP/DNS adresses and especially passwords, if neccessary. --> ### SMTP_FROM_NAME isn't working <!-- Describe your issue here.--> In the last version of the Docker image the environment variable SMTP_FROM_NAME isn't working. By taking a look at the source code I was able to identify the issue in the line 388 of src/config.rs smtp_from_name: String, true, def, "Bitwarden_RS".to_string(); Maybe this should be as line 386 where the definition is smtp_from: String, true, def, String::new(); So modified line 388 would be like this smtp_from_name: String, true, def, String::new(); EDIT: I didn't tested the environment: tag in the docker-compose.yml file. My docker-compose.yml look like this > version: "3" > services: > password: > container_name: password > image: bitwardenrs/server > restart: always > volumes: > - ./password/bw-data/:/data/ > env_file: ./password/env > > nginx: > image: docker.io/nginx:latest > restart: always > container_name: nginx > ports: > - "80:80" > - "443:443" > volumes: > - ./nginx/etc:/etc/nginx > - ./nginx/certs:/etc/letsencrypt > - ./nginx/certs-data:/data/letsencrypt > - /var/run/docker.sock:/tmp/docker.sock:ro > depends_on: > - password Thanks for your time! And you've done an amazing work here! Best regards!
kerem closed this issue 2026-03-03 02:02:13 +03:00
Author
Owner

@jjlin commented on GitHub (Apr 16, 2020):

SMTP_FROM and SMTP_FROM_NAME are different config items with distinct purposes. You probably have a config.json that's overriding your env var. Take a look at https://github.com/dani-garcia/bitwarden_rs/wiki/Configuration-overview.

<!-- gh-comment-id:614842370 --> @jjlin commented on GitHub (Apr 16, 2020): `SMTP_FROM` and `SMTP_FROM_NAME` are different config items with distinct purposes. You probably have a config.json that's overriding your env var. Take a look at https://github.com/dani-garcia/bitwarden_rs/wiki/Configuration-overview.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#688
No description provided.