Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 .../Maildir/new 文件夹中有一堆电子邮件。如何通过qmail发送它们?
另外,也许您可以建议如何阻止来自特定域的所有电子邮件?我试图阻止使用 control/badmailfrom 文件,但似乎它不起作用
.*\ @.* !.*@.*\..* .*%.* @domain.com
在此先感谢,尼克
下面是如何从 /Maildir/new 文件夹发送电子邮件的答案:
创建一个新脚本:
for file in /var/vpopmail/domains/.../username/Maildir/new/* ; do qmail-inject -f mail@domain.com -a wheretosend@domain.com <"$file" done
并执行它:# bash script_name