Re: pilerimport from IMAP-server with STARTLS

2020-08-27 Thread sj




I suggest to fix imapfetch.py.

Locate this part in the file, and fix the port number:

if args.port == 993:
conn = imaplib.IMAP4_SSL(args.server)
else:
conn = imaplib.IMAP4(args.server)

Janos


On 2020-08-27 10:36, Yann Lehmann wrote:

Am 27.08.2020 um 10:09 schrieb s...@acts.hu:



yes, use the -p 993, and pilerimport will automatically try using tls.

Or you may even try the util/imapfetch.py tool to do the same. Note 
that
imapfetch.py only downloads emails. Then you need to process the 
downloaded

emails with pilerimport.


Janos



Thank you Janos for the very quick response. Our server uses STARTTLS
on port 143, so I tried with -P 143 but with the same result as
without specifying a port.

Obviously, specifying -P 993 doesn't work either.




Re: pilerimport from IMAP-server with STARTLS

2020-08-27 Thread Yann Lehmann




Am 27.08.2020 um 10:09 schrieb s...@acts.hu:



yes, use the -p 993, and pilerimport will automatically try using tls.

Or you may even try the util/imapfetch.py tool to do the same. Note that
imapfetch.py only downloads emails. Then you need to process the downloaded
emails with pilerimport.


Janos



Thank you Janos for the very quick response. Our server uses STARTTLS on 
port 143, so I tried with -P 143 but with the same result as without 
specifying a port.


Obviously, specifying -P 993 doesn't work either.



Re: pilerimport from IMAP-server with STARTLS

2020-08-27 Thread sj




Hello,

On 2020-08-27 09:57, Yann Lehmann wrote:


Due to a server dysfunction of our mail-server, our piler server could
not archive mails for several weeks.

As most of our users do not delete mails from their inbox very often,
there is a good chance that most of them could be imported.

However, when I try to import from our IMAP-server (pilerimport -i
server -u username -p password), I get a response, that plaintext
without SSL/TLS is not allowed.

Is there a way to connect to the IMAP-server with SSL/TLS enabled ?



yes, use the -p 993, and pilerimport will automatically try using tls.

Or you may even try the util/imapfetch.py tool to do the same. Note that
imapfetch.py only downloads emails. Then you need to process the 
downloaded

emails with pilerimport.


Janos



pilerimport from IMAP-server with STARTLS

2020-08-27 Thread Yann Lehmann




Hi,

Due to a server dysfunction of our mail-server, our piler server could 
not archive mails for several weeks.


As most of our users do not delete mails from their inbox very often, 
there is a good chance that most of them could be imported.


However, when I try to import from our IMAP-server (pilerimport -i 
server -u username -p password), I get a response, that plaintext 
without SSL/TLS is not allowed.


Is there a way to connect to the IMAP-server with SSL/TLS enabled ?

Thanks in advance and best regards
Yann Lehmann