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. :)
发布评论
评论(1)
没关系,问题已解决,我希望这对其他人有帮助。
经过多次搜索,这是有效的方法。您的路径可能会有所不同。
它是特定于用户的,具体取决于您的服务器的设置方式。因此,如果您有多个用户。所以:
1)以用户身份登录。我称我的测试用户为“testytest”...不要问
2) 以 root 身份登录
这应该可以。我希望它可以帮助任何为此苦苦挣扎的人!
首先,我们制作相关邮件假脱机文件的副本。这显然是为了防止无限处理循环。我们读取整个邮件文件,然后使用 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
2) Log in as root
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. :)