postfix 重新处理 spool - ubuntu

发布于 2024-08-21 21:01:29 字数 1459 浏览 7 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

油饼 2024-08-28 21:01:29

没关系,问题已解决,我希望这对其他人有帮助。
经过多次搜索,这是有效的方法。您的路径可能会有所不同。

它是特定于用户的,具体取决于您的服务器的设置方式。因此,如果您有多个用户。所以:

1)以用户身份登录。我称我的测试用户为“testytest”...不要问

cp /var/mail/testytest ~/send-testytest
cat ~/send-testytest | formail -s procmail
rm ~/send-testytest

2) 以 root 身份登录

rm /var/mail/testytest

这应该可以。我希望它可以帮助任何为此苦苦挣扎的人!

首先,我们制作相关邮件假脱机文件的副本。这显然是为了防止无限处理循环。我们读取整个邮件文件,然后使用 procmail 自带的 formail 重新处理。然后它将像平常一样使用 procmail 进行分发。 :)

Nevermind, problem solved, I hope this helps someone else.
After much searching, this is the method that works. Your paths may be different.

it is user specific, depending on how your server is set up. So if you have multiple users. So:

1) Log in as user. I called my test user 'testytest' ... don't ask

cp /var/mail/testytest ~/send-testytest
cat ~/send-testytest | formail -s procmail
rm ~/send-testytest

2) Log in as root

rm /var/mail/testytest

That should work. I hope it helps anyone struggling with this!

First we make a copy of the mail spool file in question. This is apparently to prevent an infinite processing loop. We read the whole mail file, and then with that we use formail, which comes with procmail, to re-process. It will then use procmail to distribute as it would normally. :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文