pilerimport with IMAP shows A1 BAD STARTTLS required error

Issue #834 closed
Sagun Shrestha created an issue

Hi Janos,

I am using piler 1.3.0 build 955 running on Debian environment. When I try to import email s from remote IMAP server, it comes with the following error:

pilerimport -i <remote server> -u <imap account> -p <password> -f <foldername> login failed, server reponse: A1 BAD STARTTLS required

I have tls_enable=1 on my piler.conf file and could see piler.pem file created under /usr/local/etc/piler directory.

I have been using pilerimport for archiving local ".eml" files and it has worked fine without any problems.

Can you please provide me some guidance as I am clueless ?

Comments (6)

  1. Janos SUTO repo owner

    try adding -P 993, provided that you have imap ssl enabled on the server. The tls_enable option in piler.conf refers to the piler daemon, not pilerimport.

  2. Sagun Shrestha reporter

    That worked without any errors! Thank you so much!

    Just wondering if it is good idea to import emails from IMAP server which has almost 500,000 emails in a single inbox folder. Do you think pilerimport can handle that huge amount of emails in one go?

    Can you please suggest me on this?

  3. Janos SUTO repo owner

    Well, I've created pilerimport to give you a tool to get legacy emails to the archive. So if you have 500k messages, then sure, go ahead, and import them. If you plan to use this method as a regular task to import new emails, then I think it's not a good idea, I'd rather use the piler daemon to do so.

  4. Log in to comment