[GH-ISSUE #101] Passwords with / #25

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

Originally created by @pgilgunn on GitHub (Jan 24, 2023).
Original GitHub issue: https://github.com/decke/smtprelay/issues/101

Hi

I am looking to use this for AWS SES integration, as it looks like a good fit. Unfortunately, all the SES-generated passwords contain "/" in the password, and this is not handled well. Do you have any suggestions for this?

Config
remotes = starttls://username:pass/word@email-smtp.2.amazonaws.com:587

Error message
level=fatal msg="error parsing url: 'starttls://username:pass/word@email-smtp.2.amazonaws.com:587': parse "starttls://username:pass/word@email-smtp.2.amazonaws.com:587": invalid port ":pass" after host" remotes="starttls://username:pass/word@email-smtp.2.amazonaws.com:587"

Thanks

Originally created by @pgilgunn on GitHub (Jan 24, 2023). Original GitHub issue: https://github.com/decke/smtprelay/issues/101 Hi I am looking to use this for AWS SES integration, as it looks like a good fit. Unfortunately, all the SES-generated passwords contain "/" in the password, and this is not handled well. Do you have any suggestions for this? Config remotes = starttls://username:pass/word@email-smtp.2.amazonaws.com:587 Error message level=fatal msg="error parsing url: 'starttls://username:pass/word@email-smtp.2.amazonaws.com:587': parse \"starttls://username:pass/word@email-smtp.2.amazonaws.com:587\": invalid port \":pass\" after host" remotes="starttls://username:pass/word@email-smtp.2.amazonaws.com:587" Thanks
kerem closed this issue 2026-02-26 18:32:59 +03:00
Author
Owner

@decke commented on GitHub (Jan 24, 2023):

Please try to urlencode the password properly.

<!-- gh-comment-id:1401797203 --> @decke commented on GitHub (Jan 24, 2023): Please try to urlencode the password properly.
Author
Owner

@decke commented on GitHub (Jan 24, 2023):

pass/word should be pass%2Fword

<!-- gh-comment-id:1401799295 --> @decke commented on GitHub (Jan 24, 2023): `pass/word` should be `pass%2Fword`
Author
Owner

@pgilgunn commented on GitHub (Jan 24, 2023):

Thanks dercke that worked perfectly.

<!-- gh-comment-id:1402162347 --> @pgilgunn commented on GitHub (Jan 24, 2023): Thanks dercke that worked perfectly.
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#25
No description provided.