veiam I have been doing my best, but been unable to find a solution. Is there a way to send the subject and body of an email to a custom service as well when an email is received?
ETNyx Hard to say, MC have Pushover API, you can try to look into. Also there is Dovecot notify and push_notification plugin, also you can build something over IMAP using IMAP IDLE.
veiam I should have specified, I am not trying to just forward the email to another mailbox service, but an actual service to do some parsing and analysis. esackbauer
pkernstock Looks like pushover is integrated via rspamd config: mailcow/mailcow-dockerizedblob/a632980871d6b94087cfd513c92cd9cad6f7e819/data/conf/rspamd/local.d/metadata_exporter.conf#L15-L21 Which is calling this script: mailcow/mailcow-dockerizedblob/a632980871d6b94087cfd513c92cd9cad6f7e819/data/conf/rspamd/meta_exporter/pushover.php#L4 So potentially you could build something yourself by using the metadata_exporter module in rspamd: https://rspamd.com/doc/modules/metadata_exporter.html Alternatively a own Lua module might do the trick - example: https://osnote.com/rspamd-lua-script-to-log-email-size/
veiam pkernstock I saw this too, but the body of the email is not part of the metadata so I had to skip this option. Thank you for the LUA Script idea, that may end-up being a back-up option if there’s no better way.
esackbauer veiam Why would you send the body of the email which contains possible private and sensitive information across yet another service?
veiam esackbauer This is a personal server where I’m the only user and I was hoping to spin up a mailbox that can essentially be used to collect all newsletters and analyze, summarize, etc. what legit marketing emails are.