Network Services

Sunday, March 18, 2012

Mail server for ubuntu

How to Mail server for Ubuntu? !!!


After the completion of system installation


From here

Begin to install


Install  IP Server  static  "WAN OR LAN"




sudo nano /etc/network/interfaces
1-Type Static
2-Type  IP address
3-Type getaway
4-Type Netmask


# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 10.0.0.208
gateway 10.0.0.2
netmask 255.0.0.0

how to seve ? 
ctrl+Z  "Enter"


Network restart


sudo /etc/init.d/networking restart

Login this file


sudo nano /etc/resolv.conf


Type on this file


nameserver 8.8.8.8
nameserver 8.8.4.4

 seve  
ctrl+Z  "Enter"


Go to Putty program
Login for ip 10.0.0.208

Login
  " USERNAME 'Passwored"
how to create password 'root'


sudo passwd root

Test internet 


ping 8.8.8.8

GoOooOo  install  Pack



sudo apt-get update

sudo apt-get upgrade

sudo aptitude install bind9

sudo aptitude install postfix


sudo dpkg-reconfigure postfix

sudo postconf -e 'home_mailbox = Maildir/'

Postfix restart


sudo /etc/init.d/postfix restart


sudo apt-get install courier-pop 

y
===
No



sudo apt-get install courier-imap

sudo apt-get install mailx

sudo apt-get install heirloom-mailx


Go to configure squirrelmail

sudo apt-get install squirrelmail



















Login Her

cd /var/www


sudo ln -s /usr/share/squirrelmail webmail



sudo /etc/init.d/apache2 restart
sudo /etc/init.d/postfix restart
sudo /etc/init.d/courier-authdaemon start
sudo /etc/init.d/bind9 restart
sudo /etc/init.d/networking restart
how to add user ?
"sudo adduser  user1"

Add info user1


Now login user1

su user1

Create folder user1
maildirmake.courier /home/user1/Maildir 


Close the Putty program


Go to browser s















See you in the next lesson

with you

Mohamed Samir











0 comments:

Post a Comment