如何撤消以下命令?须藤 postconf -e 'content_filter = smtp-amavis:[127.0.0.1]:10024'

hsi*_*nxh 1 ubuntu postfix

我试图在已经运行 postfix 和 dovecot 的 Ubuntu 服务器上设置垃圾邮件过滤。我发出了以下命令

sudo postconf -e 'content_filter = smtp-amavis:[127.0.0.1]:10024'
Run Code Online (Sandbox Code Playgroud)

现在我想知道如何撤消此命令?

vor*_*aq7 5

postconf -d content_filter会告诉你content_filter参数的默认值是什么。
然后您可以使用postconf -e将参数重置为其默认值。

  • 不破坏事物的最好方法是不要运行命令,除非您确定它们将要做什么(**特别是**当您将 `sudo` 放在它们前面时......) (2认同)