Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

“Bad hostname or network address: localhost :10026” error appears in the maillog when starting Postfix

    • Updated:
    • 21 Oct 2015
    • Product/Version:
    • InterScan Messaging Security Suite 7.1 Linux
    • InterScan Messaging Security Virtual Appliance 8.2
    • InterScan Messaging Security Virtual Appliance 8.5
    • Platform:
    • Linux - Red Hat RHEL 4 32-bit
    • Linux - Red Hat RHEL 5 32-bit
    • Linux - Red Hat RHEL 5.1 32-bit
Summary

When starting Postfix, you receive an error message in the maillog similar to the following:

Jan 01 HH:MM:SS HOSTNAME postfix/master[#####]: fatal: /etc/postfix/master.cf: line ##: bad hostname or network address: localhost :10026

Details
Public

You encounter the error because Postfix is unable to resolve the localhost.

To resolve the issue, check the /etc/hosts file and make sure that the localhost address is 127.0.0.1. 

For example:

127.0.0.1 hostname.localdomain HOSTNAME localhost localhost.localdomain

Premium
Internal
Rating:
Category:
Troubleshoot
Solution Id:
1095464
Feedback
Did this article help you?

Thank you for your feedback!

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support


To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.


Need More Help?

Create a technical support case if you need further support.