You can find the SMTP-plugin here:
https://www.dokuwiki.org/plugin:smtp
DokuWiki doesnât need to send mails while being installed. Your error message must have another reason.
It also would be possible to use DokuWiki without any mail functionality, but this restricts the usability of the wiki.