mailcow / mailcow-dockerized

mailcow: dockerized - 🐮 + 🐋 = 💕
https://mailcow.email
GNU General Public License v3.0
8.58k stars 1.15k forks source link

Add documentation about how to send email to script #4231

Open shadow7412 opened 3 years ago

shadow7412 commented 3 years ago

Summary

I get constant reports for certain services that I would rather send to a script to handle. This is possible using postfix - but I'm not sure how to configure it whist keeping mailcow operational. It looks like there are various hooks I could use - but I don't see a guide on how to use them.

A way I've done it in the past is setting an alias to "|/scriptname", but I don't know where such an alias would go.

Motivation

If a concise guide was added to the docs, people who want to do this could follow it.

Please also note that I only want to forward email to a specific user (ie, not a whole domain and certainly not all mail). Though guides for both of these may benefit some people.

Additional context

I don't believe any changes would need to be made to mailcow itself. This one is just for documentation.

MAGICCC commented 3 years ago

Hm I dont really understand you. Do you want to send mails from e.g. your monitoring via mailcow using a local MTA?

shadow7412 commented 3 years ago

I want emails (sent to specific defined users) to be sent to a script instead of a mailbox.

Here is an example of how you could achieve this using postfix alone - hopefully that will clarify my request.

tacerus commented 1 year ago

I'd be interested in this as well. Is there possibly a way to add a custom "drop-in" aliases map file?

NoelOmo commented 3 months ago

I'd be interested in this too, has anyone figured it out?