Email only without virtualhost(s)

yourivdlans

Verified User
Joined
Apr 6, 2010
Messages
19
Hi all!

I've got a little problem i just can't find a good solution for. The thing is, our company has an application running using multiple domains (as ServerAlias) our application than catches these domains and compares them with entries in the db to show the correct theme and what not.

Now i would still like to use the email capabilities of directadmin, and i've looked at email only skins. The problem with this is that a virtualhost will still be created for the domain, and i want to use this domain as ServerAlias for our application.

I was thinking i could maybe disable the generation of the virtualhost file (for apache and specific user accounts) so there would not be any conflicts when i add this domain as ServerAlias to our application's account.

Don't know if this is a stupid question or not, just looking for idea's here.

Any help would be appreciated!
 
If you want DirectAdmin to manage the email accounts, then the domains must be created as domains. That's simply the way the exim.conf file manages virtual (domain) email. You could rewrite exim.conf, but still, managing the virtual mailboxes would require a separate email system, perhaps through a custom email plugin you could write or have written.

A somewhat messy way to resolve this would be to create a separate user for each domain, which would give you a way to manage the email, then using .htaccess to forward html requests to the one domain handling your httpd implementation.

Jeff
 
You can configure all the e-mail addresses under your main account. Al e-mail addresses you create under your main account will work for your pointers too.

To give you a short example:
Main domain: domain.com
Domain pointer to main domain: domain2.com

If you create a mailbox under domain.com, i.e. [email protected], you can receive e-mail on [email protected] too. Of course this would mean that this mailbox can only have one set of credentials. If you want two different mailboxes for service@ you would have to create multiple domains as Jeff pointed out.
 
Thank you for your replies.

I understand in order to use email the domains for them have to be created, but the virtualhosts created for apache aren't the same as exim's virtualhosts right?

Basically what i want to do is create a new user with a domain (or more) and only use its email capabilities, also not just hiding and denying access to other functions but fully disable them. So when i create this specific user i do not want directadmin creating apache virtualhosts so i can use that domain name as a ServerAlias within another user account.

@getUP: Thanks for the suggestion, i think it'll come in handy soon :)
 
So when i create this specific user i do not want directadmin creating apache virtualhosts so i can use that domain name as a ServerAlias within another user account.

Directadmin won't allow you to add a domain twice. This means if you added a domain as an alias/pointer, you won't be able to add to another account within one server.

Thus by default it is not possible to use HTTP/HTTPS and POP/IMAP/SMTP services with one domain shared between different user accounts within one linux box.
 
I know, thats why i'm adding it as a ServerAlias using the "Custom HTTPD Configurations" option.
 
I think it is, because you're not physically adding it to directadmin, just setting an apache alias to it.
 
Last edited:
Back
Top