Module anvil

Source
Expand description

§Anvil 连接统计组件解析器

Anvil 是 Postfix 的连接统计和速率限制组件,负责:

  • 监控客户端连接频率和数量
  • 统计最大连接速率和消息速率
  • 提供配置警告和系统统计信息
  • 支持基于来源的速率限制策略

§支持的事件类型

  • 配置警告: 配置文件中的参数覆盖警告
  • 连接统计: 最大连接速率、连接数量、消息速率统计
  • 缓存统计: 缓存大小统计信息

§示例日志格式

# 配置警告
/etc/postfix/main.cf, line 806: overriding earlier entry: smtpd_client_message_rate_limit=0

# 连接统计  
statistics: max connection rate 2/60s for (smtp:192.168.2.127) at Apr 10 11:47:05
statistics: max cache size 1 at Apr 10 11:46:30

Structs§

AnvilParser