Enable Email OTP

We already install Mock-SMTP, but when using the pre-reg we didn’t receive any email notif
image

Question 1: How to enable the notif via mock smtp
Question 2: If we will use a custom smtp server eg: gmail, where will we define it?

Dear @karlxix

Question 2: If we will use a custom smtp server eg: gmail, where will we define it?

For the above question, you need to configure kernel-default.properties. The following properties need to update

mosip.kernel.notification.email.from=info@mosip.io
spring.mail.host=${email.smtp.host}
spring.mail.username=${email.smtp.username}
spring.mail.password=${email.smtp.secret}
spring.mail.port=587
spring.mail.properties.mail.transport.protocol=smtp
spring.mail.properties.mail.smtp.starttls.required=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.auth=true
spring.mail.debug=false
spring.servlet.multipart.enabled=true
spring.servlet.multipart.max-file-size=5MB

Question 1: How to enable the notif via mock smtp

Email notification

mosip.kernel.notification.email.from=do-not-reply@mosip.io
spring.mail.host=http://mock-smtp.mock-smtp
spring.mail.username=
spring.mail.password=
spring.mail.port=8025
spring.mail.properties.mail.transport.protocol=smtp
spring.mail.properties.mail.smtp.starttls.required=false
spring.mail.properties.mail.smtp.starttls.enable=false
spring.mail.properties.mail.smtp.auth=false
spring.mail.debug=false
spring.servlet.multipart.enabled=true
spring.servlet.multipart.max-file-size=5MB

Hi @thamarai_kannan

thanks for this guide, after editing the config file, what service/pods do we need to restart?

Dear @karlxix After Updating Property file, you have to restart notifier service in kernel namespace

1 Like

Hi @thamarai_kannan

After doing the Guide #1 using the mock-smtp

this is what we got from notifier logs

config-file
image

still no email notif receive

1 Like

Dear @karlxix what is the Namespace & pod name for mock-smtp created in the environment ?

Hi @karlxix

Were you able to slove the issue? Please let us know

Best Regards,
Team MOSIP

Hi @thamarai_kannan

sorry for late reply

here is the screenshot of moc-smtp
mock-smtp-5694d7b5f-xpq7p

1 Like

Hi @karlxix

I see the services running looks like your issue got resolved if in case you face any further issues please raise a thread on our community channel.

Best Regards,
Team MOSIP