>hostname
now produces good name (same as cat /etc/hostname), but I still get the error:
[31-Oct-2014 17:11:27 Europe/Moscow] PleskException: IP addresses for mail service of domain levitonis.com are not set
file: /opt/psa/admin/plib/Service/Mail.php
line: 104
code: 0
trace: #0 /opt/psa/admin/plib/Smb/Plesk/Bridge/Domain.php(561): Service_Mail->createMailService(Object(Service_Mail_Parameters))
#1 /opt/psa/admin/plib/Smb/Form/Final/Web/AddDomain.php(164): Smb_Plesk_Bridge_Domain::createAdditionalDomain(Object(Webspace), 'levitonis.com', 'master', Array, 0, NULL)
#2 /opt/psa/admin/application/smb/controllers/WebController.php(347): Smb_Form_Final_Web_AddDomain->processForm()
#3 /opt/psa/admin/externals/Zend/Controller/Action.php(516): Smb_WebController->addDomainAction()
#4 /opt/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('addDomainAction')
#5 /opt/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#6 /opt/psa/admin/plib/Application/Web.php(38): Zend_Controller_Front->dispatch(NULL)
#7 /opt/psa/admin/htdocs/application.php(15): Plesk\Application_Web->run()
#8 {main}
[2014-10-31 17:11:29] ERR [panel] IP addresses for mail service of domain levitonis.com are not set<br><a href='
http://kb.odin.com/plesk-error/search?metaId=40a7788cd04f6ac22023dbf2bfc2e46c&messageId=897e89aad8ffb36b67a7b9c0c5b832c2&file=Mail.php&line=104&type=PleskException&message=IP addresses for mail service of domain levitonis.com are not set' target='_blank'>Search for related Knowledge Base articles</a>