Hello,
I didn't read all posts in this thread, so forgive me if I'm repeating someone else or missed a point. I'll try and clear up any issues.
1)All DirectAdmin accounts have unix accounts on the system. Each unix account can send and receive emails, and do not need a domain associated with them. Unix email accounts live on the hostname, eg:
[email protected]. This is the main reason why you cannot create a domain as the server's hostname. If you did, all unix accounts would be "virtual" and there would only be 1 username as the owner of all accounts (eg they would be listed in: /etc/virtual/server.hostname.com/passwd .. all under the owner of server.hostname.com in the domainowners file). Since people tend to enjoy control over their email accounts, we can't allow this, thus the hostname must be totally seperate from any domains created on the box. More explanations here:
http://help.directadmin.com/item.php?id=328
We also have the basic rules here:
http://help.directadmin.com/item.php?id=16
2) so your
[email protected] is not an actual email address, it's a forwarder, as defined in /etc/virtual/domain.com/aliases. eg: "admin: admin". This will forward email from
[email protected] to
[email protected] (see #1 above as to what this is). Note the /etc/virtual/domain.com/aliases file is controlled in DA, and you can edit your unixuser forwarder on your forwarders page in DA.
If you want your
[email protected] to forward somewhere specific, I've been using the /etc/aliases file, eg:
unixuser:
[email protected]
and I've not been using the ~/.forward file method, although it may be working for some people. This /etc/aliases file method is needed if you want to change where emails sent to
[email protected] are delievered. This doesn't apply to a lot, but does for things like cronjobs, or cgi-bin script deliveries (sending mail to /usr/sbin/senmail as the unixuser process).
If a message is delivered to
[email protected], you can change the forward by modifing:
/etc/virtual/domain.com/aliases
eg: unixuser:
[email protected]
Note that this is only changinging the
[email protected] forwarder, and any email delivered to
[email protected] would still arrive (unless you override with /etc/aliases, or ~/.forward)
3) Because all of this is quite rigid in design, it's hard to change for exceptions. If you want to change the access of /var/www/html, there are other ways of doing it. Any dns.value.com that resolves to your server IP and which does not have a VirtualHost setup will point to /var/www/html. If you want to point
http://server.hostname.com to a different file location on disk (no recommended), edit /etc/httpd/conf/extra/httpd-vhosts.conf, and change the DocumentRoot values there... but those VHs are not setup for the normal User access. If you want some specific domain value under a User, just create *any other value* as a domain name... eg: anythingelse.hostname.com, under a DA account, and set it up that way, then you get the benefits of full goodies of VHs and dont' need to fight with any custom configs.
John