From the course: Linux: Firewalls and SELinux

Unlock the full course today

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

Allowing any mail server

Allowing any mail server - Linux Tutorial

From the course: Linux: Firewalls and SELinux

Start my 1-month free trial

Allowing any mail server

- [Sean] So you've setup a mail server on your Fedora server. Congratulations, that's great. You've probably got an IMAP server and a POP server and you've probably got SMTP running as well so you're going to need to open firewall ports or allow the traffic to those services so they can function properly and you're going to have the rest of the services restricted or at the very least you'll need these open in order for these services to function with any host that's not the actual server itself. Let's go ahead and do that. We start with adding services. So the command structure is we're going to be in a sudo session so there's root in the upper left as you can see here and we are going to issue the firewall-cmd --add-service= and then we have sort of a list of services that we're going to want to enable. We start with SMTP, because of course SMTP is necessary for sending mail. But SMTPS is necessary for sending mail over SSL. Again, different service different ports. And then SMTP…

Contents