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. App Wishlist
  3. Mailpiler - self hosted email archive

Mailpiler - self hosted email archive

Scheduled Pinned Locked Moved App Wishlist
81 Posts 16 Posters 30.0k Views 23 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.
  • timconsidineT timconsidine

    Using the following seems to get past the platform architecture issue :
    Only needed perhaps if building on Mac with Apple chip

    docker buildx build --platform linux/amd64 -f Dockerfile --no-cache . -t <reponame>/mailpiler:cloudron-<date>
    
    timconsidineT Offline
    timconsidineT Offline
    timconsidine
    App Dev
    wrote on last edited by
    #24

    Build process failed (for me) on this line in #nginx section

    ln -sf /etc/piler/piler-nginx.conf /etc/nginx/sites-enabled/
    

    But i noticed preceding similar command succeeded

    ln -s /app/data/nginx/conf/sites-enabled /etc/nginx/sites-enabled 
    

    So I amended problem line by removing the trailing "/"
    That build process now runs to completion.

    I hope people don't mind the segregated comments and 'running commentary'. Personally I find it easier to track problems and solutions.

    timconsidineT 1 Reply Last reply
    2
    • timconsidineT timconsidine

      Build process failed (for me) on this line in #nginx section

      ln -sf /etc/piler/piler-nginx.conf /etc/nginx/sites-enabled/
      

      But i noticed preceding similar command succeeded

      ln -s /app/data/nginx/conf/sites-enabled /etc/nginx/sites-enabled 
      

      So I amended problem line by removing the trailing "/"
      That build process now runs to completion.

      I hope people don't mind the segregated comments and 'running commentary'. Personally I find it easier to track problems and solutions.

      timconsidineT Offline
      timconsidineT Offline
      timconsidine
      App Dev
      wrote on last edited by
      #25

      Successfully built and pushed to repository (docker in my case).
      App installed on Cloudron w/o hassle .... but hangs in 'starting' mode.
      So I uninstalled and tried cloudron install --image <repo>/<image>:<tag> without the --no-wait option.
      This installs but similarly gets stuck

       => Wait for health check ........................................................................................................................................................................................................................................................................................................................................................^C
      

      Out of my depth now. What to check / amend ?

      timconsidineT 1 Reply Last reply
      2
      • timconsidineT timconsidine

        Successfully built and pushed to repository (docker in my case).
        App installed on Cloudron w/o hassle .... but hangs in 'starting' mode.
        So I uninstalled and tried cloudron install --image <repo>/<image>:<tag> without the --no-wait option.
        This installs but similarly gets stuck

         => Wait for health check ........................................................................................................................................................................................................................................................................................................................................................^C
        

        Out of my depth now. What to check / amend ?

        timconsidineT Offline
        timconsidineT Offline
        timconsidine
        App Dev
        wrote on last edited by
        #26

        Blundering around in the dark, but I notice that start.sh has on line 53

        local SSL_CERT_DATA="/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com"
        

        Should this not reference the Cloudron variable for location ?

        vladimir.dV 1 Reply Last reply
        2
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #27

          @marcusquinn @vladimir-d what is the status of the app package?

          marcusquinnM vladimir.dV 2 Replies Last reply
          1
          • girishG girish

            @marcusquinn @vladimir-d what is the status of the app package?

            marcusquinnM Offline
            marcusquinnM Offline
            marcusquinn
            wrote on last edited by
            #28

            @girish We have 2 self-installed working instances, not given it a thorough test but can't see anything obvious that wouldn't work either. Could perhaps do with some more experienced eyes and feedback on it though.

            Web Design https://www.evergreen.je
            Development https://brandlight.org
            Life https://marcusquinn.com

            1 Reply Last reply
            2
            • timconsidineT timconsidine

              Blundering around in the dark, but I notice that start.sh has on line 53

              local SSL_CERT_DATA="/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com"
              

              Should this not reference the Cloudron variable for location ?

              vladimir.dV Offline
              vladimir.dV Offline
              vladimir.d
              wrote on last edited by
              #29

              @timconsidine I've updated Dockerfile to fix all building issues you faced with. After that everything went just fine on a fresh cloned copy.

              @timconsidine said in Mailpiler - self hosted email archive:

              Blundering around in the dark, but I notice that start.sh has on line 53

              local SSL_CERT_DATA="/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com"
              

              Should this not reference the Cloudron variable for location ?

              When tls add-on is enabled in the manifest, the script doesn't generate a self signed certificate and uses the Cloudron certificate of the primary domain. I've amended it to use $CLOUDRON_APP_DOMAIN variable.

              @timconsidine said in Mailpiler - self hosted email archive:

              Successfully built and pushed to repository (docker in my case).
              App installed on Cloudron w/o hassle .... but hangs in 'starting' mode.
              So I uninstalled and tried cloudron install --image <repo>/<image>:<tag> without the --no-wait option.
              This installs but similarly gets stuck

               => Wait for health check ............................^C
              

              Out of my depth now. What to check / amend ?

              It doesn't get stuck for me - I've tried to build&install the app with the recent changes.

              I guess there is an issue with piler or nginx directories in /etc/, probably a wrong path or an invalid symlink or so.
              You need to look at the app logs to see the issue.
              Logs button in the app config console

              timconsidineT 2 Replies Last reply
              2
              • vladimir.dV vladimir.d

                @timconsidine I've updated Dockerfile to fix all building issues you faced with. After that everything went just fine on a fresh cloned copy.

                @timconsidine said in Mailpiler - self hosted email archive:

                Blundering around in the dark, but I notice that start.sh has on line 53

                local SSL_CERT_DATA="/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com"
                

                Should this not reference the Cloudron variable for location ?

                When tls add-on is enabled in the manifest, the script doesn't generate a self signed certificate and uses the Cloudron certificate of the primary domain. I've amended it to use $CLOUDRON_APP_DOMAIN variable.

                @timconsidine said in Mailpiler - self hosted email archive:

                Successfully built and pushed to repository (docker in my case).
                App installed on Cloudron w/o hassle .... but hangs in 'starting' mode.
                So I uninstalled and tried cloudron install --image <repo>/<image>:<tag> without the --no-wait option.
                This installs but similarly gets stuck

                 => Wait for health check ............................^C
                

                Out of my depth now. What to check / amend ?

                It doesn't get stuck for me - I've tried to build&install the app with the recent changes.

                I guess there is an issue with piler or nginx directories in /etc/, probably a wrong path or an invalid symlink or so.
                You need to look at the app logs to see the issue.
                Logs button in the app config console

                timconsidineT Offline
                timconsidineT Offline
                timconsidine
                App Dev
                wrote on last edited by
                #30

                @vladimir-d thank you !
                I will give it another go in the morning.

                1 Reply Last reply
                1
                • girishG girish

                  @marcusquinn @vladimir-d what is the status of the app package?

                  vladimir.dV Offline
                  vladimir.dV Offline
                  vladimir.d
                  wrote on last edited by vladimir.d
                  #31

                  @girish It needs to expose 25 port for piler-smtp daemon. it says 25 (and other smtp ports) are reserved.
                  For now I've added tcpPorts field to Cloudronmanifest.json and exposed it as 12525 but I guess it won't properly work in most cases.
                  Is there a workaround to expose 25 port for the app?

                  girishG 1 Reply Last reply
                  2
                  • vladimir.dV vladimir.d

                    @girish It needs to expose 25 port for piler-smtp daemon. it says 25 (and other smtp ports) are reserved.
                    For now I've added tcpPorts field to Cloudronmanifest.json and exposed it as 12525 but I guess it won't properly work in most cases.
                    Is there a workaround to expose 25 port for the app?

                    girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #32

                    @vladimir-d Oh, interesting. Don't think an app can ever expose port 25 since the mail server requires port 25. Do you know why it requires port 25? Maybe I don't understand how the archiver works. I though it's pulling in all email via IMAP? Or is it that we should redirect all mail to mailpiler?

                    luckowL 1 Reply Last reply
                    1
                    • girishG girish

                      @vladimir-d Oh, interesting. Don't think an app can ever expose port 25 since the mail server requires port 25. Do you know why it requires port 25? Maybe I don't understand how the archiver works. I though it's pulling in all email via IMAP? Or is it that we should redirect all mail to mailpiler?

                      luckowL Offline
                      luckowL Offline
                      luckow
                      translator
                      wrote on last edited by
                      #33

                      @girish According to my understanding of a mail archive solution, every incoming and outgoing mail must be forwarded to the archive solution. This is the only way to fulfil the requirements of the law. https://en.wikipedia.org/wiki/Email_archiving
                      The mailpiler docs tells us:
                      Postfix
                      Add the following to main.cf then issue the postfix reload command:

                      always_bcc = uuid@smtp.example.com

                      For historical mails there is the import option
                      https://docs.google.com/document/d/15F0fyb07etMqEXRJnMZcYc016UN-WDds-6zrZNjF6aU/edit#heading=h.58uixy8guf9y

                      https://docs.google.com/document/d/1YK7zVbcohFWf2w8BpYhCcsAY6Q61JKXa8pqUDrU7nn4/edit#

                      Both docs are for the enterprise edition. But the oss edition has similar docs.
                      https://www.mailpiler.org/wiki/current:installation

                      Pronouns: he/him | Primary language: German

                      timconsidineT 1 Reply Last reply
                      2
                      • luckowL luckow

                        @girish According to my understanding of a mail archive solution, every incoming and outgoing mail must be forwarded to the archive solution. This is the only way to fulfil the requirements of the law. https://en.wikipedia.org/wiki/Email_archiving
                        The mailpiler docs tells us:
                        Postfix
                        Add the following to main.cf then issue the postfix reload command:

                        always_bcc = uuid@smtp.example.com

                        For historical mails there is the import option
                        https://docs.google.com/document/d/15F0fyb07etMqEXRJnMZcYc016UN-WDds-6zrZNjF6aU/edit#heading=h.58uixy8guf9y

                        https://docs.google.com/document/d/1YK7zVbcohFWf2w8BpYhCcsAY6Q61JKXa8pqUDrU7nn4/edit#

                        Both docs are for the enterprise edition. But the oss edition has similar docs.
                        https://www.mailpiler.org/wiki/current:installation

                        timconsidineT Offline
                        timconsidineT Offline
                        timconsidine
                        App Dev
                        wrote on last edited by
                        #34

                        @luckow this makes sense ... except I don't understand why an archive solution would need SMTP for sending. It just needs its own incoming email capability, and the always_bcc means it will get a copy of all inbound and outbound emails from the primary 'working' email server.
                        But maybe (as is often the case) I am not understanding the full picture.

                        luckowL 1 Reply Last reply
                        0
                        • timconsidineT timconsidine

                          @luckow this makes sense ... except I don't understand why an archive solution would need SMTP for sending. It just needs its own incoming email capability, and the always_bcc means it will get a copy of all inbound and outbound emails from the primary 'working' email server.
                          But maybe (as is often the case) I am not understanding the full picture.

                          luckowL Offline
                          luckowL Offline
                          luckow
                          translator
                          wrote on last edited by
                          #35

                          @timconsidine as I understand it, the smtp port of the archive solution is only relevant for receiving the bcc mails. The user uses the "normal" (in this case the Cloudron) smtp server for sending emails via webmail or the local mail client. And Cloudron smtp forwards/sends any incoming or outgoing mail via smtp to the archive solution. That is the magic in my understanding 🙂

                          Pronouns: he/him | Primary language: German

                          timconsidineT 1 Reply Last reply
                          0
                          • luckowL luckow

                            @timconsidine as I understand it, the smtp port of the archive solution is only relevant for receiving the bcc mails. The user uses the "normal" (in this case the Cloudron) smtp server for sending emails via webmail or the local mail client. And Cloudron smtp forwards/sends any incoming or outgoing mail via smtp to the archive solution. That is the magic in my understanding 🙂

                            timconsidineT Offline
                            timconsidineT Offline
                            timconsidine
                            App Dev
                            wrote on last edited by
                            #36

                            @luckow thank you
                            I just didn't know inbound can even be done via SMTP. Either my bad knowledge, or non-standard config.

                            luckowL 1 Reply Last reply
                            0
                            • timconsidineT timconsidine

                              @luckow thank you
                              I just didn't know inbound can even be done via SMTP. Either my bad knowledge, or non-standard config.

                              luckowL Offline
                              luckowL Offline
                              luckow
                              translator
                              wrote on last edited by
                              #37

                              @timconsidine worth reading https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol 😉

                              Pronouns: he/him | Primary language: German

                              1 Reply Last reply
                              1
                              • vladimir.dV vladimir.d

                                @timconsidine I've updated Dockerfile to fix all building issues you faced with. After that everything went just fine on a fresh cloned copy.

                                @timconsidine said in Mailpiler - self hosted email archive:

                                Blundering around in the dark, but I notice that start.sh has on line 53

                                local SSL_CERT_DATA="/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com"
                                

                                Should this not reference the Cloudron variable for location ?

                                When tls add-on is enabled in the manifest, the script doesn't generate a self signed certificate and uses the Cloudron certificate of the primary domain. I've amended it to use $CLOUDRON_APP_DOMAIN variable.

                                @timconsidine said in Mailpiler - self hosted email archive:

                                Successfully built and pushed to repository (docker in my case).
                                App installed on Cloudron w/o hassle .... but hangs in 'starting' mode.
                                So I uninstalled and tried cloudron install --image <repo>/<image>:<tag> without the --no-wait option.
                                This installs but similarly gets stuck

                                 => Wait for health check ............................^C
                                

                                Out of my depth now. What to check / amend ?

                                It doesn't get stuck for me - I've tried to build&install the app with the recent changes.

                                I guess there is an issue with piler or nginx directories in /etc/, probably a wrong path or an invalid symlink or so.
                                You need to look at the app logs to see the issue.
                                Logs button in the app config console

                                timconsidineT Offline
                                timconsidineT Offline
                                timconsidine
                                App Dev
                                wrote on last edited by timconsidine
                                #38

                                @vladimir-d whoop whoop ! 🍾
                                Just built, pushed and installed your updated package of Mailpiler.
                                All went smoothly.
                                Now I have to set it up and learn it.
                                Thank you so much ! 👍

                                marcusquinnM 1 Reply Last reply
                                4
                                • timconsidineT timconsidine

                                  @vladimir-d whoop whoop ! 🍾
                                  Just built, pushed and installed your updated package of Mailpiler.
                                  All went smoothly.
                                  Now I have to set it up and learn it.
                                  Thank you so much ! 👍

                                  marcusquinnM Offline
                                  marcusquinnM Offline
                                  marcusquinn
                                  wrote on last edited by
                                  #39

                                  @timconsidine Nice, more the merrier!

                                  It's definitely another app that can help win mindshare for Cloudron as an enterprise considerate solution with this sort of auditing. Especially when it can be setup as a separate Cloudron instance too for further risk spreading.

                                  Web Design https://www.evergreen.je
                                  Development https://brandlight.org
                                  Life https://marcusquinn.com

                                  timconsidineT 1 Reply Last reply
                                  3
                                  • marcusquinnM marcusquinn

                                    @timconsidine Nice, more the merrier!

                                    It's definitely another app that can help win mindshare for Cloudron as an enterprise considerate solution with this sort of auditing. Especially when it can be setup as a separate Cloudron instance too for further risk spreading.

                                    timconsidineT Offline
                                    timconsidineT Offline
                                    timconsidine
                                    App Dev
                                    wrote on last edited by
                                    #40

                                    @marcusquinn agreed.
                                    I totally agree. Have tried some archiving solutions previously and mailpiler looks nice.
                                    But I having a "thick" morning :

                                    • looking through app and their online docs, I can't what address emails should be BCC'ed to. Is it staring me in the face and I can't see it? Do I have to set it up ?

                                    • importing from a server doesn't specify a port number to access IMAP on, so test connection always fails, and it doesn't specify SSL/STARTTLS

                                    I'm embarrassed by these basic questions, but if someone can nudge me in the right direction, I'd appreciate it.

                                    marcusquinnM 1 Reply Last reply
                                    1
                                    • timconsidineT timconsidine

                                      @marcusquinn agreed.
                                      I totally agree. Have tried some archiving solutions previously and mailpiler looks nice.
                                      But I having a "thick" morning :

                                      • looking through app and their online docs, I can't what address emails should be BCC'ed to. Is it staring me in the face and I can't see it? Do I have to set it up ?

                                      • importing from a server doesn't specify a port number to access IMAP on, so test connection always fails, and it doesn't specify SSL/STARTTLS

                                      I'm embarrassed by these basic questions, but if someone can nudge me in the right direction, I'd appreciate it.

                                      marcusquinnM Offline
                                      marcusquinnM Offline
                                      marcusquinn
                                      wrote on last edited by
                                      #41

                                      @timconsidine We haven't got to out setup and migration yet, working on 6 things at once, as always! Will bear in mind and answer when we do get to it.

                                      Web Design https://www.evergreen.je
                                      Development https://brandlight.org
                                      Life https://marcusquinn.com

                                      timconsidineT 1 Reply Last reply
                                      1
                                      • marcusquinnM marcusquinn

                                        @timconsidine We haven't got to out setup and migration yet, working on 6 things at once, as always! Will bear in mind and answer when we do get to it.

                                        timconsidineT Offline
                                        timconsidineT Offline
                                        timconsidine
                                        App Dev
                                        wrote on last edited by
                                        #42

                                        @marcusquinn no problem, stumbling through it
                                        Testing some configs
                                        Another Q for later : what is a "mapped domain" when setting up a domain? Can't find any references to it.
                                        No rush.

                                        1 Reply Last reply
                                        0
                                        • marcusquinnM Offline
                                          marcusquinnM Offline
                                          marcusquinn
                                          wrote on last edited by
                                          #43

                                          @jsuto You still with us here? Maybe someone can email him if the forum doesn't?

                                          Web Design https://www.evergreen.je
                                          Development https://brandlight.org
                                          Life https://marcusquinn.com

                                          necrevistonnezrN 1 Reply Last reply
                                          1
                                          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