Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 07-10-2007, 06:41 PM   #1
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Question POSTFIX Email Server

I am looking into getting a POSTFIX email server up and running on Lenny and was wondering if anyone here has successfully used POSTFIX on Debian? Was there a challenge or any tricks to getting this working? This is my 1st attempt on getting an email server running on Linux and I am not sure where to look. Did a basic Google search but nothing stood out as a firm guide to follow step by step.

I know Qmail and Sendmail or popular but I need this to be POSTFIX so I can get to understand it.

Thanks for any info!

Also - I notice that Debian by default installs and uses Exim4. What is the best way to completely rid the system or Exim4 100% so there is no trace of it or any way it can conflict with other SMTP services?

Last edited by carlosinfl; 07-10-2007 at 06:43 PM.
Old 07-11-2007, 05:28 AM   #2
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I'm running the default configuration, only for local delivery (from system to root)
I installed postfix and then (probably manually) removed exim4.
It was straightforward and it works as I want.

2007-04-29 14:06:50: + I                   exim4-config                                                                           4.63-17
2007-04-29 14:06:50: + I                     exim4-base                                                                           4.63-17
2007-04-29 14:06:50: + I             exim4-daemon-light                                                                           4.63-17
2007-04-29 14:06:53: + I                          exim4                                                                           4.63-17
2007-04-29 22:46:47: - C                          exim4                                  4.63-17                                         
2007-04-29 22:46:48: - C                     exim4-base                                  4.63-17                                         
2007-04-29 22:46:49: - C                     exim4-base                                  4.63-17                                         
2007-04-29 22:46:49: - C                   exim4-config                                  4.63-17                                         
2007-04-29 22:46:49: - C             exim4-daemon-light                                  4.63-17                                         
2007-04-29 22:46:56: + I                        postfix                                                                        2.3.8-2+b1
2007-04-30 18:35:22:   U                        postfix                               2.3.8-2+b1                                  2.4.0-2
2007-06-25 16:15:33:   U                        postfix                                  2.4.0-2                                  2.4.3-1
There a lot of available good links. Like this one:

Last edited by nx5000; 07-11-2007 at 05:30 AM.
Old 07-11-2007, 03:52 PM   #3
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
I used the following how-to to setup Postfix, Courier, with Amavisd, Clam-AV, and Spamassassin. It is our corporate mail server and works extremely well..

Although the how-to is for Sarge, I did this on both Sarge then later on Etch with no trouble at all..
If you plan to use your mail server for corporate use I would suggest Etch rather than Lenny. Uptime is everything when it comes to Corporate e-mail.

username@mail:~$ aptitude search postfix
i   postfix                                 - A high-performance mail transport agent
v   postfix-tls                             -
username@mail:~$ aptitude search exim
c   exim4                                   - metapackage to ease exim MTA (v4) installation
c   exim4-base                              - support files for all exim MTA (v4) packages
c   exim4-config                            - configuration for the exim MTA (v4)
v   exim4-config-2                          -
c   exim4-daemon-light                      - lightweight exim MTA (v4) daemon

username@mail:~$ aptitude search courier
i   courier-authdaemon                      - Courier authentication daemon
i   courier-authlib                         - Courier authentication library
i   courier-authlib-userdb                  - userdb support for the Courier authentication libr
i   courier-base                            - Courier Mail Server - Base system
i   courier-doc                             - Courier Mail Server - Additional documentation
i   courier-imap                            - Courier Mail Server - IMAP server
i   courier-imap-ssl                        - Courier Mail Server - IMAP over SSL
p   courier-ldap                            - Courier Mail Server - LDAP support
i   courier-maildrop                        - Courier Mail Server - Mail delivery agent
i   courier-pop                             - Courier Mail Server - POP3 server
i   courier-pop-ssl                         - Courier Mail Server - POP3 over SSL
i   courier-ssl                             - Courier Mail Server - SSL/TLS Support

username@mail:~$ aptitude search amavisd
i   amavisd-new                             - Interface between MTA and virus scanner/content fi

username@mail:~$ aptitude search clamav
i   clamav                                  - antivirus scanner for Unix
i   clamav-base                             - base package for clamav, an anti-virus utility for
i   clamav-daemon                           - antivirus scanner daemon
i   clamav-docs                             - documentation package for clamav, an anti-virus ut
i   clamav-freshclam                        - downloads clamav virus databases from the Internet
i   libclamav1                              - virus scanner library
i A libclamav2                              - virus scanner library

username@mail:~$ aptitude search spamassassin
v   libmail-spamassassin-perl               -
i   spamassassin                            - Perl-based spam filter using text analysis

username@mail:~$ cat /etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Snapshot i386 NETINST Binary-1 20061222-08:51]/ etch main

deb etch main contrib non-free
deb-src etch main contrib non-free

deb stable/volatile main

deb etch/updates main
deb-src etch/updates main
This how-to makes use of the volatile sources for up to date AV signatures. Good stuff !

Removing exim was as easy as aptitude install postfix
Since postfix and exim are both smtp servers Debian automatically removes exim when you install postfix.
Old 07-12-2007, 08:27 AM   #4
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Thanks! Yes right now we use Postfix, Dovecot, Spamassisin, Clamav, and Squirellmail on RHEL4 for corp but I would like to set one up on Debian and migrate this ASAP!
Old 07-12-2007, 02:10 PM   #5
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
I've setup postfix on both redhat and debian and I find the debian to be more flexible to setup and administer. You defenately do the transfer. I prefer Debian. Drop me an email if you need help.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
POSTFIX Email Server carlosinfl Linux - Server 2 07-10-2007 02:04 PM
backup email server in Postfix LinuxLover Linux - Networking 1 12-28-2005 09:39 AM
Setting up an Postfix Email server subaruwrx Debian 13 01-19-2005 08:55 AM
How do I configure postfix master to forward all email to an email server ? hello321_1999 Linux - Software 1 11-18-2004 04:43 AM
Is Postfix an Email Server? Gib Sandwich Linux - Software 6 08-24-2004 02:23 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration