Book Image

CentOS 7 Server Deployment Cookbook

By : Timothy Boronczyk, IRAKLI NADAREISHVILI
Book Image

CentOS 7 Server Deployment Cookbook

By: Timothy Boronczyk, IRAKLI NADAREISHVILI

Overview of this book

CentOS is derived from Red Hat Enterprise Linux (RHEL) sources and is widely used as a Linux server. This book will help you to better configure and manage Linux servers in varying scenarios and business requirements. Starting with installing CentOS, this book will walk you through the networking aspects of CentOS. You will then learn how to manage users and their permissions, software installs, disks, filesystems, and so on. You’ll then see how to secure connection to remotely access a desktop and work with databases. Toward the end, you will find out how to manage DNS, e-mails, web servers, and more. You will also learn to detect threats by monitoring network intrusion. Finally, the book will cover virtualization techniques that will help you make the most of CentOS.
Table of Contents (18 chapters)
CentOS 7 Server Deployment Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Adding SASL to Postfix with Dovecot


If a mail server relays a message to another domain (that is, the recipient's address is not in our domain) and the message originates from outside our network, the server is known as an open relay. Spammers are constantly on the lookout for open relays because such permissive behavior is easy to take advantage of, and Postfix tries to protect us by default by only relaying messages that come from our network. Unfortunately, it's not practical to restrict legitimate users from sending e-mail through the server only when they're on our network. This recipe teaches you how to add Simple Authentication and Security Layer (SASL) authentication to Postfix's configuration using Dovecot. Postfix will then happily relay messages for our users authenticated users, regardless of their network location, while still refusing to do so for anyone else.

Getting ready

This recipe requires a CentOS system with Postfix configured as described in the previous recipe. Administrative...