• Ddsn

      Moolevel 1
    • Edited

    esackbauer Unfortunately thatā€™s not possible because thatā€™s a security breach, they will see each others e-mails. But itā€™s a good approach. Thanks for that šŸ™‚

      dsn Sure is that possible. Put the 5000 mails in a separate subfolder and share only that.
      Welcome to Groupware functions šŸ˜‰

      Or do you mean out of that 5000, not all are intended for the same recipients? Then create subfolders for each of them and share that only with the respectivbe ppl.

      • dsn replied to this.

        esackbauer Itā€™s many e-mails and I want to build a longterm automated flow that e-mails are being forwarded to the right people. And this includes a total of 5.000 e-mail aliases.

          Forwarding those mails will let the total number of mails explode.
          Filing it in the proper folders is easier. That can be automatically moved by filters in SOGo or more advanced with Sieve scripts.

          dsn 5.000 e-mail aliases.

          What? Now are you talking about 5000 aliases? Before you were talking about mails.

          • dsn replied to this.

            esackbauer When I said mails, I mean e-mails as in e-mail accounts that are sending mails to my mailserver.

            However, we need a real-time solution of forwarding e-mails.

            Do you think mailcow can handle it, if we create 5.000 forwarding rules to different e-mails and just do the manual work?
            If yes, is there an approach where managing/deleting/creating rules can be automated?

            As I mentioned before, forwarding is the wrong approach. Forwarding is 1990s, today we have Groupware.
            You should file it into folders of one or more mailboxes and share that with users. Set the filters to move incoming mails to respective folders. That is done in realtime.

            Maybe I do not fully understand your use case. Please bring some examples. And try to be concise. you do not have -email accounts sending to your server, it is email-addresses (as sender-from)

            • dsn replied to this.

              esackbauer Thanks for explaining. Moving into folders and sharing the folder makes totally sense.

              Here is my example:
              One user should receive (or get access to a folder) e-mails from a list of 2.000 different e-mail addresses. How would you solve that?

              My approach: Creating the following filter:

              Can I just add for example 2.000 conditions without mailcow and the server facing problems? Or is there a more efficient way?

              I canā€™t set different conditions, as the mails are almost identical. I still need to separate them. The only way to separate them is by ā€œTo or CCā€ - I was thinking if itā€™s maybe possible to set the value to ā€œemail2 AND email3ā€ etcā€¦ but doesnā€™t work as well.

                dsn receive (or get access to a folder) e-mails from a list of 2.000 different e-mail addresses

                I still donā€™t get it. Is test.de your mailcow mail domain?
                What is then the ā€œfrom a list of 2.000 different e-mail addressesā€? that would mean sender mail address. Your filter shows then receiving mail addresā€¦

                What you are explaining sounds like aliasses. Would be aliasses a solution? A user has his main email address associated with his account. And then you can have multiple aliases that he will be also receiving mails for.

                • dsn replied to this.
                  • Ddsn

                      Moolevel 1
                    • Edited

                    esackbauer

                    esackbauertest@test.de and esackbauertest2@test.de are two of the 2.000 e-mail addresses weā€™re receiving e-mails.
                    That was maybe a bad example, because the e-mails would usually look like that, because itā€™s real e-mails from for example web.de. So letā€™s say itā€™s esackbauertest@web.de and esackbauertest2@web.de and we have 5.000 of them that should be accessible by different people.

                    esackbauertest@web.de and esackbauertest2@web.de forwards to our mailserver then. This is the all in one inbox.
                    The 2.000 e-mail addresses are receiving newsletter e-mails from e.g. adidas and apple.com.

                    Aliases is not a solution, because itā€™s web.de and gmx. They donā€™t support that.

                    Ok now I understand it. Its 2000 ā€œfromā€ addresses. However I do not understand what you are doing with all those newsletters šŸ˜‰
                    I would still propose to use a shared folder for this ā€œone inboxā€ and make this accessible (ā€œfreigebenā€ as I think you are german) to your internal users.
                    This way you have only one ruleset in place. Your ruleset above seems wrong, as it is selecting on ā€œtoā€ instead of ā€œfromā€.

                    You can also have a look at ā€œ+ā€ addressing, it would automatically create subfolders depending on your alias.
                    E.g. you have you have ā€œdomain.deā€ as your mailcow domain. You have a user with ā€œhoneypot@domain.deā€ as ā€œthe all in oneā€ mailbox.
                    So you can use ā€œhoneypot+adidas@domain.deā€ without any additional effort, and mailcow will automatically create a folder ā€œadidasā€ and file received mails into that folder. This can then be shared with agent1..n@domain.de.
                    docs.mailcow.email Icon Sub-addressing - mailcow: dockerized documentation

                    • dsn replied to this.

                      esackbauer Thanks for the answer.

                      Iā€™m indeed for germany hahah, good job šŸ™‚

                      Thatā€™s an incoming mail example and itā€™s ā€œto:ā€ :

                      However, how would you set the rule filter as efficient as possible? Can I just do it like that?

                      Sorry, now I am confused again. This is a mail from Costco to a gmail account. What has this to do with mailcow?
                      are you assuming mailcow is ā€œgmail.comā€?

                      • dsn replied to this.

                        Ok, I still do not understand what you want to achieve here. Maybe you can put your use case together so we can better understand why you forward and then forward again. When forwarding is actually bad/old practice.

                        • dsn replied to this.

                          esackbauer

                          Forget the forwarding please. Thatā€™s mandatory for us, we canā€™t change.

                          Iā€™m just asking on how I can apply the filters the best way possible. can I do the Syntax: ā€œmail1ā€ AND ā€œmail2ā€ for example? Or is there any other syntax for this?

                          Or can I somehow manage the filters differently? For example in a code or with an api?

                          Do you have a suggestion for this

                          Thanks already soo much for the help.

                          Hi.

                          Are these emails going to a single email account and then you want it forwarded to various people?

                          Yes -> Using the GUI method above in SOGo will work but will be time consuming. You can instead edit the email addresses sieve filters directly through text and manipulate them that way. However, itā€™s not possible to do this via mailcows GUI. You will need to find an app that can do this. KMail on KDE has this ability.

                          You -can- use mailcows GUI to create a pre-filter for emails and do this the same way, though.

                          If the emails are NOT going to a single email address then you will need to make a global pre-filter to do this.

                          • dsn replied to this.

                            SimplyCorbett Dear Simply Corbett,

                            Thanks for your help!

                            What do you mean by: global pre-filter exactly?

                            Also do you know an alternative to Kmail on KDE for windows where we can efficiently manage rule filters?

                              I have seen something like directly modifying the .sieve files inside the mailserver itself.

                              Is there a good way on how to do it? And does this even make sense?

                              Like with an external e-mail client or something.

                              dsn There is an option in the mailcow admin UI called ā€œglobal pre-filterā€ which is a text field you can edit.

                              As mentioned, you can also modify the users server-side sieve filters directly with a mail client such as KMail.

                              • dsn replied to this.

                                SimplyCorbett Awesome, thanks!

                                I didnā€™t know you mean sieve filters with the KMail client. Do you know a KMail alternative that works for windows as well?