Full process of OpenWebMail installation in Ubuntu

Source: Internet
Author: User
Tags install perl
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 enable U Webmail, you can browse emails on any computer anywhere in your 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:


# 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


# 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 see your OpenWebmail ?? BR>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.