Webmail is a software that allows you to browse emails anywhere on any computer through a web browser. OpenWebMail is a simple, fast, and popular Webmail software package. This guide will enable you to install webmail on your server so that you can use webmail at home and on the Internet.
To run properly in Ubuntu, you must first complete the following installation:
1. sudo apt-get install openssh-server install ssh for ease of operation;
--------------------------------------------------------------------------------
2. Install samba
Install samba (sudo apt-get install samba), smbclient (sudo apt-get install smbclient), smbfs (sudo apt-get install smbfs ).
After the installation, configure the smb. conf file (command: sudo gedit/etc/samba/smb. conf), which of the following must be modified:
Configure the samba configuration file
Sudo gedit/etc/samba/smb. conf
Follow the instructions below:
[Global]
# Working groups displayed in WINDOWS
Workgroup = workgroup
# Computer name displayed in windows
Netbios name = baileyking
# Samba server Introduction
Server string = welcome
# There are many authentication and login methods. If you select share, you do not need to set the user and password.
Security = share
# The directory name displayed in windows
[Download]
# Set the location of the shared directory
Path =/home/download
# Whether it is writable
Wirteable = yes
# Browsed or not
Browseable = yes
# Log on with a guest user as an anonymous account
Guest OK = yes
There are a lot of things in this description. What you need to change is to remove the annotator ";" before the line of security = user, and then change the user to share. Other content can be found in the "shared folder"
.
After setting this parameter, restart the system by using sudo/etc/init. d/samba restart. In Win, you can see and access it directly.
To add a shared file, you can set it in the system-system management-shared folder, or you can directly edit the smb. conf file above.
Add an SMB account. [Http://ubuntuone.cn I just use this to add the account]
First, add a Ubuntu account sudo adduser-a bunorte (here is to add an account named bunorte, enter the account password after entering .)
Then, add the bunorte as the smb account sudo smbpasswd-a bunorte (enter the smb password required after entering the enter password, which needs to be entered when accessing from another computer, which can be different from the above account password) 3. install dns
Sudo apt-get install bind9
--------------------------------------------------------------------------------
4. Apache must support CGI programs
Sudo apt-get install perl-suid
Sudo apt-get install libapache2-mod-perl2
--------------------------------------------------------------------------------
5. Start to install postfix
Sudo apt-get install postfix
Sudo apt-get install mailx (mail commands can be used in shell to send and receive emails)
--------------------------------------------------------------------------------
6. Install pop3 protocol software
Sudo apt-get install courier-pop
Sudo apt-get install courier-imap
--------------------------------------------------------------------------------
7. install apache
Sudo apt-get install apache2
--------------------------------------------------------------------------------
8. Download openwebmail;
Openwebmail-2.52.tar.gz go to the official website to download http://openwebmail.org/openwebmail/download/release/openwebmail-2.52.tar.gz
1. tar xzvf openwebmail-2.52.tar.gz
2. Decompress openwebmail to the/home/www directory to produce the cgi-bin and data Directories.
3. Copy/var/www/cgi-bin/openwebmail/etc/default/auth_unix.conf to the/etc directory and modify
A. passwdfile_encrypted/etc/shadow
B. passwdmkdb none
4. Create a New dbm. conf file in the/var/www/cgi-bin/openwebmail/etc directory. The content is as follows:
./Etc/dbm. conf
Dbm_ext. pag
Dbmopen_ext none
Dbmopen_haslock no
5. Modify the openwebmail. conf file in the/cgi-bin/openwebmail/etc directory. The content is as follows:
A. mailspooldir/var/spool/mail
B. ow_cgidir/var/www/cgi-bin/openwebmail
C. ow_cgiurl/cgi-bin/openwebmail
D. ow_htmldir/var/www/data/openwebmail
E. ow_htmlurl/data/openwebmail
F. default_language zh_CN.GB2312
G. default_iconset Cool3D. Chinese. Simplified .)
6. install sudo apt-get install perl-suid
Run/var/www/cgi-bin/openwebmail/openwebmail-tool.pl -- init
Modify the/cgi-bin/openwebmail/etc/sessionss attribute to add write permission.
7. Revise the authentication mechanism:
[Root @ test root] # vi/var/www/cgi-bin/openwebmail/auth/auth_unix.pl
# Find:
My $ passwdfile_encrypted = $ conf {passwdfile_encrypted} |/etc/master. passwd;
# Modify:
My $ passwdfile_encrypted =/etc/shadow;
You cannot change the password:
Change the following code.
# My $ passwdmkdb = $ conf {passwdmkdb} |/usr/sbin/pwd_mkdb;
# Modify:
My $ passwdmkdb = none;
Connect to your host: http: // hostname/cgi-bin/openwebmail. pl to view your OpenWebmail.