Setting up blog with WordPress and Nginx: Step 3- Setting up DNS Mapping and SMTP Using Yandex

Now that in the previous two posts we have seen the setup of aws, nginx and wordpress. We need to setup the domain name and redirect it to correct place also we have to setup the SMTP for our wordpress mails to successfully reach the users.

yandex

For these settings we need following.

  1. Yandex account. Since we will use yandex smtp server.
  2. You have to buy domain name like abc.com. You can buy it from godaddy.com or bigrock.in.
  3. Easy WP-SMTP plugin in wordpress.

Lets start with DNS mapping-

After buying a domain you will get a control panel in all the domain name vendors.

  • Go to control panel and search for DNS management.
  • Inside DNS management find and click add a new record.
  • After this add your domain name and your public ip. Also note that www.abc.com and abc.com are different when it comes to domain name mapping so add entries for both.
  • Save the records and wait for some time. It takes some times for DNS to get refreshed everywhere. Once DNS is active you will be able to see your wordpress site when ever anyone enter your domain name.
  • Note that your site is still in http. We will make it https in our next tutorial.

Now on the second step i.e. setting up the SMTP for our mails to be delivered.

  • If you want your mails to be like xyz@abc.com you have to make register a domain in yandex and then verify the domain.
  • For verifying the domain, go to verify domain page and it will tell you what to do.
  • It will ask you to create some random file with random key to put in root directory of your website.
  • You can do it by following these steps.
    • ssh -i keyfile.pem ubuntu@public_ip
    • cd you_website_location
    • sudo vi randomname.html
    • press i to enter the random key.
    • save it. if you dont know how to save in VIM use ESC - > : -> wq -> enter.
  • Now to back to yandex and click verify. Yandex will read the file and confirm your domain.
  • Now you can create emails for your domain like admin@abc.com or root@abc.com etc.
  • Now install this Easy-WP-SMTP plugin . It will help you configure your SMTP.
  • Open the settings page of the plugin and enter the following details.
  • SMTP host as smtp.yandex.com
  • SMTP port as 465
  • Type of encryption as SSL.
  • SMTP Authentication as yes.
  • Put yandex username and password.
  • You are ready try and send a mail from test mail panel given in the plugins page only.
  • If getting error check the from email id, it must exist.

These are the step how we configure the SMTP and DNS mapping. In the next post we will try to make our site run over SSL.

If you are having problem in setting up any of these please leave a comment or google or stackoverflow.

Next part of the tutorial is here 

If you havent read the first and second part of the tutorial you can find them here.

Setting up WordPress Blog with aws and nginx: part 2

Setting up WordPress Blog with aws and nginx: Part 1

Do  share and  subscribe for latest posts on technology.


Gaurav Yadav

Gaurav is cloud infrastructure engineer and a full stack web developer and blogger. Sportsperson by heart and loves football. Scale is something he loves to work for and always keen to learn new tech. Experienced with CI/CD, distributed cloud infrastructure, build systems and lot of SRE Stuff.

2 COMMENTS
  • Setting up blog with WordPress: Step 2- Setting up wordpress under your nginx. - Learn Steps
    Reply

    […] Next part of the tutorial is live here. […]

  • Lindsey John
    Reply

    Kudos to Learn Steps for providing such a clear and concise guide on setting up DNS and SMTP in WordPress. The article covers all the essential steps and explanations, making it easy for beginners like me to understand the process.

    While reading the article, I noticed that the Postman SMTP plugin, a popular tool for managing email delivery within WordPress, was not mentioned. Including a brief mention of this plugin could have added value to the article, as it offers a user-friendly interface and enhances email deliverability.

    Nonetheless, I found this guide extremely helpful and appreciate the effort put into explaining the DNS and SMTP setup process. Thank you for sharing your knowledge!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.