Red Hat Training

A Red Hat training course is available for RHEL 8

Chapter 14. Configuring firewall for sending and receiving emails

Configure the firewall for sending and receiving emails using the following steps:

Procedure

  1. To add the service

    # firewall-cmd --permanent --add-service=servicename

    Replace the servicename with any of the services in the /etc/services. For example, smtp, submission.

  2. Reload the service for the change to take effect

    # systemctl reload firewalld