pilerimport from imap server results in error "cant connect to mysql server"

Issue #150 resolved
Former user created an issue

Hi there,

I am trying out mail piler and would like to import a mailbox via pilerimport. When I run "pilerimport -i 10.0.0.10 -u u@mail.com -p supersecret" I get a response

"cant connect to mysql server"

I have tried to use the"-c" option and point it to config.php and config-site.php but no luck. I am not sure of the syntax for the config file.

Please could you point me in the right direction to import mails from Imap server? The imap server uses tls - not sure if this is whats causing the problem?

Comments (6)

  1. Janos SUTO repo owner

    Hello Mark, note that the piler binaries don't use config.php nor config-site.php. They use piler.conf (by default in /usr/local/etc). Check that file for the mysql parameters at the end of the file.

  2. Mark Clarke

    thanks jsuto.. I used the postinstall script which did not update this /usr/local/etc/piler.conf file. Changed the password to the correct one and pilerimporter doesn't complain anymore but it just hangs on the command line with out any feedback. Not sure if its doing something or not. Will let you know if I have any furhter problems I can't figure out. thanks for your help and for mailpiler :)

  3. Janos SUTO repo owner

    I recommend you to start ngrep and watch the imap communication between pilerimport and the imap server to figure out the problem.

    If you use 0.1.24, and find issues, just upgrade to the current master branch, since some minor fixes were applied to the imap stuff. Btw. what kind of imap server is it?

  4. Log in to comment