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

When using only ldap the vhost file for postfix is only set with the mailserver domain #638

Closed
johansmitsnl opened this issue Jun 24, 2017 · 3 comments

Comments

@johansmitsnl
Copy link
Contributor

johansmitsnl commented Jun 24, 2017

When you use only mail users from the ldap with multiple email domains the vhost is only filled with the mailserver domain itself.
Therefore when you receive email on a alias domain or other domain it does not accept it.
It should check the ldap if the domain is defined and accept email for it.

It seems that the table for defining domains in the ldap is missing. What is the correct solution:

  1. Expand the ldap postfixbook scheme and add it to the virtual domain lookup?
  2. Create a tool that reads all mail addresses from the ldap to retrieve the domain?
@johansmitsnl
Copy link
Contributor Author

johansmitsnl commented Jun 24, 2017

I have made a quick patch so that my mail setup will work.
https://github.com/johansmitsnl/docker-mailserver/commit/cdb3cdf8c5ae6b7754a65f044670f0091b27efec
Suggestions as asked above?

@alinmear
Copy link
Contributor

@johansmitsnl Can you make a PR for this. Would be a great improvment!

@johansmitsnl
Copy link
Contributor Author

@alinmear just created the pull request #642 that I use in my environment.
Not sure it the tests pass.

tomav pushed a commit that referenced this issue Aug 19, 2017
…p (Solves: #638) (#642)

Added test to check email delivery for a other domain then the primary
of the mailserver.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants