Share via

exchange默认的SMTP等protocol log保留时间如何调整

连国 于 570 Reputation points
2024-08-02T02:14:19.49+00:00

您好

近期发现客户环境中用户的exchange服务器上的SMTP日志都只剩下4天的,又看了其他的protocol log也是4天,,是所有服务器同时出现的这个情况。

是什么原因导致的,是默认配置吗?还是说做了什么调整?

如何调整protocol log的保留时间期限。

Exchange | Exchange Server | Other
Exchange | Exchange Server | Other

A robust email, calendaring, and collaboration platform developed by Microsoft, designed for enterprise-level communication and data management.Miscellaneous topics that do not fit into specific categories.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

0 comments No comments

Answer accepted by question author
  1. Mike Hu-MSFT 4,085 Reputation points Microsoft External Staff
    2024-08-02T08:54:44.6033333+00:00

    您好,

    欢迎来到微软论坛

    Exchange 服务器上的协议日志保留期限默认不是四天,所以可能是配置被调整过。

    使用以下命令来查看当前的日志配置:

    Get-TransportService | fl *logmaxage* 
    

    如果你想调整指定服务器上的SMTP日志保留时间,可以使用以下命令:

     Set-TransportService -Identity <ServerName> -ProtocolLogMaxAge <TimeSpan> 
    

    例如,将日志保留时间设置为30天:

    Set-TransportService -Identity "Server1" -ProtocolLogMaxAge 30.00:00:00 
    
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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