Landscape 发送内部电子邮件,无法删除

Landscape 发送内部电子邮件,无法删除

我有一台 Ubuntu 18.04 服务器,它不断发送电子邮件,我可以在 中看到这些电子邮件/var/log/mail.log。我可能曾经将此服务器配置为使用 Landscape,但我实际上并没有使用它。

(服务器设置了 Postfix SMTP 中继,这些消息被中继到外部 API,然后被阻止。我想完全阻止发送这些邮件。)

每隔五分钟就会出现如下日志:

Jul 13 06:30:01 worker postfix/pickup[24215]: 133EB3EEDC: uid=108 from=<landscape>
Jul 13 06:30:01 worker postfix/cleanup[31293]: 133EB3EEDC: message-id=<20220713043001.133EB3EEDC@worker>
Jul 13 06:30:01 worker postfix/qmgr[17763]: 133EB3EEDC: from=<landscape@worker>, size=908, nrcpt=1 (queue active)
Jul 13 06:30:01 worker postfix/local[31295]: 133EB3EEDC: to=<landscape@worker>, orig_to=<landscape>, relay=local, delay=0.06, delays=0.02/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Jul 13 06:30:01 worker postfix/qmgr[17763]: 133EB3EEDC: removed

我有以下与景观相关的包可用:

➜  ~ apt list | grep landscape

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

aws-status/bionic,bionic 0.2.3+159-0landscape1~25~ubuntu18.04.1 all
landscape-api/bionic,bionic 19.01-0ubuntu1 all
landscape-client/bionic 18.03~1075~git.256ad02~ubuntu18.04.1 amd64
landscape-common/bionic 18.03~1075~git.256ad02~ubuntu18.04.1 amd64 [residual-config]
landscape-hashids/bionic,bionic 19.01-0ubuntu1 all
landscape-hosted/bionic 19.01.1-0ubuntu1 amd64
landscape-server/bionic 19.01.1-0ubuntu1 amd64 [residual-config]
landscape-server-quickstart/bionic 19.01.1-0ubuntu1 amd64
python-commandant/bionic 0.5.1~bzr4-0landscape1~bzr66~ubuntu18.04.1 amd64
python-convoy/bionic,bionic,now 0.4.4ubuntu1~bzr39-0landscape2~bzr12~ubuntu18.04.1 all [residual-config]
python-stripe/bionic,bionic 429-0~landscape+1~ubuntu18.04.1 all
python-txaws/bionic,bionic 0.2.3+159-0landscape1~25~ubuntu18.04.1 all

然而,当我尝试卸载时landscape-common,我得到:

➜  ~ apt remove landscape-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'landscape-common' is not installed, so not removed

landscape未找到与以下内容相关的进程:

➜  ~ ps -ef | grep landscape

我注意到有一个 crontab/etc/cron.d/landscape-server每五分钟执行一次此操作:

*/5 * * * * landscape ( /opt/canonical/landscape/scripts/update_alerts.sh; /opt/canonical/landscape/scripts/landscape_profiles.sh; /opt/canonical/landscape/scripts/process_alerts.sh )

那么我该如何摆脱 Landscape?有一个landscape用户,但我不想直接删除它。

答案1

我显然曾经安装过 Landscape,但从未真正正确地卸载过它。鉴于没有关于如何卸载它的文档,我最终做了以下事情:

dpkg --purge landscape-server

这也删除了生成邮件流量的 crontab 文件。

相关内容