The Perfect Server - Debian Squeeze (Debian 6.0) With BIND, Dovecot & Nginx [ISPConfig 3] - Page 6

19 Install fail2ban

This is optional but also recommended, because the ISPConfig monitor tries to show the contents of the log file:

apt-get install fail2ban

To make fail2ban monitor PureFTPd and Dovecot create the file /etc/fail2ban/jail.local...

vi /etc/fail2ban/jail.local

... and insert:

[pureftpd]

enabled  = true
port     = ftp
filter   = pureftpd
logpath  = /var/log/syslog
maxretry = 3


[dovecot-pop3imap]

enabled = true
filter = dovecot-pop3imap
action = iptables-multiport[name=dovecot-pop3imap, port="pop3,pop3s,imap,imaps", protocol=tcp]
logpath = /var/log/mail.log
maxretry = 5

Then create the two filter files:

vi /etc/fail2ban/filter.d/pureftpd.conf

Insert:

[Definition]
failregex = .*pure-ftpd: \(.*@<HOST>\) \[WARNING\] Authentication failed for user.*
ignoreregex =

vi /etc/fail2ban/filter.d/dovecot-pop3imap.conf

Insert:

[Definition]
failregex = (?: pop3-login|imap-login): .*(?:Authentication failure|Aborted login \(auth failed|Aborted login \(tried to use disabled|Disconnected \(auth failed|Aborted login \(\d+ authentication attempts).*rip=(?P<host>\S*),.*
ignoreregex =

Then restart fail2ban:

/etc/init.d/fail2ban restart

 

20 Install SquirrelMail (Optional)

This step is entirely optional. If you would like to install Roundcube instead then skip this step and refer to http://www.howtoforge.com/how-to-install-roundcube-0.7-for-ispconfig-3-on-debian-squeeze. You can do so after installing ISPConfig 3. To install the SquirrelMail webmail client just run:

apt-get install squirrelmail

... and configure SquirrelMail:

squirrelmail-configure

We must tell SquirrelMail that we are using Dovecot-IMAP/-POP3:

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 on
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
    gmail       = IMAP access to Google mail (Gmail) accounts

    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
    gmail       = IMAP access to Google mail (Gmail) accounts

    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 on
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 on
S   Save data
Q   Quit

Command >>
 <-- Q

Now you can find SquirrelMail in the /usr/share/squirrelmail/ directory.

After you have installed ISPConfig 3, you can access SquirrelMail as follows:

The ISPConfig apps vhost on port 8081 for nginx comes with a SquirrelMail configuration, so you can use http://server1.example.com:8081/squirrelmail or http://server1.example.com:8081/webmail to access SquirrelMail.

If you want to use a /webmail or /squirrelmail alias that you can use from your web sites, this is a bit more complicated than for Apache because nginx does not support global aliases. Therefore you have to define the aliases for each vhost from which you want to access SquirrelMail.

To do this, paste the following into the nginx Directives field on the Options tab of the web site in ISPConfig:

        location /squirrelmail {
               root /usr/share/;
               index index.php index.html index.htm;
               location ~ ^/squirrelmail/(.+\.php)$ {
                       try_files $uri =404;
                       root /usr/share/;
                       fastcgi_pass 127.0.0.1:9000;
                       fastcgi_index index.php;
                       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                       include /etc/nginx/fastcgi_params;
                       fastcgi_buffer_size 128k;
                       fastcgi_buffers 256 4k;
                       fastcgi_busy_buffers_size 256k;
                       fastcgi_temp_file_write_size 256k;
                       fastcgi_intercept_errors on;
               }
               location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                       root /usr/share/;
               }
        }
        location /webmail {
               rewrite ^/* /squirrelmail last;
        }

If you use https instead of http for your vhost, you should add the line fastcgi_param HTTPS on; to your SquirrelMail configuration like this:

        location /squirrelmail {
               root /usr/share/;
               index index.php index.html index.htm;
               location ~ ^/squirrelmail/(.+\.php)$ {
                       try_files $uri =404;
                       root /usr/share/;
                       fastcgi_pass 127.0.0.1:9000;
                       fastcgi_param HTTPS on; # <-- add this line
                       fastcgi_index index.php;
                       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                       include /etc/nginx/fastcgi_params;
                       fastcgi_buffer_size 128k;
                       fastcgi_buffers 256 4k;
                       fastcgi_busy_buffers_size 256k;
                       fastcgi_temp_file_write_size 256k;
                       fastcgi_intercept_errors on;
               }
               location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                       root /usr/share/;
               }
        }
        location /webmail {
               rewrite ^/* /squirrelmail last;
        }

If you use both http and https for your vhost you should have added the relevant section into /etc/nginx/nginx.conf while setting up phpMyAdmin earlier in the tutorial.

Go to the nginx Directives field again, and instead of fastcgi_param HTTPS on; you add the line fastcgi_param HTTPS $fastcgi_https; so that you can use SquirrelMail for both http and https requests:

        location /squirrelmail {
               root /usr/share/;
               index index.php index.html index.htm;
               location ~ ^/squirrelmail/(.+\.php)$ {
                       try_files $uri =404;
                       root /usr/share/;
                       fastcgi_pass 127.0.0.1:9000;
                       fastcgi_param HTTPS $fastcgi_https; # <-- add this line
                       fastcgi_index index.php;
                       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                       include /etc/nginx/fastcgi_params;
                       fastcgi_buffer_size 128k;
                       fastcgi_buffers 256 4k;
                       fastcgi_busy_buffers_size 256k;
                       fastcgi_temp_file_write_size 256k;
                       fastcgi_intercept_errors on;
               }
               location ~* ^/squirrelmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                       root /usr/share/;
               }
        }
        location /webmail {
               rewrite ^/* /squirrelmail last;
        }
Share this page:

21 Comment(s)

Add comment

Comments

From: Anonymous at: 2012-11-21 22:05:27

New downloadlink for Debian

AMD64(netinstall)
http://cdimage.debian.org/debian-cd/6.0.6/amd64/iso-cd/debian-6.0.6-amd64-netinst.iso

I386(netinstall)
http://cdimage.debian.org/debian-cd/6.0.6/i386/iso-cd/debian-6.0.6-i386-netinst.iso

From: Anonymous at: 2013-03-03 08:07:27

 When formatting, don't make /home a separate, or at least not predominant, partition.  /var is where ISPConfig3 stores the user-data.

For those who may be used to other panels such as, well every other one made, you're probably used to wanting to load /home as a separate and primary partition since that's where all of the user data is stored.  With ISPConfig3, all of the user's web docs are in the /var/www folder such as on a traditional non-panel setup.

From: Benjamin Bouvier at: 2012-04-24 12:10:36

Some sources were missing in my /etc/apt/source.list, so I had to add some debian's repositories:

## squeeze
deb http://ftp.fr.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ squeeze main contrib non-free
## squeeze multimedia
deb http://www.debian-multimedia.org squeeze main non-free
deb-src http://mirror.home-dn.net/debian-multimedia squeeze main
# squeeze security
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
# squeeze update
deb http://ftp.fr.debian.org/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ squeeze-updates main contrib non-free

And then the Dotdeb repository
# Dotdeb repository
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all

Instead of it I couldn't synchronize The System Clock,install Mysql, etc

From: Lee Peterson at: 2012-05-09 18:44:50

Shouldn't /etc/hosts read as:

127.0.0.1       localhost   localhost.localdomain
192.168.0.100   server1.example.com     server1

From: Anonymous at: 2012-07-17 20:32:32

Get:1 http://ftp.us.debian.org/debian/ squeeze/main mysql-common all 5.1.49-3 [70.9 kB] Get:2 http://ftp.us.debian.org/debian/ squeeze/main libnet-daemon-perl all 0.43-1 [46.6 kB] Get:3 http://ftp.us.debian.org/debian/ squeeze/main libplrpc-perl all 0.2020-2 [36.0 kB] Get:4 http://ftp.us.debian.org/debian/ squeeze/main libdbi-perl amd64 1.612-1 [883 kB] Get:5 http://ftp.us.debian.org/debian/ squeeze/main libmysqlclient16 amd64 5.1.49-3 [1985 kB] Get:6 http://ftp.us.debian.org/debian/ squeeze/main libdbd-mysql-perl amd64 4.016-1 [140 kB] Get:7 http://ftp.us.debian.org/debian/ squeeze/main mysql-client-5.1 amd64 5.1.49-3 [10.1 MB] Get:8 http://ftp.us.debian.org/debian/ squeeze/main mysql-server-core-5.1 amd64 5.1.49-3 [4124 kB] Get:9 http://ftp.us.debian.org/debian/ squeeze/main mysql-server-5.1 amd64 5.1.49-3 [6598 kB] Get:10 http://ftp.us.debian.org/debian/ squeeze/main libgpg-error0 amd64 1.6-1 [43.9 kB] Get:11 http://ftp.us.debian.org/debian/ squeeze/main libgcrypt11 amd64 1.4.5-2 [282 kB] Err http://ftp.us.debian.org/debian/ squeeze/main libtasn1-3 amd64 2.7-1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main libgnutls26 amd64 2.8.6-1 404 Not Found [IP: 64.50.233.100 80] Get:12 http://ftp.us.debian.org/debian/ squeeze/main libsasl2-2 amd64 2.1.23.dfsg1-7 [115 kB] Err http://ftp.us.debian.org/debian/ squeeze/main libldap-2.4-2 amd64 2.4.23-7 404 Not Found [IP: 64.50.233.100 80] Get:13 http://ftp.us.debian.org/debian/ squeeze/main lsof amd64 4.81.dfsg.1-1 [282 kB] Get:14 http://ftp.us.debian.org/debian/ squeeze/main mime-support all 3.48-1 [34.2 kB] Get:15 http://ftp.us.debian.org/debian/ squeeze/main python2.6-minimal amd64 2.6.6-8+b1 [1520 kB] Get:16 http://ftp.us.debian.org/debian/ squeeze/main libexpat1 amd64 2.0.1-7 [137 kB] Get:17 http://ftp.us.debian.org/debian/ squeeze/main python2.6 amd64 2.6.6-8+b1 [2455 kB] Err http://ftp.us.debian.org/debian/ squeeze/main python-minimal all 2.6.6-3+squeeze5 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main python all 2.6.6-3+squeeze5 404 Not Found [IP: 64.50.233.100 80] Get:18 http://ftp.us.debian.org/debian/ squeeze/main python-support all 1.0.10 [33.0 kB] Get:19 http://ftp.us.debian.org/debian/ squeeze/main ucf all 3.0025+nmu1 [69.6 kB] Get:20 http://ftp.us.debian.org/debian/ squeeze/main binutils amd64 2.20.1-16 [3993 kB] Err http://ftp.us.debian.org/debian/ squeeze/main libpq5 amd64 8.4.5-0squeeze2 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main openssl amd64 0.9.8o-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main dovecot-common amd64 1:1.2.15-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main dovecot-imapd amd64 1:1.2.15-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main dovecot-pop3d amd64 1:1.2.15-4 404 Not Found [IP: 64.50.233.100 80] Get:21 http://ftp.us.debian.org/debian/ squeeze/main getmail4 all 4.20.0-1 [170 kB] Get:22 http://ftp.us.debian.org/debian/ squeeze/main libhtml-template-perl all 2.9-2 [65.9 kB] Get:23 http://ftp.us.debian.org/debian/ squeeze/main libsasl2-modules amd64 2.1.23.dfsg1-7 [155 kB] Get:24 http://ftp.us.debian.org/debian/ squeeze/main mysql-client all 5.1.49-3 [65.2 kB] Get:25 http://ftp.us.debian.org/debian/ squeeze/main mysql-server all 5.1.49-3 [65.4 kB] Get:26 http://ftp.us.debian.org/debian/ squeeze/main ssl-cert all 1.0.28 [14.8 kB] Err http://ftp.us.debian.org/debian/ squeeze/main postfix amd64 2.7.1-1 404 Not Found [IP: 64.50.233.100 80] Get:27 http://ftp.us.debian.org/debian/ squeeze/main rkhunter all 1.3.6-4 [222 kB] Err http://ftp.us.debian.org/debian/ squeeze/main sudo amd64 1.7.4p4-2.squeeze.1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main postfix-doc all 2.7.1-1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main postfix-mysql amd64 2.7.1-1 404 Not Found [IP: 64.50.233.100 80] Get:28 http://ftp.us.debian.org/debian/ squeeze/main unhide amd64 20100201-1 [822 kB] Fetched 34.5 MB in 3s (9489 kB/s) Failed to fetch http://ftp.us.debian.org/debian/pool/main/libt/libtasn1-3/libtasn1-3_2.7-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/g/gnutls26/libgnutls26_2.8.6-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/o/openldap/libldap-2.4-2_2.4.23-7_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/python-defaults/python-minimal_2.6.6-3+squeeze5_all.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/python-defaults/python_2.6.6-3+squeeze5_all.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postgresql-8.4/libpq5_8.4.5-0squeeze2_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/o/openssl/openssl_0.9.8o-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/d/dovecot/dovecot-common_1.2.15-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/d/dovecot/dovecot-imapd_1.2.15-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/d/dovecot/dovecot-pop3d_1.2.15-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postfix/postfix_2.7.1-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/s/sudo/sudo_1.7.4p4-2.squeeze.1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postfix/postfix-doc_2.7.1-1_all.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postfix/postfix-mysql_2.7.1-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? root@sekaihost:~# apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d sudo Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: dovecot-common libdbd-mysql-perl libdbi-perl libexpat1 libgcrypt11 libgnutls26 libgpg-error0 libhtml-template-perl libldap-2.4-2 libmysqlclient16 libnet-daemon-perl libplrpc-perl libpq5 libsasl2-2 libsasl2-modules libtasn1-3 lsof mime-support mysql-client-5.1 mysql-common mysql-server-5.1 mysql-server-core-5.1 python python-minimal python-support python2.6 python2.6-minimal ssl-cert ucf unhide Suggested packages: binutils-doc rng-tools gnutls-bin libipc-sharedcache-perl libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql libsasl2-modules-gssapi-mit libsasl2-modules-gssapi-heimdal libterm-readkey-perl tinyca ca-certificates procmail postfix-pgsql postfix-ldap postfix-pcre sasl2-bin resolvconf postfix-cdb mail-reader ufw python-doc python-tk python-profiler python2.6-doc python2.6-profiler binfmt-support bsd-mailx tripwire openssl-blacklist The following NEW packages will be installed: binutils dovecot-common dovecot-imapd dovecot-pop3d getmail4 libdbd-mysql-perl libdbi-perl libexpat1 libgcrypt11 libgnutls26 libgpg-error0 libhtml-template-perl libldap-2.4-2 libmysqlclient16 libnet-daemon-perl libplrpc-perl libpq5 libsasl2-2 libsasl2-modules libtasn1-3 lsof mime-support mysql-client mysql-client-5.1 mysql-common mysql-server mysql-server-5.1 mysql-server-core-5.1 openssl postfix postfix-doc postfix-mysql python python-minimal python-support python2.6 python2.6-minimal rkhunter ssl-cert sudo ucf unhide 0 upgraded, 42 newly installed, 0 to remove and 0 not upgraded. Need to get 13.1 MB/47.6 MB of archives. After this operation, 125 MB of additional disk space will be used. Do you want to continue [Y/n]? y Err http://ftp.us.debian.org/debian/ squeeze/main libtasn1-3 amd64 2.7-1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main libgnutls26 amd64 2.8.6-1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main libldap-2.4-2 amd64 2.4.23-7 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main python-minimal all 2.6.6-3+squeeze5 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main python all 2.6.6-3+squeeze5 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main libpq5 amd64 8.4.5-0squeeze2 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main openssl amd64 0.9.8o-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main dovecot-common amd64 1:1.2.15-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main dovecot-imapd amd64 1:1.2.15-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main dovecot-pop3d amd64 1:1.2.15-4 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main postfix amd64 2.7.1-1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main sudo amd64 1.7.4p4-2.squeeze.1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main postfix-doc all 2.7.1-1 404 Not Found [IP: 64.50.233.100 80] Err http://ftp.us.debian.org/debian/ squeeze/main postfix-mysql amd64 2.7.1-1 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/libt/libtasn1-3/libtasn1-3_2.7-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/g/gnutls26/libgnutls26_2.8.6-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/o/openldap/libldap-2.4-2_2.4.23-7_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/python-defaults/python-minimal_2.6.6-3+squeeze5_all.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/python-defaults/python_2.6.6-3+squeeze5_all.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postgresql-8.4/libpq5_8.4.5-0squeeze2_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/o/openssl/openssl_0.9.8o-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/d/dovecot/dovecot-common_1.2.15-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/d/dovecot/dovecot-imapd_1.2.15-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/d/dovecot/dovecot-pop3d_1.2.15-4_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postfix/postfix_2.7.1-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/s/sudo/sudo_1.7.4p4-2.squeeze.1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postfix/postfix-doc_2.7.1-1_all.deb 404 Not Found [IP: 64.50.233.100 80] Failed to fetch http://ftp.us.debian.org/debian/pool/main/p/postfix/postfix-mysql_2.7.1-1_amd64.deb 404 Not Found [IP: 64.50.233.100 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

From: at: 2013-04-19 16:30:29

NginX has his own repo.

http://nginx.org/en/linux_packages.html#stable

For Debian replace codename with Debian distribution codename, and append the following to the end of the/etc/apt/sources.list file:

deb http://nginx.org/packages/debian/ codename nginx 

deb-src http://nginx.org/packages/debian/ codename nginx 

 For Debian/Ubuntu then run the following commands:

apt-get update
apt-get install nginx

 

From: Anonymous at: 2012-08-07 16:38:11

Couldn't find package php5-fpm ... seems like no longer maintained repo. 

From: Anonymous at: 2012-08-10 02:38:11

Add: deb http://php53.dotdeb.org squeeze all

From: Giuseppe at: 2012-11-11 04:59:54

You don't have writed the location for "fastcgi_param HTTPS on". In which file i have to add this code?

"If you use https instead of http for your vhost, you should add the line fastcgi_param HTTPS on, to your phpMyAdmin configuration like this"

From: MiLk at: 2012-11-11 11:01:21

If you install the package "php5" at the same time than "php5-fpm", apache won't be installed with phpmyadmin.

From: Giuseppe at: 2012-11-12 14:47:58

Hi,

after i insert this command "update-rc.d -f spamassassin remove" the Debian 6.0.6 Squeeze give me this error "update-rc.d: using dependency based boot sequencing".

 How to solve this issue?

From: at: 2013-02-21 08:53:39

When i do this: insserv -r apache2

I get this error:

insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot

And when i then try to start nginx with: /etc/init.d/nginx start

I get this error:

Restarting nginx: nginxnginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()

From: Wallis Short at: 2013-04-15 13:03:51

When I carried out the command

/etc/init.d/nginx start

I received an error

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed

 This means that IPv6 only is enabled. To correct this error edit the file /etc/nginx/sites-enabled/default

vi /etc/nginx/sites-enabled/default

and comment out (or delete) the following line.

listen [::]:80 default ipv6only=on; ## listen for ipv6
 
This should work when you do the restart.

 

From: at: 2012-04-18 15:40:20

Installation of Jailkit doesn't work for me. I noticed you forgot to add a line `cd ..` so that the .deb package can be found and installed.

From: at: 2012-06-11 11:30:24

The following must be corrected in the filter:

action = iptables-multiport[name=dovecot-pop3imap, port="pop3,pop3s,imap,imaps", protocol=tcp] 

:)

From: Ensale at: 2012-04-18 18:44:31

I tried this.

Before started system was at 60MB memory used after I tried this configuration: http://www.lowendbox.com/blog/wordpress-cheap-vps-lowendscript/

I spent 5 hours trying to set it up. Due to: lack of knowledge about linux.

 Then... finally got ISPConfig 3 up and running, realising that memory used: 150MB

 Start to cry. My server is only 256MB/512MB can this be the end?

 Tried to get rid of postfix, and ... boom! 200MB used. php5-fpm com up with 20 processes from web1 user, which I have no ideas where from:

Then I tried to removed all those installed packages... still 95MB memory used. This time I really freak out. Couldn't find a better way to format the debian system. So I had to contact support. Hofully they will do something.

From: Anonymous at: 2012-06-17 05:03:26

Without any offense: what did you expect? A webserver will not run out of thin air, same goes for the mailserver, clamav, etc...

Basically you should ask yourself if you really need your own webserver, if so you should get one with more ram (1 GB might do, if you're not hosting many sites).

Wordpress and friends are also quite hungry on the RAM, as such you won't be able to host many sites with such a low amount of RAM.

 Your server is probably more suited as dedicated mailserver/irc server, etc...

 

From: Anonymous at: 2012-09-10 03:26:19

Some people want everything for nothing.

 

From: Chris P at: 2012-09-05 22:53:47

I found that in addition to the steps under 21.1 I also had to uncomment the following section in /etc/postfix/master.cf in order to get SSLTLS to work.

smtps     inet  n       -       -       -       -       smtpd
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING

 

Note besides; note that there's two section 22.1,... I was referring to the first one.

 

From: Dragos at: 2013-04-15 09:09:11

Thanks again for the tutorial, great work but i have a problem after installation that i can't figure it out.

When i try to acces IspConfig index page i get a 403 Forbidden Page.

 My error log is :

2013/04/15 10:17:57 [error] 3187#0: *17 "/usr/local/ispconfig/interface/web/index.php" is forbidden (13: Permission denied), client: 192.168.0.52, server: _, request: "GET / HTTP/1.1", host: "192.168.0.253:8080"
 

From: XAKEPEHOK at: 2013-10-08 17:22:31

Try to set user directive in /etc/nginx/nginx.conf from nginx to www-data