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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. smtp_forward for Haraka?

smtp_forward for Haraka?

Scheduled Pinned Locked Moved Discuss
11 Posts 3 Posters 3.3k Views 3 Watching
  • 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.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #2

    @fbartels Did I understand correctly that you are trying import mailboxes from an existing mail server to Cloudron? If so, we have a script based on imapsync that does this. I will post in this forum shortly.

    fbartelsF 2 Replies Last reply
    0
    • girishG girish

      @fbartels Did I understand correctly that you are trying import mailboxes from an existing mail server to Cloudron? If so, we have a script based on imapsync that does this. I will post in this forum shortly.

      fbartelsF Offline
      fbartelsF Offline
      fbartels
      App Dev
      wrote on last edited by
      #3

      @girish said in smtp_forward for Haraka?:

      Did I understand correctly that you are trying import mailboxes from an existing mail server to Cloudron

      Kind of, but continuously. Imapsync is great for migrating single or multiple mailboxes. What I am trying to achieve is fetching mails from another inbox on a regular interval. E.g. get mails from a Hotmail mailbox every fifteen minutes.

      But that was the other post I've made, here it's more about Haraka. I want to SMTP forward mails for a given user to another system. In postfix this would be a transport.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #4

        How about creating a filter in Roundcube? You could then redirect incoming mail.

        fbartelsF 1 Reply Last reply
        0
        • ? A Former User

          How about creating a filter in Roundcube? You could then redirect incoming mail.

          fbartelsF Offline
          fbartelsF Offline
          fbartels
          App Dev
          wrote on last edited by
          #5

          @hillside502 said in smtp_forward for Haraka?:

          How about creating a filter in Roundcube?

          That would as far as I know only work with a new forwarding address and therefore only with domains with a mx record. To make it a bit less abstract imagine the following scenario:

          • you have a domain example.com
          • on this domain you have three users: joe@example.com, jane@example.com and boss@example.com
          • you point your mx record to your cloudron. all three accounts will now be delivered here.
          • boss now wants to have work with his mail in e.g. office 365

          With a transport/smtp_forward you can now only let mails to boss@example.com be forwarded/delivered to office 365. and you could still use the same mail archiver/anti-spam solution for this address like your whole other domain.

          ? 1 Reply Last reply
          0
          • fbartelsF fbartels

            @hillside502 said in smtp_forward for Haraka?:

            How about creating a filter in Roundcube?

            That would as far as I know only work with a new forwarding address and therefore only with domains with a mx record. To make it a bit less abstract imagine the following scenario:

            • you have a domain example.com
            • on this domain you have three users: joe@example.com, jane@example.com and boss@example.com
            • you point your mx record to your cloudron. all three accounts will now be delivered here.
            • boss now wants to have work with his mail in e.g. office 365

            With a transport/smtp_forward you can now only let mails to boss@example.com be forwarded/delivered to office 365. and you could still use the same mail archiver/anti-spam solution for this address like your whole other domain.

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #6

            @fbartels
            You can filter to redirect any combination of TO etc addresses.

            KISS principle - Wikipedia
            https://en.wikipedia.org/wiki/KISS_principle

            fbartelsF 1 Reply Last reply
            0
            • ? A Former User

              @fbartels
              You can filter to redirect any combination of TO etc addresses.

              KISS principle - Wikipedia
              https://en.wikipedia.org/wiki/KISS_principle

              fbartelsF Offline
              fbartelsF Offline
              fbartels
              App Dev
              wrote on last edited by
              #7

              @hillside502 I'm not talking about the "to" or on what to filter. The "redirect" action in sieve only allows to forward to other email addresses, not other servers.

              1 Reply Last reply
              0
              • girishG girish

                @fbartels Did I understand correctly that you are trying import mailboxes from an existing mail server to Cloudron? If so, we have a script based on imapsync that does this. I will post in this forum shortly.

                fbartelsF Offline
                fbartelsF Offline
                fbartels
                App Dev
                wrote on last edited by
                #8

                @girish any further thoughts in the use of smtp_forward with Haraka on Cloudron?

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #9

                  @fbartels mm, I think this is a possibly a feature that we need to add to Cloudron where some mailboxes are specifically forwarded to another host.

                  I can suggest a few hacks, let me know if any of these work or not:

                  • Capture all the mails in Cloudron. Then make your other host pull email periodically from Cloudron via IMAP. Basically, instead of push it becomes pull.
                  • If you have many mailboxes to forward, first create a mailbox named "catchall". Then forward all emails on Cloudron to this "catchall" mailbox. You can then again, pull images from another host via IMAP and distribute it as needed.
                  • Another option is also to make the catchall address to be the address on a Cloudron app. On Cloudron, each app gets a unique mailbox but this can actually be renamed. This way you can have all your emails delivered to the app instead. The app can then take these emails (via IMAP/recvmail addon) and push them out. This is a bit complex since it might require some changes in the code/database to allow this setup.

                  I understand it's not easy as the smtp_forward mechanism but I think to implement that will require lot more thought to see how it fits into existing Cloudron features.

                  1 Reply Last reply
                  0
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #10

                    Looking a bit closer https://haraka.github.io/manual/plugins/queue/smtp_forward.html will only work at the domain level (and not mailbox level). @fbartels so, I am not sure if smtp_forward will work for your use case.

                    fbartelsF 1 Reply Last reply
                    0
                    • girishG girish

                      Looking a bit closer https://haraka.github.io/manual/plugins/queue/smtp_forward.html will only work at the domain level (and not mailbox level). @fbartels so, I am not sure if smtp_forward will work for your use case.

                      fbartelsF Offline
                      fbartelsF Offline
                      fbartels
                      App Dev
                      wrote on last edited by
                      #11

                      @girish said in smtp_forward for Haraka?:

                      I am not sure if smtp_forward will work for your use case.

                      oh, that is indeed true. I stumbled upon something that suggested that this could be achieved with smtp_forward, but reading the page closer this indeed would not work as desired for me.

                      I'd rather want to avoid fetching mails from cloudron the the extra server. I'll have to think about some alternative approaches (maybe stick with my current relay setup and just make cloudron one of the relay targets).

                      Thanks for looking into this!

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search