The firewall should be configured for you be default. It’s checked during the status checks. You can manually confirm by running ufw status.
$ ufw status
Status: active
To Action From
-- ------ ----
22 ALLOW Anywhere
53 ALLOW Anywhere
25/tcp ALLOW Anywhere
587 ALLOW Anywhere
993 ALLOW Anywhere
995 ALLOW Anywhere
4190/tcp ALLOW Anywhere
80 ALLOW Anywhere
443 ALLOW Anywhere