-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Sender dependent relay should NOT require RELAY_HOST env #3970
Comments
Please note that this response was created using generative AI, leveraging previously available information from the repository. This information may be helpful. However, it is our strong recommendation that you carefully consider the information before blindly applying it. Based on the information provided and the documentation available, it seems like you've encountered a common confusion regarding the use of
For further assistance, please provide more details about the exact commands you used to configure the relay for domain A and any relevant log output that indicates why the emails were not being sent. This comment was generated by Glime. |
It was a legacy issue as these features were contributed by different users in the past AFAIK for their specific needs. We didn't have the same level of quality for reviews back then. I have refactored it twice since and with On the new doc pages I mentioned, at the bottom of the relay host page is a technical details admonition. This shows relevant Postfix config you could use via For reference, the page also better documents the two config files that the If you're comfortable trying There is still some larger refactoring work planned for this feature in future, if you'd like to subscribe to the tracking issue it is here: #3607 |
Cool!
While you are at it, did you fix another issue that has been a pain in ass for a while with setup Alias? Right now, I can’t forward a copy of my email to another account, as setup Alia’s add does not allow me to add a forward for a real email account!
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Brennan Kinney ***@***.***>
Sent: Saturday, April 6, 2024 7:42:01 AM
To: docker-mailserver/docker-mailserver ***@***.***>
Cc: szguoxz ***@***.***>; Author ***@***.***>
Subject: Re: [docker-mailserver/docker-mailserver] Sender dependent relay should NOT require RELAY_HOST env (Issue #3970)
Besides, just don't see the difference between: DEFAULT_RELAY_HOST and RELAY_HOST, the doc is simply not clear.
It was a legacy issue as these features were contributed by different users in the past AFAIK for their specific needs. We didn't have the same level of quality for reviews back then.
I have refactored it twice since and with edge (should be released as v14 this month sometime), there my 2nd refactor fixes the concern you've raised here with the inconsistency / bugs. I also rewrote the docs (see here<#3962 (comment)> for direct links).
On the new doc pages I mentioned, at the bottom of the relay host page<https://docker-mailserver.github.io/docker-mailserver/edge/config/advanced/mail-forwarding/relay-hosts/#technical-details> is a technical details admonition. This shows relevant Postfix config you could use via postfix-main.cf instead of the existing ENV var feature support.
image.png (view on web)<https://github.com/docker-mailserver/docker-mailserver/assets/5098581/78f47e07-0d46-4c63-a22c-3c14f1d77949>
For reference, the page also better documents the two config files that the setup command helps manage:
image.png (view on web)<https://github.com/docker-mailserver/docker-mailserver/assets/5098581/49043540-2dfc-46d7-a91a-af1f62bff0be>
If you're comfortable trying :edge image out to let me know if that is working much better now, I'd appreciate that as I'd like to know if I've missed anything (see the rewritten ENV docs section<https://docker-mailserver.github.io/docker-mailserver/edge/config/environment/#relay-host> for additional insights). I also rewrote the AWS SES page<https://docker-mailserver.github.io/docker-mailserver/edge/config/advanced/mail-forwarding/aws-ses/> which may be relevant to you?
________________________________
There is still some larger refactoring work planned for this feature in future, if you'd like to subscribe to the tracking issue it is here: #3607<#3607>
—
Reply to this email directly, view it on GitHub<#3970 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEHJXC3FS6NGEQJOGY23KODY35AFTAVCNFSM6AAAAABFZLHDKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBQG43DQNRTG4>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
No, the command has logic to prevent having an alias and actual account with the same address. This was due to various issues in the past where users misused the feature IIRC. You can find details and workarounds on a relevant issue here: #3022 (comment) Wanting to accept mail for a legit account and send a copy to another address is a use-case that several users have wanted since that is valid. I'm not familiar with other solutions instead of using an alias that points to an account of the same name to achieve that same functionality. For now you can use the workaround with a manual edit of Feel free to open a new issue as a feature request for that if you're not comfortable contributing it, someone may come along and tackle it 👍 |
This issue has become stale because it has been open for 20 days without activity.
|
This issue was closed due to inactivity. |
📝 Preliminary Checks
👀 What Happened?
I hosted a multiple-domain email server. One of the domain: A needs to use AWS relay ses.
So I use setup relay add, to add relay host for domain A, and modify postfix-sasl-password.cf to include the uername password.
Then I try to send out emails, it does not work. Email is not sent.
Then I added the ENV setting for RELAY_HOST, try again it works.
But I don't need relay for other domains. setting RELAY_HOST just seem weird. Right, it seems like just a flag, has value, relay works. no value, relay stopped.
Besides, just don't see the difference between: DEFAULT_RELATY_HOST and RELAY_HOST, the doc is simply not clear.
👟 Reproduction Steps
No response
🐋 DMS Version
V13.3.1
💻 Operating System and Architecture
ubuntu
⚙️ Container configuration files
No response
📜 Relevant log output
No response
Improvements to this form?
No response
The text was updated successfully, but these errors were encountered: