We already install Mock-SMTP, but when using the pre-reg we didn’t receive any email notif
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?
We already install Mock-SMTP, but when using the pre-reg we didn’t receive any email notif
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
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
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
After doing the Guide #1 using the mock-smtp
this is what we got from notifier logs
config-file
still no email notif receive
Dear @karlxix what is the Namespace & pod name for mock-smtp created in the environment ?
sorry for late reply
here is the screenshot of moc-smtp
mock-smtp-5694d7b5f-xpq7p
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