Skip to content

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

@vigiraud

Description

@vigiraud

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 "[email protected]" -H "smtp.example.com" -P 465 -u "[email protected]".

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions