Everything is okay, except that "quotacheck -avugm" gives error "quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.". I wasn't able to solve it despite the error being discussed in many topics on this same forum. But no matter since I don't really need quota in the production server either.

Actual problem is ISPConfig 3 itself. I created two clients one website each. Now, the first client has same hostname as I set up in /etc/hosts and /etc/hostname. Second client uses different hostname.

Now, when I try to access the first website by hostname, it leads me to the default apache site. And when I try to access the second website by hostname, it gives me custom ISPConfig error message "ERROR 403 - Forbidden!".

What I have missed? What do I need to do to have hostnames directed to correct directories?

Thanks in advance.

Edit: I got second hostname working, it was a silly error from my part. However, first hostname still directs to default apache site.
Edit 2: quotacheck error was because I was using ext4 instead of ext3. I switched to ext3 and quota is now usable, although it does suggest using journaled quota instead.

I only have one public IP-address, same as which is used in DNS record.

Let me describe the problem again, by using example1.exampledomain.com and example2.exampledomain.com to which I have DNS-A records set up.
- I set public IP-address and example1 hostname in /etc/hosts, and example1 hostname in /etc/hostname.
- After setting up all necessary services and installing ISPConfig 3, I created two websites. One for example1 and another for example2.
- Example1 hostname still points to default Apache page, but example2 works correctly.
- If I add the public IP in "Edit Server IP" and add it to example1 and example2 websites in ISPConfig, both sites are directed to default Apache page.

In a nutshell, example2 works fine until I specify an IP-address to it and example1 never works.

Nevermind that problem, on production server all is well. Except subdomains. Production server is hosting two domains, domain1.com and domain2.com each in their own IP-address. Both work without problems. But subdomains I have trouble with.

I have created DNS A-record for subdomain by going to DNS, selected domain1.com, Records, A, set subdomain.domain1.com in hostname and same IP-address as domain1.com.

Then I added a new website under Sites, set domain1.com's IP-address as the subdomain's IP-address, set subdomain.domain1.com as domain name and auto-subdomain I left to none.

24 hours later subdomain is still not working. What I have missed? I have searched this forums a lot but they all say the same, A-record should be all that's needed besides of creating a new website of course.

As for error itself. Firefox gives me "Address Not Found" - "Firefox can't find the server at subdomain.domain1.com". And Chrome gives me "DNS error - cannot find server". So it looks like a DNS problem. Is setting A record in ISPConfig not enough?

IP-address censored, but it's not associated with our server or IP. Rest of the mail logs are empty.

I also created email-domain, set it as mail.domain1.com as found in MX DNS record. Then created email mailbox and set it as [email protected]. Now when I set my forums to use SMTP with username [email protected] and the password I set, it still doesn't send any emails.

I got subdomains working. There was an error in my setup of DNS A records. In A record hostname field I had typed "subdomain.domain1.com" while correct entry would be just "subdomain".

Now, if I could get sending of emails to work...

Edit: I don't really need clamav to scan outgoing emails on the server. But if I uninstall clamav, instead of previous errors it gets filled with errors it can't find clamav files. How do I stop postfix from attempting virus scans? And also, should those errors stop emails from being sent?

Edit 2: I got email sending to work after I commented out two lines in nano /etc/postfix/main.cf
#content_filter = amavis:[127.0.0.1]:10024
#receive_override_options = no_address_mappings
and executed
postsuper -r ALL && postfix reload