Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vigiraud opened this issue Feb 11, 2024 · 0 comments
Open

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

vigiraud opened this issue Feb 11, 2024 · 0 comments

Comments

@vigiraud
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant