The Perfect Server - CentOS 5.5 x86_64 [ISPConfig 3] - Page 6

22 Install SquirrelMail

To install the SquirrelMail webmail client, run...

yum install squirrelmail

... and restart Apache:

/etc/init.d/httpd restart

Then configure SquirrelMail:

/usr/share/squirrelmail/config/conf.pl

We must tell SquirrelMail that we are using Dovecot:

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages

D.  Set pre-defined settings for specific IMAP servers

C   Turn color off
S   Save data
Q   Quit

Command >>
 <-- D


SquirrelMail Configuration : Read: config.php
---------------------------------------------------------
While we have been building SquirrelMail, we have discovered some
preferences that work better with some servers that don't work so
well with others.  If you select your IMAP server, this option will
set some pre-defined settings for that server.

Please note that you will still need to go through and make sure
everything is correct.  This does not change everything.  There are
only a few settings that this will change.

Please select your IMAP server:
    bincimap    = Binc IMAP server
    courier     = Courier IMAP server
    cyrus       = Cyrus IMAP server
    dovecot     = Dovecot Secure IMAP server
    exchange    = Microsoft Exchange IMAP server
    hmailserver = hMailServer
    macosx      = Mac OS X Mailserver
    mercury32   = Mercury/32
    uw          = University of Washington's IMAP server

    quit        = Do not change anything
Command >>
 <-- dovecot


SquirrelMail Configuration : Read: config.php
---------------------------------------------------------
While we have been building SquirrelMail, we have discovered some
preferences that work better with some servers that don't work so
well with others.  If you select your IMAP server, this option will
set some pre-defined settings for that server.

Please note that you will still need to go through and make sure
everything is correct.  This does not change everything.  There are
only a few settings that this will change.

Please select your IMAP server:
    bincimap    = Binc IMAP server
    courier     = Courier IMAP server
    cyrus       = Cyrus IMAP server
    dovecot     = Dovecot Secure IMAP server
    exchange    = Microsoft Exchange IMAP server
    hmailserver = hMailServer
    macosx      = Mac OS X Mailserver
    mercury32   = Mercury/32
    uw          = University of Washington's IMAP server

    quit        = Do not change anything
Command >> dovecot

              imap_server_type = dovecot
         default_folder_prefix = <none>
                  trash_folder = Trash
                   sent_folder = Sent
                  draft_folder = Drafts
            show_prefix_option = false
          default_sub_of_inbox = false
show_contain_subfolders_option = false
            optional_delimiter = detect
                 delete_folder = false

Press any key to continue...
<-- press a key


SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages

D.  Set pre-defined settings for specific IMAP servers

C   Turn color off
S   Save data
Q   Quit

Command >>
 <--S


SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages

D.  Set pre-defined settings for specific IMAP servers

C   Turn color off
S   Save data
Q   Quit

Command >>
 <--Q

One last thing we need to do is modify the file /etc/squirrelmail/config_local.php and comment out the $default_folder_prefix variable - if you don't do this, you will see the following error message in SquirrelMail after you've logged in: Query: CREATE "Sent" Reason Given: Invalid mailbox name.

vi /etc/squirrelmail/config_local.php
<?php
/**
 * Local config overrides.
 *
 * You can override the config.php settings here.
 * Don't do it unless you know what you're doing.
 * Use standard PHP syntax, see config.php for examples.
 *
 * @copyright &copy; 2002-2006 The SquirrelMail Project Team
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @version $Id: config_local.php,v 1.2 2006/07/11 03:33:47 wtogami Exp $
 * @package squirrelmail
 * @subpackage config
 */
//$default_folder_prefix                = '';
?>

Now you can type in http://server1.example.com/webmail or http://192.168.0.100/webmail in your browser to access SquirrelMail.

 

23 Install ISPConfig 3

To install ISPConfig 3 from the latest released version, do this:

cd /tmp
wget http://downloads.sourceforge.net/ispconfig/ISPConfig-3.0.2.1.tar.gz?use_mirror=
tar xvfz ISPConfig-3.0.2.1.tar.gz
cd ispconfig3_install/install/

(Replace ISPConfig-3.0.2.1.tar.gz with the latest version.)

The next step is to run

php -q install.php

This will start the ISPConfig 3 installer:

