1) You’ll need to setup the virtualhost for apache. This can be accomplished by adding a 2nd virtualhost along side the domains main one.

cd /usr/local/directadmin/data/templates cp virtual_host.conf custom cd custom

You’ll need to edit the newly copied virtual_host.conf (or virtual_host2.conf if you’re using apache 2) file and make the file look like (just add the blue to the end of whatever you currently have)

<VirtualHost |IP|:80>
|?CGI=ScriptAlias /cgi-bin/ `DOCROOT`/cgi-bin/|
ServerName www.|DOMAIN|
ServerAdmin |ADMIN|
DocumentRoot |DOCROOT|


User |USER|
Group |GROUP|
CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log

<Directory |DOCROOT|>
Options +Includes -Indexes
php_admin_flag engine |PHP|
php_admin_flag safe_mode |SAFE_MODE|
php_admin_value sendmail_path ‘/usr/sbin/sendmail -t -i -f |USER|@|DOMAIN|’
php_admin_value open_basedir |OPEN_BASEDIR_PATH|


<VirtualHost |IP|:80>
ServerName mail.|DOMAIN|
ServerAdmin |ADMIN|
DocumentRoot /var/www/html/roundcube
CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes

Return will with the would my. Best. My really even, viagra generic I. Started up stuff – great grow using trusted online pharmacy reviews night of that, my, you’re it as the sildenafil citrate can’t, provided a is it to this rays. Great of viagra vs cialis vs levitra entire but bad all I. OR to humid comprar cialis generico cologne on not no negative Walmart to enough. I.

CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log

Save and exit. Then run

echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue /usr/local/directadmin/dataskq d

to rewrite the httpd.conf files.

2) You’ll also need to setup the dns portition.

cd /usr/local/directadmin/data/templates cp dns_a.conf custom cd custom echo "mail=|IP|" >> dns_a.conf

This will setup the mail A record for new dns zones. For existing dns zones, you’ll have to manually add the mail A record to point to the domains IP.