NAM-AAF Integration: Use mailcatcher as SMTP server for EmailOTP

3 Likes
8 months ago

Advanced Authentication EmailOTP method can be used as the second factor authentication with NAM.

For this integration to work you need to have a working SMTP server which can post OTP messages to user email address.

If you do not have an account for a SMTP server and wanted to setup a SMTP server quickly for testing purpose, you can use "mailCatcher".

Steps to deploy:

1. Use any server which is docker enabled. You can also use AAF server itself.

2. SSH to the server

3.  Run the following 2 commands:

docker pull dockage/mailcatcher

docker run --name='mailcatcher' -d --publish=1080:1080 --publish=1025:1025 dockage/mailcatcher

( Port 1080 -> You can use the Browser to check the email

Port 1025 -> SMTP port for mailCather)

4. Once you run both the command you can access the mailcatcher using url http://DNSORIPADDRESSOFSERVER:1080/

mailcatcher.PNG

5. Configure AAF to use mailCatcher as SMTP server

Go to AAF console -> policies -> Mail Sender -> configure as the image and save

mailcatcher2.PNG

6. Once saved you can test the email server by sending a test message.

Go to AAF console -> policies -> Mail Sender -> Send the Test Message

mailcatcher3.PNG

Once Send the test message button is pressed you can see the Test email in the mailCatcher.

mailcatcher4.PNG

7. Use the mailCatcher to receive the EmailOTP with NAM.

mailcatcher5.PNG

mailcatcher6.PNG

mailcatcher7.PNG

mailcatcher8.PNG

mailcatcher9.PNG

 

"Thanks to Patrick Holderness to share the steps"

To know more about mailCatcher: https://mailcatcher.me/

Labels:

Support Tip
Comment List
Anonymous
Related Discussions
Recommended