Mailpiler - self hosted email archive
-
Email archiving provides lots of benefits to your company. Piler is a feature rich open source email archiving solution, and a viable alternative to commercial email archiving products; check out the comparison with Mailarchiva.
Piler has a nice GUI written in PHP supporting several authentication methods (AD/LDAP, SSO, Google OAuth, 2 FA, IMAP, POP3).- archiving and retention rules
- legal hold
- deduplication
- digital fingerprinting and verification
- full text search
- tagging emails
- view, export, restore emails
- bulk import/export messages
- audit logs
- Google Apps
- Office 365
Docker Image: http://www.mailpiler.org/wiki/testing:create-docker-image
-
Tried the demo, works very poorly.
-
@spectrely said in Mailpiler - self hosted email archive:
Tried the demo, works very poorly.
Can you specify inwhat way poorly?
-
App crashed in my browser upon login. Repeatedly.
-
@necrevistonnezr Where you ever able to get it working?
-
@spectrely said in Mailpiler - self hosted email archive:
@necrevistonnezr Where you ever able to get it working?
I just tried their demo website which worked fine. I did not try to install it.
-
@necrevistonnezr Perhaps its a browser thing. I was using Brave. I'll try again with something else. Cheers
-
Hello, I'm the maintainer of the piler project. Since this topic is 2+ years old, I'm not sure, if there's an interest to have piler as a cloudron app. Anyway, the application is already dockerized, see https://bitbucket.org/jsuto/piler/src/master/docker/ for more.
Basically it's a 3 container setup having mysql, memcached and piler. I believe that it can be customized to run on cloudron.
-
@jsuto Nice project and welcome to Cloudron!
I can see value in this, are you packaging it as a Cloudron App or hoping for the community to?
-
@marcusquinn Well, for the moment I'm not packaging it. First, I wanted to discover if there's an interest in the project as a cloudron app. Anyway, I'm new to cloudron, so I guess the community could do it much faster.
-
@jsuto I'm interested if clients are, it's certainly a feature Cloudron doesn't already cover, lends itself better to being an app for multi-provider mail archiving, and is important for business compliance expectations.
Most are on either Microsoft Exchange or Google Vault for these things. Difficult to cost-compare when they obfuscate feature pricing by bundling but It certainly looks like you have a capable alternative.
For interest, I tested the Demo, and have the localcdn.org extension installed by default, so had to enable "HTML Filtering" for the UI to work, maybe something to look at, although I admit I'm a less common setup as most users aren't concerned about CDN privacy.
-
@marcusquinn Er, I'm confused. What should I fix to make the localcdn plugin happy?
-
@jsuto Not checked but it's probably something referenced to pull from a CDN than your own server.
Anything with one of these URLs in the code would be what that extension is designed to use a local version of:
ajax.googleapis.com ajax.aspnetcdn.com ajax.microsoft.com cdnjs.cloudflare.com code.jquery.com cdn.jsdelivr.net fonts.googleapis.com yastatic.net yandex.st apps.bdimg.com libs.baidu.com cdn.staticfile.org cdn.bootcss.com mat1.gtimg.com lib.sinaapp.com upcdn.b0.upaiyun.com stackpath.bootstrapcdn.com maxcdn.bootstrapcdn.com netdna.bootstrapcdn.com use.fontawesome.com ajax.cloudflare.com akamai-webcdn.kgstatic.net gitcdn.github.io vjs.zencdn.net cdn.plyr.io sdn.geekzu.org ajax.proxy.ustclug.org unpkg.com pagecdn.io cdn.css.net cdnjs.loli.net ajax.loli.net fonts.loli.net lib.baomitu.com cdn.bootcdn.net
Not a big deal as anyone using that extension would probabaly know to try again with it bypassed ("HTML Filtering"), just for your awareness really.
-
@vladimir-d is working on packaging this for us all.
Expressions of interested and testing volunteers welcome.
-
@marcusquinn I'd be interested, if I can help
-
Mailpiler app for cloudron is here, built based on the original docker configuration.
https://git.cloudron.io/vladimir.d/mailpilerComments are very welcome.
-
@jsuto You still with us? Want to give this a spin?
I have a couple of questions on the app, shall we discuss in the open here for the benefit of the community that I'm sure will enjoy championing this addition from your great work for you.
-
@marcusquinn open please
-
@vladimir-d Feedback :
I tried building the app from the git address
I got error as below=> ERROR [ 6/10] ADD config/nginx /app/data/nginx 0.0s ------ > [ 6/10] ADD config/nginx /app/data/nginx: ------ failed to compute cache key: "/config/nginx" not found: not found
I fixed this by creating a directory 'nginx' in 'mailpiler-master/conf' and copied the 'nginx.conf from its location couple layers below
Building then continued correctly.
Other errors found which I am investigating -
@vladimir-d Feedback on building :
After sorting out nginx.conf location, there is long list of building information until :#5 86.05 dpkg: error processing archive piler_1.3.11-focal-5c2ceb1_amd64.deb (--install): #5 86.05 package architecture (amd64) does not match system (arm64) #5 86.05 Errors were encountered while processing: #5 86.05 piler_1.3.11-focal-5c2ceb1_amd64.deb ------ executor failed running [/bin/sh -c apt-get update && apt-get -y --no-install-recommends install wget openssl sysstat php7.4-cli php7.4-cgi php7.4-mysql php7.4-fpm php7.4-zip php7.4-ldap php7.4-gd php7.4-curl php7.4-xml php7.4-memcached catdoc unrtf poppler-utils nginx tnef sudo libzip5 libtre5 cron libmariadb-dev mariadb-client-core-10.3 python3 python3-mysqldb ca-certificates curl crudini vim net-tools supervisor memcached && apt-get clean && rm -rf /var/lib/apt/lists/* && wget --no-check-certificate -q -O ${SPHINX_BIN_TARGZ} ${DOWNLOAD_URL}/generic-local/${SPHINX_BIN_TARGZ} && tar zxvf ${SPHINX_BIN_TARGZ} && sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/cron && wget --no-check-certificate -q -O ${PACKAGE} https://bitbucket.org/jsuto/piler/downloads/${PACKAGE} && dpkg -i ${PACKAGE} && ln -sf /etc/piler/piler-nginx.conf /etc/nginx/sites-enabled/ && rm -f ${PACKAGE} ${SPHINX_BIN_TARGZ} /etc/nginx/sites-enabled/default /etc/piler/piler.key /etc/piler/piler.pem /etc/piler/config-site.php]: exit code: 1
I can't see what is wrong but will continue looking.
With such long combined commands ("&&"), it is difficult to identify on which command it is failing.Oh, BTW, I am building locally on a Mac Big Sur and using my docker registry.
But didn't get as far as pushing it there yet. -
I edited the Dockerfile to split the original multiple command line (#14) into multiple RUN lines to identify clearly where is the problem.
Seems like it is :=> ERROR [ 9/19] RUN dpkg -i piler_1.3.11-focal-5c2ceb1_amd64.deb 0.2s ------ > [ 9/19] RUN dpkg -i piler_1.3.11-focal-5c2ceb1_amd64.deb: #13 0.222 dpkg: error processing archive piler_1.3.11-focal-5c2ceb1_amd64.deb (--install): #13 0.222 package architecture (amd64) does not match system (arm64) #13 0.226 Errors were encountered while processing: #13 0.226 piler_1.3.11-focal-5c2ceb1_amd64.deb ------ executor failed running [/bin/sh -c dpkg -i ${PACKAGE}]: exit code: 1
Not sure what to do here. Will have to think.
Although I guess it has to be this on line #9PACKAGE="piler_1.3.11-focal-5c2ceb1_amd64.deb" \
-
Ah. Thinks.
Building this on Mac Big Sur running on Mac Mini with new Apple chip (not Intel)
Is that the cause of the architecture issue ? -
Using the following seems to get past the platform architecture issue :
Only needed perhaps if building on Mac with Apple chipdocker buildx build --platform linux/amd64 -f Dockerfile --no-cache . -t <reponame>/mailpiler:cloudron-<date>
-
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.
-
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 triedcloudron 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 ?
-
Blundering around in the dark, but I notice that
start.sh
has on line 53local SSL_CERT_DATA="/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com"
Should this not reference the Cloudron variable for location ?
-
@marcusquinn @vladimir-d what is the status of the app package?
-
@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.
-
@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 53local 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 triedcloudron 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
ornginx
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.
-
@vladimir-d thank you !
I will give it another go in the morning. -
@girish It needs to expose 25 port for
piler-smtp
daemon. it says 25 (and other smtp ports) are reserved.
For now I've addedtcpPorts
field toCloudronmanifest.json
and exposed it as12525
but I guess it won't properly work in most cases.
Is there a workaround to expose 25 port for the app? -
@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?
-
@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.58uixy8guf9yhttps://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 -
@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. -
@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
-
@luckow thank you
I just didn't know inbound can even be done via SMTP. Either my bad knowledge, or non-standard config. -
-
@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 ! -
@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.
-
@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.
-
-
@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.
-
@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. -
@jsuto You still with us here? Maybe someone can email him if the forum doesn't?
-
@marcusquinn
BTW does Mailpiler have any sort of compression? I recently tried to switch from the gold standard MailStore Home to another solution (in an attempt to ditch my Windows VM for good) - and my 30 GB MailStore Archive went up to 110 GB(!) in mbox files! -
@necrevistonnezr Don't know yet but will post some stats when I get to it. The project I have with it is for years of company email archives, so will have some good stats to compare from source to destination.
I might research file-system level deduplication, as I imagine there's a lot of duplicate files from email threads.
-
Just thought I'd chime in and say I'm very interested in a mail archive solution.
-
luckow
-
@marcusquinn said in Mailpiler - self hosted email archive:
@necrevistonnezr Don't know yet but will post some stats when I get to it. The project I have with it is for years of company email archives, so will have some good stats to compare from source to destination.
I might research file-system level deduplication, as I imagine there's a lot of duplicate files from email threads.
Is this still in the works or in a beta stage to be installed?
-
necrevistonnezr
-
@necrevistonnezr Hey, we have it working, need to ask @vladimir-d to commit to Cloudron's GitLab and let the team verify it's good to go for App Store inclusion.
-
necrevistonnezr
-
scooke
-
Hi all,
I am wondering if we are far away from an addition of mailpiler to the Cloudron app repository. It would be of great help in a couple of the situation I am facing atm.
@vladimir-d Maybe you have had the chance to commit the working app version to Clourdon's GitLab alreadyIf I can help (within the remit of my abilities) or contribute in making this happen, I would be happy to do so.
-
I am happy to include this if we have something basic going . @marcusquinn @vladimir-d do you have any initial work here ?
-
@girish here is some initial work.
https://git.cloudron.io/vladimir.d/mailpilerTBH I didn't have a chance to complete it yet, I think the issue described here still needs to be addressed.
-
@vladimir-d Would be awesome to get this working... Since the LAW in austria and germany for this hase been activate now for i think 2 Years. That you need a Mail Archive where you can proof the Mail is not changed....
https://www.bfdi.bund.de/DE/Buerger/Inhalte/Finanzen-Steuern/ABC_GoBD.html
-
@savity As an alternative, you can achieve pretty-much the same thing with EspoCRM, as that will import emails to give you the same duplicate data in an alternative place.
-
@marcusquinn said in Mailpiler - self hosted email archive:
@savity As an alternative, you can achieve pretty-much the same thing with EspoCRM, as that will import emails to give you the same duplicate data in an alternative place.
With full text search of mails and attachments? Can this be used for continuous backup?
-
@necrevistonnezr full text search of emails, yes. Attachment searching I don't think so but it could be possible as we're using this full-time for 100+ users, so there's some value in us developing anything that isn't there. Sure, just add connection details and it will keep importing emails regardless of if you login or not.
-
@marcusquinn does it import automaticly ? have to check it
-
@savity Yes, and it's already an Cloudron packaged and maintained app. I recommend it in many ways.
We also have Mailpiler packaged but not yet adopted by the Cloudron team, but have not pursued it further, since Espo is covering our needs.
-
Hello, I'm glad to see that there was an initial work adding piler to the app store.
I've got a request recently from a Cloudron user that he wanted to use piler archiving. Can you update me about the current status about this initiative? Whether it's still relevant, or you need some help from my side, etc. -
It works for us, just need adopting by Cloudron with tests and app store inclusion.
-
@jsuto Thanks for mailpiler. What is the password for the demo? This ought to be written somewhere... more obvious...