Fixed multiple bugs found while doing manual tests of both the server and MTA client. All of those bugs are related to how configuration files are loaded.