Mail Server

Eric S. Johansson esj at harvee.org
Tue Sep 27 21:35:52 UTC 2005


Dhanesh Walatara wrote:
> Hi There,
> 
> I am a Windows user and had a look into Ubuntu Linux recently have it up 
> and running no prob. However I dont just want another desktop and would 
> like to have some server functionalities running. Like Mail and Web 
> servers. Could some one guide me to somewhere that will tell me how to 
> setup a mail server with a webmail front end like MS Exchange and 
> Outlook Web Access. These applications are run by wizards as most 
> windows users would know how would I get a Mail server running on Ubuntu 
> like that. Again I am very new to this so please be nice
> 

it's really not terribly difficult.  You'll need these components:

postfix
Apache
php
squirrelmail
if you do not have your own DNS server: dnsmasq

cd /etc/postfix
append to the end of main.cf

alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
local_destination_concurrency_limit = 2

# adjust for your own local network but always leave the 127.0.0.0 #network
mynetworks = 192.168.0.0/24, 192.168.25.0/24, 127.0.0.0/8

# if you are going to relay through your ISP's mail server, uncomment
#the below
# relayhost = smart host

# your hostname
myhostname = your hostname
myorigin = $mydomain

home_mailbox = Maildir/

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

unknown_local_recipient_reject_code = 550

----
next edit /etc/dovecot.conf

if memory serves, the only line you need to change from the default is:

default_mail_env = maildir:%h/Maildir/

restart dovecot and postfix and you should be close to if not able to 
send and receive e-mail.  IMAP should be operational.  Don't progress 
any further on till you have these things working with a passable e-mail 
client like Thunderbird.

as for the rest of the components, well it's a bit more than I want to 
get into right now.

--- eric





More information about the ubuntu-users mailing list