How to install mail server on opensuse - ifriend ស្វាគមន៍ · Web viewdns (webmail...

15
How to install mail server on suse linux Requirement o Install PHP Apache2-mod_php5 Php5 o Apache Apache2 Apache2-example-pages Apache2-profork o Lib libstdc++-devel o post postgresql-libs o your domain is works domain (cist.net) dns (webmail ip address (192.168.1.1/24) o Install mysql Php-mysql mysql

Transcript of How to install mail server on opensuse - ifriend ស្វាគមន៍ · Web viewdns (webmail...

How to install mail server on opensuse

How to install mail server on suse linux

· Requirement

· Install PHP

· Apache2-mod_php5

· Php5

· Apache

· Apache2

· Apache2-example-pages

· Apache2-profork

· Lib

· libstdc++-devel

· post

· postgresql-libs

· your domain is works

· domain (cist.net)

· dns (webmail

· ip address (192.168.1.1/24)

· Install mysql

· Php-mysql

· mysql

· Check file in /var/lib/named/master

· Vim cist.net.zone and add one line

· Vim 192.168.1.zone

· testing your DNS work or not

· Use command nslookup cist.net

And use command nslookuop 192.168.1.1

· Restart service DNS (rcbind restart)

· Test PHP pages.

· Create a new file with the name phpinfo.php in directory /srv/www/htdocs

· Vim phpinfo.php

<?PHP

Phpinfo ();

?>

· Go to web browser http://192.168.1.1/phpinfo.php

· Restart service apache (rcapache2 restart)

· Edit file /etc/postfix/main.cf (for allow service IMAP for sent mail)

· /etc/postfix/main.cf

· Restart service postfix (rcpostfix restart)

· Install dovecot (it has 2 service pop3 and IMAP)

· Install packets of dovecot

· Install dovecot

· Restart service dovecot (rcdovecot restart)

· Edit file /etc/dovecot/dovecot.conf

· Vim /etc/dovecot/dovecot.conf

· And change some information that you see add lines 809,11

· Restart service dovecot (rcdovecot restart)

· After your configure your dovecot restart service (done) for make sure your dovecot work or not

You test sent mail to user and user to root it identified your mail work properly or not.

· Copy roundcubemail-0.2.1.tar.gz /srv/www/htdocs

· And extract this file roundcubemail-0.2.1.tar.gz to /srv/www/htdocs

· Remame roundcubemail to mailserver it easy to remember

Enter mailserver

· Give permission to folder temp and logs

· Rename files for configureation

· Edit file db.inc.php

· Vim db.inc.php

And change your password that your

· Edit file main.inc.php

· Vim main.inc.php

· Create password user mysql and password (soly)

· Create database and put password (password ) control roundcube for password put the same password that you edited in db.inc.php

· Note: if your configure wrong password so your database failed cannot connect to server.

· D

· Change file database to roundcube

· Go to web browser http://192.168.1.1/mailserver

login user kaka and password 123

· Configure Virtual host (webmail.cist.net)

Go to web browser http://webmail.cist.net

· Configure SSL