[GH-ISSUE #89] i cant seem to use "#" <- this kind of special ascii character as password. #19

Closed
opened 2026-02-26 18:32:58 +03:00 by kerem · 5 comments
Owner

Originally created by @hiqsociety on GitHub (Oct 9, 2022).
Original GitHub issue: https://github.com/decke/smtprelay/issues/89

error parsing url: 'starttls://abc@example.com:587': parse "starttls://abc@example.com:ofy#": invalid port ...

Originally created by @hiqsociety on GitHub (Oct 9, 2022). Original GitHub issue: https://github.com/decke/smtprelay/issues/89 error parsing url: 'starttls://abc@example.com:587': parse "starttls://abc@example.com:ofy#": invalid port ...
kerem closed this issue 2026-02-26 18:32:58 +03:00
Author
Owner

@decke commented on GitHub (Oct 10, 2022):

Cannot reproduce. You seem to use an invalid format. Format is:

protocol://[user[:password]@][netloc][:port][/remote_sender][?param1=value1&...]

so it should be:

starttls://abc:ofy#@example.com:587

<!-- gh-comment-id:1273303131 --> @decke commented on GitHub (Oct 10, 2022): Cannot reproduce. You seem to use an invalid format. Format is: protocol://[user[:password]@][netloc][:port][/remote_sender][?param1=value1&...] so it should be: starttls://abc:ofy#@example.com:587
Author
Owner

@hiqsociety commented on GitHub (Oct 10, 2022):

can you try this? i think there's an issue with the pipe "|" character etc. the below are the characters used as legit password

remotes = starttls://no-reply@example.com:okf#|Qd&3r%4A]fdy#4@example.com:587

<!-- gh-comment-id:1273383164 --> @hiqsociety commented on GitHub (Oct 10, 2022): can you try this? i think there's an issue with the pipe "|" character etc. the below are the characters used as legit password remotes = starttls://no-reply@example.com:okf#|Qd&3r%4A]fdy#4@example.com:587
Author
Owner

@hiqsociety commented on GitHub (Oct 12, 2022):

hi, any feedback on this?

<!-- gh-comment-id:1276760240 --> @hiqsociety commented on GitHub (Oct 12, 2022): hi, any feedback on this?
Author
Owner

@decke commented on GitHub (Oct 13, 2022):

We are using Go url.Parse() for this so you can try to urlencode your special characters in the password.

<!-- gh-comment-id:1277302692 --> @decke commented on GitHub (Oct 13, 2022): We are using Go url.Parse() for this so you can try to urlencode your special characters in the password.
Author
Owner

@hiqsociety commented on GitHub (Oct 13, 2022):

ok thx

<!-- gh-comment-id:1277574778 --> @hiqsociety commented on GitHub (Oct 13, 2022): ok thx
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/smtprelay#19
No description provided.