mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #4283] Can't send email from local MTA (exim4) #1837
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#1837
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zevilz on GitHub (Jan 29, 2024).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/4283
I have working exim4 on server. Vaultwarden installed without Docker.
USE_SENDMAIL=trueandSMTP_FROM=user@mysite.comdefined in /etc/vaultwarden.env;vaultwardenadded to groupDebian-exim/var/spool/exim4from 750 to 770 (ownerDebian-eximand groupDebian-exim).But i have error during in "Test SMTP" section:
Then i add folowing lines to vaultwarden systemd service like this:
But have error:
Why does he send emails on his own behalf and not on behalf of exim?
Emails is sent without problems via sendmail (sendmail is symlink to exim4):
Environment:
@BlackDex commented on GitHub (Jan 29, 2024):
Well, the
vaultwardenuser is the one executing theeximorsendmailcommand.So, not really strange i think.
I do not have the exact workings, but it just executes the command provided in the config.
Best way to simulate this is by running it like this via the shell.
@BlackDex commented on GitHub (Jan 30, 2024):
I did some quick tests locally. And it seems to work fine for me, and I'm running Vaultwarden via a normal user.
This doesn't really seem like a bug/issue on the Vaultwarden side, but more a configuring issue with exim4 (Which is a hell in my opinion).
Maybe other users here know something, and therefor I'm moving this to Discussions.