小编Tex*_*xec的帖子

限制对管理员用户的后队列访问

postfix在 Gentoo 上作为邮件程序守护进程运行。在调查一些队列堆积时,我发现/usr/sbin/postqueue系统上的所有用户都可以执行它,它很高兴地-q为所有用户输出当前的邮件队列(带有)。

看起来这或多或少是设计使然:postdrop并且postqueueset-gid带有 group 的二进制文件postdrop

-rwx--s--x  1 root postdrop  15K Apr 10 23:49 postdrop
-rwx--s--x  1 root postdrop  15K Apr 10 23:49 postqueue
Run Code Online (Sandbox Code Playgroud)

它们也可由 执行otherpostfix似乎需要(输出postfix check):

postfix/postfix-script: warning: not set-gid or not owner+group+world executable: /usr/sbin/postqueue
Run Code Online (Sandbox Code Playgroud)

我可能遗漏了一些内部工作,但据我所知,普通用户不应该访问队列,特别是因为在此配置中所有地址和域都设置为虚拟(通过数据库)。如果用户postqueue定期轮询,他可以组装一个<from>,<to>地址对列表(postcat受限制,用户无法访问邮件的内容)。

exim有一个名为 的配置选项queue_list_requires_admin,但我找不到这样的后缀。是否可以使用 postfix 限制队列访问?

security linux postfix gentoo

4
推荐指数
1
解决办法
895
查看次数

标签 统计

gentoo ×1

linux ×1

postfix ×1

security ×1