piler installation guide

mailpiler screenshot

Patrik Kernstock

May I introduce my self? I am Patrik Kernstock, 25 years old, perfectionist, born in Austria and living in Ireland, Cork. Me explained in short: Tech- and security enthusiast, series & movies junky. Interesting in Linux, Container-stuff and many software solutions by Microsoft, Veeam and VMware.

5 3 votes
Article Rating
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

oldest most voted
Inline Feedbacks
View all comments

Would it be possible that you still update this tutorial? 

That would help me and many others…


I always get this error when I start the post-installation script of mailpiler:

Creating mysql database... Done.
Writing sphinx configuration... Done.
util/postinstall.sh: line 364: /usr/local/bin/indexer: cannot execute binary file: Exec format error
Initializing sphinx indices... bash: /usr/local/bin/indexer: cannot execute binary file: Exec format error
make: *** [Makefile:126: postinstall] Error 126

Maybe anyone can help?


Followed this guide with a fresh Ubuntu 20.04.02 install, sphinx 3.4.1. Made sure to include SPHINX_STRICT_SCHEMA = 1 where needed, but i’m not seeing any emails in the GUI as auditor. Running the manual reindex lists all zeroes in the output. Admin gui shows a few thousand emails are stored. What do I check next?


I had you same problem, solved replacing 3.4.1 with older 3.3.1


Hi, thanks for your guide, as I exposed here https://bitbucket.org/jsuto/piler/issues/1191/cannot-update-piler-from-139-build-998-to I’m not able to update from your guide to a new version of MailPiler. Can you share how do you update your installation . Thanks


Sorry I just find out your linked guide piler update guide


piler service starts but not able to telent on port 25, also posfix and piler both listen on port 25 i had stopped posfix for now. Kindly suggest how to telnet port 25 as no mails are coming on piler. Do we need any kind of MX records ?

Patrik Kernstock

Only one service can listen on one IP-Port combination. Emails needs to be forwarded from your main mailserver to Piler MTA – e.g. via BCC maps.


i have done the installation strict with your guide 🙂
Thank you!

But one Problem.
i havent installed sphinxsearch with apt (-> no /etc/cron.d/sphinxsearch to enter “start = NO”) – i only have “installed the binaries” like in your guide.
now i have the problem, that i can see only the mails from today.

what can i do?

Patrik Kernstock

Piler only archives new emails it receives on the MTA at port tcp/25. Existing emails must be imported manually – see: http://mailpiler.org/wiki/current:importing-emails


Thanks for your guide. I got mailpiler up and running – i just have no idea, how i can sent an email to the mail daemon on port 25?
I guess i miss something very obviouse.

Patrik Kernstock

This depends on the mailserver you’re using: With mailcow you can configure BCC maps to forward all incoming/outgoing emails to piler so that it can archive the emails.


Thank you for the guide. I have encountered a problem though and wondered if you were experiencing the same thing. I followed your guide (except for the mailcow parts) on a fresh Ubuntu 20.04.1 LTS. I imported a single day’s worth of emails in order to test the web GUI. It all seemed to be working fine until I logged in as auditor the very next day. It showed no emails at all. There is an FAQ at mailpiler.org about that and is says to “Edit /etc/default/sphinxsearch, and set START=“no””. I have done that and re-indexed the emails per the… Read more »


I think I may have sorted this. I started afresh and did 2 things differently this time: I noticed when starting searchd that it had warnings about missing main indexes so I followed the “Reset and reindex sphinx” steps I imported the day’s worth of emails as the piler user, I think the first time around I was root. I’m not sure which of those fixed it. Once again, thank you very much for the guide. I did try following the notes on mailpiler.org but really struggled to make sense of it so without your guide I would have been… Read more »


Hi, at first try, I had the same problem. That’s why I wrote here, I changed to SPHINX_STRICT_SCHEMA = 1 in the config prior to make postinstall. That fixed the warnings for me and since everything runs well.

Stef Malle

Perfect HowTo. Greetings from Austria.


Hi Patrik, first of all, thank you for your excellent Piler Installation Guide. I started with a clean Ubuntu 20.04 and followed your guide step by step. I had some minor problems, maybe you can confirm or direct me what I did wrong. First, on my installation there was no /etc/cron.d/sphinxsearch. Second, I had to ‘ldconfig’ also after the ‘make install’ of piler. Next, without changing first SPHINX_STRICT_SCHEMA = 1 in the config files ‘make postinstall’ threw errors/warings. There is also a SPHINX_STRICT_SCHEMA in /var/piler/www/config.php – I changed this too. Did you miss it or hasn’t it any impact? Last,… Read more »


ahh, have just seen in the Piler wiki, config-site.php overwrites settings in config.php. One point sorted out …

Would love your thoughts, please comment.x