[[email protected] install]# php -q install.php


--------------------------------------------------------------------------------
 _____ ___________   _____              __ _
|_   _/  ___| ___ \ /  __ \            / _(_)
  | | \ `--.| |_/ / | /  \/ ___  _ __ | |_ _  __ _
  | |  `--. \  __/  | |    / _ \| '_ \|  _| |/ _` |
 _| |_/\__/ / |     | \__/\ (_) | | | | | | | (_| |
 \___/\____/\_|      \____/\___/|_| |_|_| |_|\__, |
                                              __/ |
                                             |___/
--------------------------------------------------------------------------------


>> Initial configuration

Operating System: Redhat or compatible, unknown version.

    Following will be a few questions for primary configuration so be careful.
    Default values are in [brackets] and can be accepted with <ENTER>.
    Tap in "quit" (without the quotes) to stop the installer.


Select language (en,de) [en]:
 <-- ENTER

Installation mode (standard,expert) [standard]: <-- ENTER

Full qualified hostname (FQDN) of the server, eg server1.domain.tld  [server1.example.com]: <-- ENTER

MySQL server hostname [localhost]: <-- ENTER

MySQL root username [root]: <-- ENTER

MySQL root password []: <-- yourrootsqlpassword

MySQL database to create [dbispconfig]: <-- ENTER

MySQL charset [utf8]: <-- ENTER

Generating a 2048 bit RSA private key
......+++
.................+++
writing new private key to 'smtpd.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]:
 <-- ENTER
State or Province Name (full name) [Berkshire]: <-- ENTER
Locality Name (eg, city) [Newbury]: <-- ENTER
Organization Name (eg, company) [My Company Ltd]: <-- ENTER
Organizational Unit Name (eg, section) []: <-- ENTER
Common Name (eg, your name or your server's hostname) []: <-- ENTER
Email Address []: <-- ENTER
Configuring Jailkit
Configuring SASL
Configuring PAM
Configuring Dovecot
Configuring Spamassassin
Configuring Amavisd
Configuring Getmail
Configuring Pureftpd
Configuring BIND
Configuring Apache
Configuring vlogger
Configuring Apps vhost
Configuring Firewall
Installing ISPConfig
ISPConfig Port [8080]:
 <-- ENTER

Configuring DBServer
Installing Crontab
no crontab for root
no crontab for getmail
Restarting services ...
Stopping MySQL:                                            [  OK  ]
Starting MySQL:                                            [  OK  ]
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]
Stopping saslauthd:                                        [FAILED]
Starting saslauthd:                                        [  OK  ]
Shutting down Mail Virus Scanner (amavisd):                [FAILED]
Starting Mail Virus Scanner (amavisd):                     [  OK  ]
Stopping Dovecot Imap:                                     [  OK  ]
If you have trouble with authentication failures,
enable auth_debug setting. See http://wiki.dovecot.org/WhyDoesItNotWork
This message goes away after the first successful login.
Starting Dovecot Imap:                                     [  OK  ]
Stopping httpd:                                            [  OK  ]
[Tue May 25 18:15:57 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
Starting httpd:                                            [  OK  ]
Stopping pure-ftpd:                                        [  OK  ]
Starting pure-ftpd:                                        [  OK  ]
Installation completed.
[[email protected] install]#

The installer automatically configures all underlying services, so no manual configuration is needed.

Afterwards you can access ISPConfig 3 under http://server1.example.com:8080/ or http://192.168.0.100:8080/. Log in with the username admin and the password admin (you should change the default password after your first login):

The system is now ready to be used.

 

23.1 ISPConfig 3 Manual

 

Share this page:

15 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Phillip Vance

Does this tutorial (The Perfect Server - CentOS 5.5 x86_64 [ISPConfig 3]) work for the 32bit version of CentOS

By: Krissie

It appears to work - just replace all instances of x86_64 in the various urls and filenames to i386

By: bkraul

Also make sure that on step 10 - Dovecot, you do not do the following step:

rm -fr /usr/lib/dovecot/
ln -s /usr/lib64/dovecot/ /usr/lib/dovecot

By: MS

On i386 system step 10 is :
ln -sf /usr/lib/dovecot

 MS :)

By: Marcelo Gondim
By: James Tan

How about doing this?

 ln -s /var/named/chroot/etc/named.conf* /etc/

 
 

By: Arno

same same..

I followed the howto line by line, but bind does not record the domains. they are mentioned in ispconfig, but the zone is empty.

after ln -s or cp of the /etc/named.conf.local to /var/named/chroot/etc/

 then bind see all, but does not start because a lack of ttl.

after removing this file/link all works, but no local domainlookup..and no zones (except rootzone)

help?!

 tnx..

 

arno

By: Hans van Zijl

If jou are installing ISPconfig on a VM which is running on Hyper-V you might run into problems with the firewall which is used by ISPconfig.

This is the case when you install the Linux Integration components available from Microsoft. The problem is that the synthetic network adapters installed by the integration components do not get an interface name beginning with 'eth'.

-> The Bastille firewall script explicitly calls for 'eth+' interfaces.

You have to edit /etc/Bastille/bastille-firewall.cfg.

-> PUBLIC_IFCES="eth+ ppp+ slip+ venet+"

should be changed into

-> PUBLIC_IFCES="seth+ ppp+ slip+ venet+"

By: Anonymous

update to step 23

cd /tmp
wget http://downloads.sourceforge.net/ispconfig/ISPConfig-3.0.2.2.tar.gz?use_mirror=
tar xvfz ISPConfig-3.0.2.2.tar.gz
cd ispconfig3_install/install/

 

By: Anonymous

very good manual. many thanks all

By: whopsii

i followed all the step ultra carefully since i am a novice.

it was a hilarious moment when i saw my server working just like the last page shown.

then i use command  " shutdown -r now " to restart my server.

then problem starting to exist. i cant open my server web page and after doing some research, i found this problem

 "  Starting httpd: Warning: DocumentRoot [/var/www/clients/client1/web2/web] does not exist
httpd: bad user name web2 "

and something message like "failed" and then i found out that i cant start my httpd.

any clue from the expert around here.

thanks.

By: Skyler Sully

Hey whopsii,

 You probably figured this out--but you need to configure apache (httpd) to:

  • Run on boot (use /sbin/service --levels 235 httpd on)
  • Accessible through firewall (type in 'setup' command and go to firewall configuration)

When you restarted your computer, you stopped the service, but since it wasn't configured to come back up--there you go.

 If that doesn't work, it could be something else, but that's where I would start.

By: mr.tim

Hello, and thank you for this great tutorial.

It works perfect, from page 1 to the last. It's really the perfect server :).

I was thinking about a solution, regarding the 25 port, that is blocking by ISP's  i found'it but i don't now how to set up. Maybe you can help me please.

Now, i host different domains on isp server, all o them with email service. The email service works on 25 port. If a client connect with Outlook to chek his emails but his ISP blocks the 25 port, i want him to have an alternative. Also if it connect with a modem, that by default the modem ip, is see like makeing spam, i  want a solution that if he change de smtp port from 25 to another, the emails will not be checked for spam, and the spamhaus message will not be seen by the client.

I think about a solution, maybe you have de programing codes to makeit work, or maybe already exist a topic to resolve this. I din'd found it.

So...let's setup in the email client, for example Outlook, the SMTP port from 25, to lets say, 35000, so that all connections are made on this port.

Now in the server, we setup a port, the same port, 35000, to listen all the traffic that comes. And if finds a email traffic relative to a domain that it hosts, take that email and deliver without cheking for spam. This is a solution for the clients that connect with a modem, 3g or adsl, or for the clients that connects from an ISP that block 25 port.

I use centos 5.5 x86_64 and isp config 3. 

Can you help me wiht this, i must say im novice at this chapter but i learn very fast.

 

Thank you!

By: Tserts

Unbelievable! Level 1 VPS Hostgator users need to follow this. I was at a loss initially and this helped me get started at last!

Thank you again for the time you took to save me from jumping off my balcony.

By:

Hi,

i had followed all above step to install squirrel mail and ispconfig

http://trade.sarthi.net/webmail/src/login.php

username : [email protected]

password : anupam

this is write password but still not able to login in webmail

SuirrelMail version 1.4.8-5.el5.centos.13
By the SquirrelMail Project Team

ERROR
Unknown user or password incorrect.

 

i think some configuration . please help me to resolve this issue

Thanks in Advance