mail hook to http post, based on Haraka(smtp server for nodejs) When smtp server receive email, post the content of email to specified http api instantly in multipart/form-data format . install dependency: npm install mailparser multiparter formidable weibo node-uuid connect redis iconv 需要在不同平台上重新编译--准备去掉此依赖(mailparser) run the smtp server(bind 25 port default): cd ~/mail2http haraka -c . run the http api server: cd ~/mail2http/test/ node upload-server.js send test email: ruby ~/mail2http/test/test_send.rb the http api will receive all email content in multipart/form-data format : from : Array to : Array subject : String html : String , html body if any. text : String , text body if any. attachment0 : attachment file attachment1 attachment2 attachmentN... Project tested on mac and ubuntu 11 server. see config/plugins plugins/mail2weibo.js is a plugin, which can publish email to sina weibo.