Generic Error when Custom email server is added

Any configuration that I add aside from the default configuration will not allow me to sign into the web portal. I recieve an generic eror that says that somethign went wrong.

-- using ODK central on AWS AMI

editing the followign file====> files/service/config.json.template

Changing the default:

"email": {
"serviceAccount": "no-reply@${DOMAIN}",
"transport": "smtp",
"transportOpts": {
"host": "mail",
"port": 25
}

To:

"email": {
"serviceAccount": "no-reply@myemail.com",
"transport": "smtp",
"transportOpts": {
"host": "email-smtp.us-east-1.amazonaws.com",
"port": 465,
"secure": true,
"auth": {
"user": "user",
"pass": "pass"
}
}
}

Unable log in at all once the config changes -- confirmed tht AWS SES is set and out of sandbox. verified the email address that im using. NOt sure what to try next

I am also having this issue.. but instead when i set up the ustom email config for AWS SES i cant log into central at all. not sure if there is anythign that im doing wrong there.

im changing the standard mail config from:

"email": {
"serviceAccount": "no-reply@${DOMAIN}",
"transport": "smtp",
"transportOpts": {
"host": "mail",
"port": 25
}

to:

"email": {
"serviceAccount": "no-reply@mydomain",
"transport": "smtp",
"transportOpts": {
"host": "email-smtp.us-east-1.amazonaws.com",
"port": 465,
"secure": true,
"auth": {
"user": "user",
"pass": "pass"
}
}
}

I haven't tried this recently, but try port 587 and remove the secure key.

thank you this resolved my issue!

1 Like

Hallo I had the same issue but managed to get it fixed. I am now having a self signed certificate issue which I need to resolve after looking at the service logs.

The issue is the self-signed cert. Any reason why you can't use a normal cert?