I wrote a small python script that takes postfix/dovecot logs and uploads it to mariadb database. The table has only 2 rows, id(key) and log(text).
id(key)
log(text)