I'm thinking about building a transparent SMTP proxy on my own to process outgoing mails. I found Apache James already that looks like it is pretty much what I want.
Could I use Apache James to build a transparent SMTP proxy to add some headers and modify the co开发者_开发技巧ntent? Or should I go for pure Javamail?
James is a good fit for a scenario like this. The nice thing about this setup is that James will take care of all the retries and other glitches during mail processing. Adding headers is trivial with the right mailet.
I've used James in the past to send out personalised e-mails in bulk. By processing returned mail (bounces, out-of-office notices) you can tune the behaviour of your e-mail application further.
精彩评论