Starting Guide for Postfix Mail Server Configuration Supporting Anti Spam and Anti Virus

 

 

 

 

 

 

 

By

Dr. Hidaia Mahmood Alassouli

Hidaia_alassouli@hotmail.com


1. Introduction:

 

This work provides starting guide for simple Postfix mail server configuration. Then I configured the Postfix mail server to support Anti-Spam and Anti-Virus, using two methods.

 

The report includes the following sections

1. How Postfix receives mail:

2. How Postfix delivers mail

3. Starting guide for quick Postfix configuration

4. Postfix mail server and Dovecot configuration

5. Installing ClamAV and SpamAssassin

6. Installing and configuring Squirrelmail:

7. Method 1 to support Antivirus and Antispam: Using Postfix, Amavis-new, ClamAV, SpamAssassin

8. Method 2 to support Antivirus and Antispam: Using Postfix, Procmail, ClamAV, SpamAssassin

 


2. How Postfix receives mail:

 

When a message enters the Postfix mail system, the first stop on the inside is the incoming queue. The figure below shows the main processes that are involved with new mail. Names followed by a number are Postfix commands or server programs, while unnumbered names inside shaded areas represent Postfix queues.

 

 

 

 

 

 


3. How Postfix delivers mail

 

Once a message has reached the incoming queue the next step is to deliver it. The figure shows the main components of the Postfix mail delivery apparatus. Names followed by a number are Postfix commands or server programs, while unnumbered names inside shaded areas represent Postfix queues.

 

 

The queue manager (the qmgr(8) server process in the figure) is the heart of Postfix mail delivery. It contacts the smtp(8), lmtp(8), local(8), virtual(8), pipe(8), discard(8) or error(8) delivery agents, and sends a delivery request for one or more recipient addresses. The discard(8) and error(8) delivery agents are special: they discard or bounce all mail, and are not shown in the figure above.