imta_get_hostname - provides the logical local host name.
#include <imta.h>
const char *imta_get_hostname()
The logical name of the local host is the routing system associated with the local channel or /var/mail channel, internally called «l.» It may be obtained by calling imta_get_hostname().
The buffer containing the hostname is valid during the entire life of the program
imta_get_hostname() returns IMRC_OK when successful, and a negative error code otherwise.
_______________________________________
imta_init(3) , /etc/opt/SUNWmail/imta/imta.cnf(3) .