jaymzh / pius

PGP Individual User Signer
Other
98 stars 25 forks source link

Infinite waiting when connecting on SSL port (465) #150

Open vigiraud opened 7 months ago

vigiraud commented 7 months ago

Hi, I'm trying to connect to two different mail servers using the 465 port for SSL, with this command : pius -A -s XXXXXXXX -r ~/.gnupg/mykeyring.gpg -m "address@example.com" -H "smtp.example.com" -P 465 -u "address@example.com".

In both cases, it will ask for my password, and then, whether I typed the correct one or not, it just gets blocked here infinitely :

Welcome to PIUS, the PGP Individual UID Signer.

Please enter your mail server password:

If I type ctrl+C, here is what I get :

Traceback (most recent call last):
  File "/usr/bin/pius", line 365, in <module>
    main()
  File "/usr/bin/pius", line 296, in main
    mailer = pmailer.PiusMailer(
             ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/libpius/mailer.py", line 54, in __init__
    if not self.verify_pass():
           ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/libpius/mailer.py", line 178, in verify_pass
    smtp = smtplib.SMTP(self.host, self.port)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/smtplib.py", line 255, in __init__
    (code, msg) = self.connect(host, port)
                  ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/smtplib.py", line 343, in connect
    (code, msg) = self.getreply()
                  ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/smtplib.py", line 398, in getreply
    line = self.file.readline(_MAXLINE + 1)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/socket.py", line 706, in readinto
    return self._sock.recv_into(b)
           ^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt

I don't have any trouble sending emails with Thunderbird on the same computer with the same network, using these two different mail servers. I'm using pius 3.0.0 , installed using the Arch package manager pacman.