From the course: Red Hat Enterprise Linux 8 Essential Training

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Manage SELinux for SMTP services

Manage SELinux for SMTP services

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

Manage SELinux for SMTP services

- [Instructor] Postfix by default works out of the gate with SELinux. In this video, we'll look at the security context that Postfix runs under, as well as any SELinux booleans that pertain to Postfix operations. Let's start by looking at the SELinux security context for the running processes. In a terminal type in ps -AZ | grep postfix and hit Enter. We can see the master services running under the postfix_master_t domain. The queue manager's running under the postfix_qmgr_t domain, and lastly, the pickup service is running under the postfix_pickup_t domain. Now let's check the security context on Postfix-related files and directories. Type in clear, and then type in ls -dZ /etc/postfix/ /var/lib/postfix/ /var/spool/postfix/ and hit Enter. We can see that we have three file security contexts, postfix_etc_t for the configuration files, postfix_data_t for the var/lib/postfix directory, and postfix_spool_t for the mail spool directory. In SELinux network ports also have types in order…

Contents