tjackson
By:
tjackson

Exim setup that stores emails in MySQL table

February 20, 2015 3.3k views

Hello DO community, this request of mine is not a problem but a search and i sincerely hope that someone will help me.

I have a Debian 7 server and i want to setup an Exim mail server which stores emails, accounts, domains in a database for added security and flexibility.

Has anyone encountered a working tutorial for this? I didn't find something similar at DO community...

3 comments
  • Hi,

    You should probably be made aware that Exim is not really related to storing email, so what you're asking for is impossible. Exim will do very basic delivery to a mailbox (like postfix), but you will usually be using something like Courier or Dovecot for delivery and retrieving mail rather than Exim itself. I am not sure to what extent those two support storing the mail messages in a database.

    However, for the authentication, you can find a tutorial here: https://github.com/Exim/exim/wiki/AuthenticatedSmtpUsingMysql

    It's the closest I found to a decent exim + mysql tutorial.

    good luck

  • You are right, I didn't express myself correctly.

    I was thinking on some application or service that will store the emails in a database. After a prolong search, I found this tutorial.
    I tested it on my server and it works. It is an excellent article.
    Thanks for your prompt answer gp+digitalocean

  • Have you tried mandrillapp.com? not sure what you want to do, if you want to store a full copy of ever single email send and received or if you want to store a log of activities (mandrillapp works great here). If you want to store every email you may need something more massive like Exchange, Google Apps, Zoho maybe.

    Can you offer more details about it?

1 Answer

This question was answered by @tjackson:

You are right, I didn't express myself correctly.

I was thinking on some application or service that will store the emails in a database. After a prolong search, I found this tutorial.
I tested it on my server and it works. It is an excellent article.
Thanks for your prompt answer gp+digitalocean

View the original comment

Have another answer? Share your knowledge.