Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 38467  / 1 Year ago, sat, march 11, 2023, 11:22:33

It takes ~15 seconds to send single e-mail using sendmail.



/var/log/mail.log:



Jul 31 09:52:42 piotr-probook sendmail[2912]: My unqualified host name (piotr-probook) unknown; sleeping for retry


/etc/hostname:



piotr-probook


/etc/hosts:



127.0.0.1   piotr-probook localdev localhost
192.168.1.1 router


/etc/mail/sendmail.cf:



# hosts file (normally /etc/hosts)
O HostsFile=/etc/hosts


Obviously I can ping piotr-probook host and HTTP server popups in browser when i type url http://piotr-probook



What am I doing wrong? How to fix the problem?


More From » sendmail

 Answers
3

Got the answer at superuser.com https://superuser.com/a/626219/242163:






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

[#30138] Sunday, March 12, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ippalogu

Total Points: 215
Total Questions: 127
Total Answers: 146

Location: Denmark
Member since Tue, Jul 19, 2022
2 Years ago
;