I’m trying to set up Discourse on a virtual server. I can use the organisation’s SMTP-server for mail, so that is fine and I got everything set-up, except for one proplem: no emails are being sent. I then created an admin account with
./launcher enter app
which nicely worked, and then looked at the mail setting. There I found the likely reason that no emails are being sent: my SMTP username is of the form “foo\bar”, where “foo” is a given prefix for a subgroup of users on that system, and “bar” is my account name. Then there is the backslash in between.
When I look at the /admin/email page in my Discourse installation, what I get shown as user_name is “foobar” without the backslash. I then tried escaping in app.yml, after looking up YAML syntax.
DISCOURSE_SMTP_USER_NAME: foo\bar DISCOURSE_SMTP_USER_NAME: 'foo\bar' DISCOURSE_SMTP_USER_NAME: "foo\\bar" DISCOURSE_SMTP_USER_NAME: foo\\bar
All give the same result (after rebuilding Discourse every time):
I don’t know where the backslash might get stripped. I saw no warning on special characters but the escaping I tried did not result in a change at Discourse installation level. I tried sending an email every time after rebuild (from the /admin/email page) but I always receive an error when sending.
Can someone help, please?