PostfixBasicSetupHowto

Differences between revisions 8 and 9
Revision 8 as of 2006-03-04 05:39:50
Size: 2700
Editor: 130
Comment:
Revision 9 as of 2006-03-04 05:42:03
Size: 2706
Editor: 130
Comment:
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:
Line 69: Line 70:
Line 72: Line 72:
Line 80: Line 81:
Line 85: Line 87:

Introduction

This howto will help you to have a basic Postfix mail server setup for your corporate environment. The main intention of this howto is to teach how you can install and configure a basic Postfix mail server setup with IMAP and POP3 services. I do not intend to tell you how you can integrate advanced stuffs like virus checking and spam filtering with this guide. My advanced postfix guide is CompleteVirtualPostfixIspMailSetup. Enjoy it once you have finished this basic howto.

System Overview

In our setup, Postfix sends & retrieves mail from Internet and stores in the user mail boxes while clients in the Internet can retrieve their mails either from Courier IMAP or POP3. The user authentication is done by Courier Authdaemon. The following diagram shows this process.

attachment:PostfixSetupOverview.jpg

Install Postfix

sudo apt-get install postfix

Adding TLS (Transport Layer Sequrity)

sudo  apt-get install postfix-tls

Test your default setup

Test your default installation using the following code segment. Add a user before you start this.

sudo useradd -m -s /bin/bash fmaster

}}} telnet localhost 25 ehlo localhost mail from: root@localhost rcpt to: fmaster@localhost data Subjet: My first mail on Postfix <Email body here> . and Enter (In a new Line) quit }}}

Check the mailbox of fmaster

su - fmaster
mail

Setting Postfix Support for Maildir-style Mailboxes

 sudo  vi /etc/postfix/main.cf

Add the following code segment:

   home_mailbox = Maildir/

Comment the Line  mailbox_command = procmail -a "$EXTENSION" adding a "#" at the begining

Restart Postfix to make changes effect.

sudo  /etc/init.d/postfix restart

Test your setup again

Installing courier IMAP and POP3

sudo apt-get install courier-pop
sudo apt-get install courier-pop-ssl 
sudo apt-get install courier-imap
sudo apt-get install courier-imap-ssl 

= Adding local domains to postfix

sudo   vi /etc/postfix/main.cf

Add your domain to:

{{ mydestination = mail.fossedu.org, localhost.localdomain, localhost, yourdoamin.com }}}

Add your local network to:

I assume that your local network is 192.168.1.0/24

mynetworks = 127.0.0.0/8, 192.168.1.0/254

Finally Restart Postfix;

sudo  /etc/init.d/postfix restart

Test your setup again. Goto: "Test your default setup"

PostfixBasicSetupHowto (last edited 2008-08-06 17:00:10 by localhost)