Book Image

SpamAssassin: A practical guide to integration and configuration

Book Image

SpamAssassin: A practical guide to integration and configuration

Overview of this book

As a busy administrator, you know Spam is a major distraction in todays network. The effects range from inappropriate content arriving in the mailboxes up to contact email addresses placed on a website being deluged with unsolicited mail, causing valid enquiries and sales leads to be lost and wasting employee time. The perception of the problem of spam is as big as the reality. In response to the growing problem of spam, a number of free and commercial applications and services have been developed to help network administrators and email users combat spam. Its up to you to choose and then get the most out of an antispam solution. Free to use, flexible, and effective, SpamAssassin has become the most popular open source antispam application. Its unique combination of power and flexibility make it the right choice. This book will now help you set up and optimize SpamAssassin for your network.
Table of Contents (24 chapters)
SpamAssassin
Credits
About the Author
About the Reviewers
Introduction
Glossary

Configuring Postfix


The Postfix configuration files normally reside in /etc/postfix and /etc/mail/, although this may vary from distribution to distribution. The main files are main.cf and master.cf. To create an email gateway, perform the operations described in the following sections.

Accepting Email for the Domain

Postfix needs to be configured to accept email for the domain. To do this, edit the main.cf file and add or change the following lines, substituting the appropriate domain and hostname:

myhostname = mailgateway.domain.com
mydomain = domain.com
relay_domains = domain.com

Mail for the root User

Mail for the root user and other common aliases should be configured. This is done by editing the /etc/mail/aliases file and altering the entries as shown in the following example:

# /etc/mail/aliases
# Basic system aliases -- these MUST be present.
MAILER-DAEMON: postmaster
postmaster: root
# General redirections for pseudo accounts.
adm: root
bin: root
daemon: root
exim: root
lp: root
mail...