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

Disable virtual domain delivery to local mailboxes #218

Open
rimas-kudelis opened this issue Sep 4, 2016 · 8 comments
Open

Disable virtual domain delivery to local mailboxes #218

rimas-kudelis opened this issue Sep 4, 2016 · 8 comments

Comments

@rimas-kudelis
Copy link
Collaborator

I had an issue previously where emails for users which weren't specified for a particular domain, but existed in local system, were delivered to these local users. I think this is quite unexpected and we should not do this. Objections?

@Udera
Copy link
Collaborator

Udera commented Sep 4, 2016

Didn't we already simplify the documentation where the exim user for local deliveries isn't set by default any more. And we only enable the use of /etc/aliases to forward system mails to virtual users?

Mail to local users is probably not used by many people so we don't need that enabled by default. However, your problem shouldn't have happened either. We shouldn't accept mails from external where not valid domain is used.

@rimas-kudelis
Copy link
Collaborator Author

This is not about setting the exim user. The issue was that if you have a local user joe, and domain example.org configured in Vexim, Exim would accept emails to [email protected] even if there is no such virtual user, and route them to the local user's mailbox.

@Udera
Copy link
Collaborator

Udera commented Sep 5, 2016

So if local users are used, we probably want to use a dedicated domain for local users?

@rimas-kudelis
Copy link
Collaborator Author

in my config, the domainlist for such users is @ : localhost. I think this is a good choice

@Udera
Copy link
Collaborator

Udera commented Sep 5, 2016

You have this in the localuser router?

@rimas-kudelis
Copy link
Collaborator Author

yes

@Udera
Copy link
Collaborator

Udera commented Sep 5, 2016

Let's put it in there. If someone decides to use a specific domain for this, he must add this domain manually.

@rimas-kudelis
Copy link
Collaborator Author

Hm, I've created a separate domainlist called local_user_domains for this, but at least on Debian, this requires editing all stock Debian routers to replace domains = +local_domains with domains = local_user_domains.

I've got another idea: perhaps it would be better for us to create a separate new domainlist for the domains Vexim serves, and leave local_domains alone. In such case, it seems the only thing the user would have to edit is the acl_check_rcpt section, which is put in a single file both in split and non-split config modes. And even there, the only place the user would really have to amend is the following block:

  require
    message = relay not permitted
    domains = +local_domains : +relay_to_domains

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants