filter outgoing email
-
I have looked but must be missing something. How can I create an outgoing filter for all emails in our domain.
Eg I might want a filter for all outgoing emails from "@ourdomain.com" to "@importantcustomer.com" to send a copy to "internal-crm@ourdomain.com". That way if jim@ourdomain.com or sally@ourdomain.com sends an email to billy@importantcustomer.com then everyone on the list for internal-crm can see what the latest communications with the important customer are.
(I have managed to set up a simple filter for eg jim@ourdomain.com to send a copy of anything incoming from the important customer to a different mailbox or list, but I can't seem to do this with outgoing emails.)
Any suggestions?
Thanks in advance!
J. -
@girish I gather one can do this through postfix configuration.
I have to admit we haven't done this ourselves. It is one of the reasons we actually want to transition to something like Cloudron or poste.io or mailcow or similar so we can actually control such things.
The email setup in Cloudron is really nice and so I think will take a lot less maintenance going forward.
I gather that this can be done in postfix. Here are some relevant links:
- http://www.postfix.org/FILTER_README.html
- How to BCC all outgoing mail from one local mailbox to the other one in the same domain
- https://stackoverflow.com/questions/755853/postfix-send-a-copy-of-every-email-to-a-given-email-address
In the end we would also like to get this going with Mailman. The problem with just distribution lists is often I will want to send a message to someone and cc a distribution list and then if that person is on the distribution list they will receive it twice. Eg consider sending a message to jim@ourdomain.com cc: devops@ourdomain.com. Then jim will get the message twice. With Mailman we can stop this from happening and also have an archive of devops@ourdomain.com, etc.
-
@jasonh Ah got it. It looks like adding sender_bcc/recipient_bcc is quite doable. Cloudron uses haraka internally and not postfix and this feature is not available out of the box. We will look into adding this. I will reach out to you by email to double check some of the finer details.