sendmail – 如何再次发送 varmailroot?

sendmail – 如何再次发送 varmailroot?,第1张

概述通过一些配置错误,我在/ var / mail / root和/ var / mail / www-data中发了很多电子邮件 如何“循环”这些文件并再次发送每封邮件? formail,procmail的一部分(可能已在您的系统上可用)可以获取邮箱,将其拆分为消息,然后在每个邮箱上运行命令.从手册页: -s The input will be split up into separate ma 通过一些配置错误,我在/ var / mail / root和/ var / mail / www-data中发了很多电子邮件

如何“循环”这些文件并再次发送每封邮件?

解决方法 formail,procmail的一部分(可能已在您的系统上可用)可以获取邮箱,将其拆分为消息,然后在每个邮箱上运行命令.从手册页:
-s   The input will be split up into separate mail messages,and  piped        into  a  program  one  by  one (a new program is started for every        part).  -s has to be the last option specifIEd,the first argument        following  it  is  expected to be the name of a program,any other        arguments will be passed along to it.  If you  omit  the  program,then  formail  will  simply  concatenate the split mails on stdout        again.  See fileNO.

所以你可以做我想你想要的事情:

formail -s /usr/sbin/sendmail -oi -t < /var/mail/root
总结

以上是内存溢出为你收集整理的sendmail – 如何再次发送/ var / mail / root?全部内容,希望文章能够帮你解决sendmail – 如何再次发送/ var / mail / root?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/1043654.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存