-
-
Notifications
You must be signed in to change notification settings - Fork 605
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
Add support for sSMTP revaliases configuration #956
Add support for sSMTP revaliases configuration #956
Conversation
🤔 interesting. This makes sense I think. I'm wondering if there's a better default though. What if we left |
I did a lot of test with sSMTP and found that if I left Here my
Here are some tests:
If the service doesn't provide the Maybe changing the sender for Fail2Ban in some way could solve the problem but it's not a solution because it's not the only service that sends email from the server. That's why I specified that one of the solutions for the problem is to change the In my opinion, this solution is more generic, it's not only to solve this specific problem but it's a more complete control over the sSMTP configuration if anyone needs it. |
I've had this issue some time ago and beside using revalises I've added
with
|
Hi @pySilver, thank you for the feedback, I already have |
@swalkinshaw at the end, what you think about the implementation of this feature? 🙂 |
Thanks @valentinocossar |
Thank you @swalkinshaw! |
* trellis/master: Add gold sponsor [ci skip] Support git url format ssh://user@host/path/to/repo (roots#975) Fix path to h5bp/mime.types (roots#974) Vendor h5bp Nginx configs (roots#973) Add support for sSMTP revaliases configuration (roots#956) Add gold sponsor [ci skip] Update CHANGELOG Refactor --subdomains flag in the Install WP task Add support for includes.d on all sites
Hi,
I'm experiencing some issues with Mailgun and Gmail, some emails sent by a server configured with Mailgun as SMTP to a Gmail account have a non-compliant domain name as
From
header.This is the Mailgun log.
Seems this is happening due to the
FromLineOverride='Yes'
set by default in the Trellis sSMTP configuration.To fix this issue I have two options:
FromLineOverride
toNo
. But changing this parameter causes the emails sent by the server to have aFrom
header dependent to the user who sends the email (e.g.web@examaple.com
). However, there's a sSMTP option to map every user to a customFrom
address using the aliases in the/etc/ssmtp/revaliases
.This pull request introduces the feature to customize the
/etc/ssmtp/revaliases
during provision in the sSMTP configuration task.The feature is disabled by default because
FromLineOverride
it's enabled by default.This is my personal use case to solve an issue, but I think that this feature could be useful to all people that want to have a complete control on the sSMTP configuration using Trellis.
Thank you.