Sendmail very slow - /etc/hosts configuration

Sendmail requires that the result of "hostname" be a fully qualified domain name to start cleanly.

Set the hostname to something like piotr-probook.localdomain and update /etc/hosts.

/etc/hosts

127.0.0.1   piotr-probook.localdomain piotr-probook localdev localhost