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

Port error and connection failure issue in mailtos #635

Closed
wang-silin opened this issue Jul 23, 2022 · 2 comments
Closed

Port error and connection failure issue in mailtos #635

wang-silin opened this issue Jul 23, 2022 · 2 comments
Labels

Comments

@wang-silin
Copy link

I ran into the following problems

  1. When using the docker container, the English "" cannot be added, resulting in the inability to parse the json correctly.
    image
    image
    image

  2. After I use json to specify port 465, apprise still tries to connect to port 587.

www-data@75e372609f36:/opt/apprise$ apprise -vvvv -t "Test" -b "Email" \ "mailtos://abc:password@xyz.cn?smtp=smtp.exmail.qq.com&mode=ssl&port=465"
2022-07-19 12:14:09,505 - TRACE - E-Mail URL mailtos://abc:password@xyz.cn?smtp=smtp.exmail.qq.com&mode=ssl&port=465 unpacked as:
user="abc"
password="password"
port="None"
host="xyz.cn"
fullpath="None"
path="None"
query="None"
schema="mailtos"
url="mailtos://abc:password@xyz.cn"
qsd="{'smtp': 'smtp.exmail.qq.com', 'mode': 'ssl', 'port': '465'}"
qsd+="{}"
qsd-="{}"
qsd:="{}"
secure="True"
verify="True"
targets="[]"
secure_mode="ssl"
from_addr=""
smtp_host="smtp.exmail.qq.com"
headers="{}"
2022-07-19 12:14:09,506 - DEBUG - Loaded E-Mail URL: mailtos://abc:****@xyz.cn/?from=abc%40xyz.cn&mode=ssl&smtp=smtp.exmail.qq.com&user=abc&format=html&overflow=upstream&rto=4.0&cto=15&verify=yes
2022-07-19 12:14:09,507 - DEBUG - Using selector: EpollSelector
2022-07-19 12:14:09,508 - INFO - Notifying 1 service(s) asynchronously.
2022-07-19 12:14:09,515 - DEBUG - Email From: Apprise Notifications <abc@xyz.cn>
2022-07-19 12:14:09,515 - DEBUG - Email To: abc@xyz.cn
2022-07-19 12:14:09,515 - DEBUG - Login ID: abc
2022-07-19 12:14:09,515 - DEBUG - Delivery: smtp.exmail.qq.com:587
2022-07-19 12:14:09,516 - DEBUG - Connecting to remote SMTP server...
2022-07-19 12:14:09,516 - DEBUG - Securing connection with SSL...
2022-07-19 12:14:09,620 - WARNING - A Connection error occurred sending Email notification to smtp.exmail.qq.com.
2022-07-19 12:14:09,621 - DEBUG - Socket Exception: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)
  1. When everything is configured normally and the password is correct, you cannot connect to smtp.exmail.qq.com
www-data@75e372609f36:/opt/apprise$ apprise -vvvv -t "Test" -b "Email" \ "mailtos://abc:password@xyz.cn:465?smtp=smtp.exmail.qq.com&mode=ssl"
2022-07-19 12:11:30,801 - TRACE - E-Mail URL mailtos://abc:password@xyz.cn:465?smtp=smtp.exmail.qq.com&mode=ssl unpacked as:
user="abc"
password="password"
port="465"
host="xyz.cn"
fullpath="None"
path="None"
query="None"
schema="mailtos"
url="mailtos://abc:password@xyz.cn:465"
qsd="{'smtp': 'smtp.exmail.qq.com', 'mode': 'ssl'}"
qsd+="{}"
qsd-="{}"
qsd:="{}"
secure="True"
verify="True"
targets="[]"
secure_mode="ssl"
from_addr=""
smtp_host="smtp.exmail.qq.com"
headers="{}"
2022-07-19 12:11:30,804 - DEBUG - Loaded E-Mail URL: mailtos://abc:****@xyz.cn:465/?from=abc%40xyz.cn&mode=ssl&smtp=smtp.exmail.qq.com&user=abc&format=html&overflow=upstream&rto=4.0&cto=15&verify=yes
2022-07-19 12:11:30,805 - DEBUG - Using selector: EpollSelector
2022-07-19 12:11:30,807 - INFO - Notifying 1 service(s) asynchronously.
2022-07-19 12:11:30,814 - DEBUG - Email From: Apprise Notifications <abc@xyz.cn>
2022-07-19 12:11:30,814 - DEBUG - Email To: abc@xyz.cn
2022-07-19 12:11:30,815 - DEBUG - Login ID: abc
2022-07-19 12:11:30,815 - DEBUG - Delivery: smtp.exmail.qq.com:465
2022-07-19 12:11:30,816 - DEBUG - Connecting to remote SMTP server...
2022-07-19 12:11:30,816 - DEBUG - Securing connection with SSL...
2022-07-19 12:11:30,953 - DEBUG - Applying user credentials...
2022-07-19 12:11:31,118 - WARNING - A Connection error occurred sending Email notification to smtp.exmail.qq.com.
2022-07-19 12:11:31,119 - DEBUG - Socket Exception: (535, b'Error: authentication failed, system busy')

Originally posted by @wang-silin in #602 (comment)

@caronc
Copy link
Owner

caronc commented Aug 6, 2022

This has been resolved in the last merge. Thanks for pointing this out!

@caronc caronc closed this as completed Aug 6, 2022
@wang-silin
Copy link
Author

Okay, thank you.

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

No branches or pull requests

2 participants