configure the IIS server to deny requests made without the Host header set.

wei liu 21 Reputation points
2024-10-02T03:09:25.35+00:00

Good day,

As recommended I set IIS to deny requests made without the Host header set. Unfortunately it does cause pop3 stop working.

Could give any advice on this issue?

Brgds

Liu Wei

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,627 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jake Zhang-MSFT 5,595 Reputation points Microsoft Vendor
    2024-10-02T08:02:42.9866667+00:00

    Hi @wei liu,

    Welcome to the Microsoft Q&A platform!

    Based on your description, the configuration in IIS that denies requests without a Host header is interfering with your POP3 service. This happens because some services, such as POP3, may not include a Host header in their requests, causing them to be blocked by IIS.

     

    There are several steps you can take to resolve this issue:

     

    1. You can configure IIS to allow requests from the POP3 service by creating exceptions. This can be done by modifying the request filtering settings to exclude certain IP addresses or request types.

     

    1. Modify the request filtering settings:
    • Open IIS Manager.
    • Select the server or site for which you want to configure settings.
    • In Features View, double-click Request Filtering. 
    • In the Actions pane, click Edit Feature Settings.
    • Adjust the settings to allow requests without a Host header for specific services or IP addresses.

     

    1. If you have the URL Rewrite module installed, you can create a rule to bypass the Host header check for POP3 requests.
    • Open IIS Manager.
    • Select the server or site.
    • In Features View, double-click URL Rewrite.
    • Add a new rule to allow requests without a host header for the POP3 service.
    1. Make sure your POP3 service is correctly configured to work with IIS. Sometimes adjusting the service settings can solve the problem.

    Please feel free to contact me for any updates. And if this helps, don't forget to mark it as an answer.

    Best,

    Jake Zhang

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.