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
postsuper -r ALL && postfix reload
And finally aptitude remove amavisd-new clamav clamav-daemon clamav-docs spamassassin
No more avahi/clamav using ~150MB RAM.
Edit 3: Edited above to be more precise for anyone who has same problem as me.
Last edited by Keeper; 4th September 2009 at 21:04.