Used this guide to upgrade mariadb to version 10 or above.
After upgrade postfix needs to be restarted.
Go to postfix > Edit config files and copy over files main,master and virtual.rpmsave to their original files.
Run command postmap /etc/postfix/virtual
And that’s all, no other configuration needed.