YoRyan / mailrise

An SMTP gateway for Apprise notifications.
https://mailrise.xyz
MIT License
898 stars 39 forks source link

Can't Parse URL with hyphen in domain name. #92

Open todall opened 1 year ago

todall commented 1 year ago

I'm not sure if this is a mailrise issue or an apprise issue but I'm running the mailrise docker. Actual URL and token have been changed below:

mailrise config:

"gotify@mailrise.xyz": urls:

Docker Log: [2023-11-19 21:41:35] ERROR:apprise:Unparseable Gotify URL gotify://gotify.first-last.net:2349sSDJfjk3jk21d [2023-11-19 21:41:35] WARNING:apprise:Unparseable URL gotify://gotify.first-last.net:2349sSDJfjk3jk21d, entry #1 [2023-11-19 21:41:35] WARNING:apprise:Failed to load Apprise configuration from memory:// [2023-11-19 21:41:35] ERROR:apprise:There are no service(s) to notify [2023-11-19 21:41:35] WARNING:mailrise.skeleton:Notification failed: address: [ [no sender] ➤ gotify@mailrise.xyz ] subject: [ Test Subject ] body: [ This is a test (0.0K) ] [2023-11-19 21:46:27] WARNING:apprise:No message body or attachment was specified. [2023-11-19 21:46:27] WARNING:mailrise.skeleton:Notification failed: address: [ "Test Sender" ➤ gotify@mailrise.xyz ] subject: [ Test Subject ] body: [ (0.0K) ] [2023-11-19 21:47:11] WARNING:mail.log:('192.168.0.116', 63711) unrecognised: SSH-2.0-PUTTY_RELEASE_0.76 [2023-11-19 21:48:10] WARNING:apprise:Failed to send Gotify notification: Verification Failed., error=401. [2023-11-19 21:48:10] WARNING:mailrise.skeleton:Notification failed: address: [ [no sender] ➤ gotify@mailrise.xyz ] subject: [ [no subject] ] body: [ Testing (0.0K) ]

I am able to use discord and pushover notifcations from the same mailrise docker. Only the gotify fails. I don't use the hyphenated URL for discord or pushover.

AlBundy33 commented 4 months ago

afaik you only have to use " if your mail contains "special-characters" (e.g. "*@*") maybe gotify@mailrise.xyz works

because mailrise.xyz is the default-domain it should be enough to specify gotify

AlBundy33 commented 3 months ago

Have you tried to put the url in doublequotes?

todall commented 3 months ago

No, I just used the ip address.

AlBundy33 commented 3 months ago

maybe it was just a typo?

url: gotifys://gotify.first-last.net/2349sSDJfjk3jk21d
log:  gotify://gotify.first-last.net:2349sSDJfjk3jk21d

url gotifys with / and log gotify (without s) and : instead of /