Search code examples
jakarta-mailpostfix-mtamail-server

Postfix mail server and thousands of users?


greetings all I have a postfix mail server that contains many domains and each domain contains many users (each user has a mailBox)

and I want to handle that when an email comes to any mailBox of any user in all domains do some java code.

any ideas how this could be done ?


Solution

  • I got to a solution to forward all the incoming emails to one single mailbox, using postfix with mysql db, and added a thread that runs every 5 seconds to check for new unread emails to that single one mailbox using javamail