Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    filter outgoing email

    Support
    email
    2
    5
    216
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jasonh last edited by girish

      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.

      1 Reply Last reply Reply Quote 0
      • girish
        girish Staff last edited by

        @jasonh We don't have this feature for outgoing emails. I guess we need email rules for outbound mail which Cloudron currently does not have. There's only rules for inbound mails via sieve.

        1 Reply Last reply Reply Quote 0
        • girish
          girish Staff last edited by

          Out of curiosity, have you done this with other email setups? If so, can you point me to what products implement this feature, so I can look into it further.

          J 1 Reply Last reply Reply Quote 0
          • J
            jasonh @girish last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • girish
              girish Staff last edited by

              @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.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Powered by NodeBB