如何“循环”这些文件并再次发送每封邮件?
解决方法 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?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)