开发者_开发技巧
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this questionI am working on an application that quarantines and routes email. Let's say in this application that I have an email message in a directory of my choosing and it has been scanned by our software and is considered "clean". How do I inject this message back into Postfix?
Maybe you simply use sendmail
?
I recognize that this is a rather old question. For the benefit of people stumbling across this question:
The qpsmtpd SMTP daemon has a Postfix Queue-Plugin to inject mails into Postfix. The plugin directly talks to the cleanup daemon of Postfix. It shall be rather easy to adapt/port that code (it's written in perl).
http://www.qpsmtpd.org/
精彩评论