Multi-domain email server

I need true multi-domain mail server support.

This is where is a totally different entity than

I have this today using postfixadmin

And have since 2009. It does the job with an SQL database (I use MariaDB). The maintainer has never put in LDAP support. You can see how I run it be looking at:

I got the Odroid-HC1 to replace my current CubieTruck server that is back on RedSleeve6 and really in need of replacing. I would like to do this on top of Nethserver, but true multi-domains is a MUST.

With some guidance, I could perhaps do the integration, but I will need a LOT of guidance. My current setup was a major effort on multiple mailing lists…

1 Like

Hi Robert,

You can already achieve it, by defining two mail aliases that point to two distinct user mailboxes!

As prerequisite the two Email > Domain have to be defined, as explained here

So logs into the IMAP server from his client (Thunderbird) as And logs into the IMAP server from his client (Outlook) as

Mail headers all reflect these names, though the server is

The users can change their passwords at least via Roundcubemail change password function.

These users are independent (if desired) from any other users configured on the Nethserver.

Mail to can be copied/forwarded to users and (which might not even be on the server).

If I can do the above items, I will work up testing. Right now I can only create subdomains from my domain. It would be a bit to get the owners of the domains I provide email support to to create subdomains for testing purposes. Migration will be a separate issue…

Maybe this example can help a bit:

1 Like

And what do I do if I have and I actually already have duplicates. With my current setup, the login is user@domain so there is never a problem of dealing with identical user names that are different individuals in different domains.

This is not possible with the current NethServer config, but could be achieved with a custom-template. If somebody wants to try it, I can write down an how-to…

I don’t know what headers are sent, but I’m also not sure what are you aiming to here: can you make an example?

Not available, but there’s another thread about this: Users change password remotely?

Well this is a critical requirement as I have had such a situation since '98 and have supported it with no problem. So if all the other requirements could be met, let’s do this.

I am going to have play around and look at my current message headers, then compare them when I do some testing with your setup.

Two separate things here. First changing password. I read the post you refer to. Roundcube can have scripts for password changing. We should be able to setup that ldap change in the password plugin. Requiring users to use Roundcube for password change rather than their remote client is acceptable.

For the mail copying, I think the Dovecot sieve function can be used. There is a way to have a sieve by user account. In fact I think Roundcube lets you edit the user’s sieve. So a template that sets up a sieve for a user to copy emails should be rather that the more direct postfix method I use now.

I am willing to work toward this. Once I have a way to put up a server on my new Odroid.

1 Like

You need a template-custom and an additional file, please check this gist:

then run

 signal-event nethserver-mail-server-save

You can authenticate as and become “john”

This does not scale. Every user for every domain will need an alias. I will have to work out a general mapping of to joe… in such a way that it works consistently. And then a large sequential file needs to be searched. Just does not scale.

The user@domain should be part of the ldap schema and can be authenticated as such.

I hope to spin up the Cubietruck server this week and take a closer look. But it is not promising as a mail server for my needs.