On a CentOS 7
web server, a java
web application with a mysql
database needs to be able to process incoming email. This means that each email message received by a specific email address needs to be program-atically accessible to the application. At least the following items need to be available for use by the application:
1.) The sender's email address
2.) The message body
3.) The sender's ip address
4.) The attached files
In particular, the files attached to each email message need to be able to be retrieved by the application so that the files can be input into other downstream processes. This assumes that a list of messages is also accessible.
I was able to set up a simple mail server using dovecot
, postfix
, and sieve
using this tutorial. I chose this tutorial because it is the only one I could find that specifies CentOS 7
. All the tutorials that I found related to mysql
and dovecot
are focused on other operating systems. Also, the other tutorials focus on creating more richly featured email servers.
How can I set up mysql
and dovecot
so that all received emails are automatically entered into a mysql
database containing the above-described data elements? If this is not possible with mysql
, please provide explicit instructions for something that is possible. Thank you.
Aucun commentaire:
Enregistrer un commentaire