Thursday, June 28, 2012

How To Configure Mail Server Postfix Dovecot and Outlook express

First you need to configure DNS  server with MX on your Linux machine for mail server. now am going to configure mail server on RHEL5.4 follow the step by step.

Some small details my Linux machine for you.
My Linux machine IP Address :- 192.168.0.2
DNS:- example.com

First install postfix , system-switch-mail , dovecot
.
1.[root@server ~]# yum install system-switch-mail postfix dovecot


2. [root@server ~]# system-switch-mail


Select postfix and ok next pic

Click ok

3. [root@server ~]# vim /etc/postfix/main.cf

1. #myhostname = host.domain.tld >
2. #mydomain = domain.tld >
3. #inet_interfaces = all >
4. mydestination = $myhostname, localhost.$mydomain, localhost,
5. #mynetworks = 168.100.189.0/28, 127.0.0.0/8

Uncomment and some changes.

1. myhostname = server.example.com
2. mydomain = example.com


3. inet_interfaces = all


4. mydestination = $myhostname, localhost.$mydomain, localhost, example.com


5. mynetworks = 192.168.0.0/24


Save and come out the file. now restart service

4. [root@server ~]# service postfix restart; chkconfig postfix on


5. [root@server ~]# telnet server.example.com 25


Now send a mail on client machine. 

6. 
[root@server ~]# mail sanjay@desktop2.example.com

Client side. 
7. [sanjay@desktop2 ~]$ mail


Now configure dovecot.

1. [root@server ~]# vim /etc/dovecot.conf 

Uncomment 

1. #protocols = imap imaps pop3 pop3s


2. #   mail_location = mbox:~/mail:INBOX=/var/mail/%u



3. #pop3_uidl_format = %08Xu%08Xv


Save and come out the file now restart service 

2. [root@server ~]# service dovecot restart; chkconfig dovecot on


3. [root@server ~]# telnet server.example.com 110



Windows side Configure Outlook express.

1. Open outlook express > Tools > Accounts..

Next.

Next.


Next.

Next.
Next

Next

Next.

All configuration is done try to send mail on windows client.

1. [root@server ~]# mutt

 Next.

 Next.


Reply to client side to mail server machine.

 Next.

!!!Enjoy the magic!!!!



Favorites