[GH-ISSUE #74] Password with special characteres #18

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

Originally created by @HakunMatat4 on GitHub (Jun 9, 2022).
Original GitHub issue: https://github.com/decke/smtprelay/issues/74

Hi guys,

After creating a Dockerfile to run the latest smtprelay, I got everything working using a Gmail account with 2FA and an app password.

The problem tho comes when the password has special characters on it.
I am having some issues working that out.

Removing the special characters from the password, it starts.
I have tried that basic scapes I know but got nowhere: ", ', , %

I am running it like this smtprelay -config /etc/smtprelay/smtprelay.ini(currently working with Gmail and App password(2FA))
I need to solve the above to get it working with Office365.

How can I solve this?

Thank you

Originally created by @HakunMatat4 on GitHub (Jun 9, 2022). Original GitHub issue: https://github.com/decke/smtprelay/issues/74 Hi guys, After creating a Dockerfile to run the latest `smtprelay`, I got everything working using a Gmail account with 2FA and an app password. The problem tho comes when the password has special characters on it. I am having some issues working that out. Removing the special characters from the password, it starts. I have tried that basic scapes I know but got nowhere: ", ', \, % I am running it like this ` smtprelay -config /etc/smtprelay/smtprelay.ini `(currently working with Gmail and App password(2FA)) I need to solve the above to get it working with Office365. How can I solve this? Thank you
kerem closed this issue 2026-02-26 18:32:58 +03:00
Author
Owner

@HakunMatat4 commented on GitHub (Jun 9, 2022):

I managed to get it started by encoding the special characters like replacing @ with %40 for example
It starts without problem but when sending an email:

ERRO[2022-06-09T04:21:31Z] delivery failed err_code=504 err_msg="5.7.4 Unrecognized authentication type [XXXXXXXXX.prod.outlook.com]"

<!-- gh-comment-id:1150655068 --> @HakunMatat4 commented on GitHub (Jun 9, 2022): I managed to get it started by encoding the special characters like replacing `@` with `%40` for example It starts without problem but when sending an email: `ERRO[2022-06-09T04:21:31Z] delivery failed err_code=504 err_msg="5.7.4 Unrecognized authentication type [XXXXXXXXX.prod.outlook.com]"`
Author
Owner

@decke commented on GitHub (Jun 11, 2022):

There isn't much I can help with since I don't care much about Docker nor Microsoft products.

Probably it helps to let you know that we don't do anything with the password so it's just used and passed as it is.

<!-- gh-comment-id:1152900741 --> @decke commented on GitHub (Jun 11, 2022): There isn't much I can help with since I don't care much about Docker nor Microsoft products. Probably it helps to let you know that we don't do anything with the password so it's just used and passed as it is.
Author
Owner

@decke commented on GitHub (Jun 11, 2022):

For authentication you could try if they support LOGIN auth.

https://github.com/decke/smtprelay/blob/master/smtprelay.ini#L102

<!-- gh-comment-id:1152900939 --> @decke commented on GitHub (Jun 11, 2022): For authentication you could try if they support LOGIN auth. https://github.com/decke/smtprelay/blob/master/smtprelay.ini#L102
Author
Owner

@HakunMatat4 commented on GitHub (Jul 13, 2022):

@decke thank you for the reply and sorry for the delay on this. Got carried away with other tasks.
Good to know it passes as it's, I will have a look around.

For the matter, I am not into Microsoft either but I cannot escape Docker and Kubernetes.
Either way, I got it working just fine with both. I am lost with the way how it uses variables tho.
In case it is something you could point me in the right direction: https://github.com/decke/smtprelay/issues/81

Thank you for the help. I am closing this.

<!-- gh-comment-id:1182718458 --> @HakunMatat4 commented on GitHub (Jul 13, 2022): @decke thank you for the reply and sorry for the delay on this. Got carried away with other tasks. Good to know it passes as it's, I will have a look around. For the matter, I am not into Microsoft either but I cannot escape Docker and Kubernetes. Either way, I got it working just fine with both. I am lost with the way how it uses variables tho. In case it is something you could point me in the right direction: https://github.com/decke/smtprelay/issues/81 Thank you for the help. I am closing this.
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#18
No description provided.