Multiserver Setup With Dedicated Web, Email, DNS & MySQL Database Servers On Debian Squeeze With ISPConfig 3 - Page 2
3 Installing The Mail ServerEdit the hosts file and add the IP addresses and hostnames for all servers. The hostnames and IP addresses have to be adjusted to match your setup. vi /etc/hosts 127.0.0.1 localhost 192.168.0.105 web.example.tld 192.168.0.106 mail.example.tld 192.168.0.107 db.example.tld 192.168.0.108 ns1.example.tld 192.168.0.109 ns2.example.tld # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts Set the hostname of the server: echo mail.example.tld > /etc/hostname Run... apt-get update ... to update the apt package database; then run... apt-get upgrade ... to install the latest updates (if there are any). It is a good idea to synchronize the system clock with an NTP (network time protocol) server over the Internet. Simply run... apt-get -y install ntp ntpdate ... and your system time will always be in sync. Install postfix, dovecot and MySQL with one single command: apt-get -y install postfix postfix-mysql postfix-doc mysql-client mysql-server openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d Enter the new password for mysql when requested by the installer and answer the next questions as decsribed below: General type of configuration? <-- Internet site To install amavisd-new, SpamAssassin, and ClamAV, we run: apt-get -y install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl If you want to use mailinglists on your server, then install mailman. This step is optional. mailman requires a apache webserver, so if you dont want to run a apache instance on your mailserver, then dont install mailman. apt-get -y install mailman The apt installer for mailman will ask you then to select the languages for the mailing list. Enable all languages that you want to use for mailman. Next create the "mailman" mailinglist. newlist mailman and enter the email address and new password for the mailinglist administrator. Thats the last step of the mailman install. The next command to install php has to be executed on every server, independently if you installed mailman or not. Then install install the commandline version of PHP to be able to run PHP-based shell scripts for ISPConfig: apt-get -y install php5-cli php5-mysql php5-mcrypt mcrypt Install fail2ban: This is optional but recommended, because the ISPConfig monitor tries to show the log: apt-get install fail2ban To make fail2ban monitor PureFTPd and Dovecot, create the file /etc/fail2ban/jail.local: vi /etc/fail2ban/jail.local
Then create the following filter file: vi /etc/fail2ban/filter.d/dovecot-pop3imap.conf
Restart fail2ban afterwards: /etc/init.d/fail2ban restart Now I will install ISPConfig 3 on this server. To get the download URL of the latest ISPConfig 3 stable release, please visit the ISPConfig website: http://www.ispconfig.org/ispconfig-3/download/ Download the latest ISPConfig 3 stable release: cd /tmp Then start the install script: php -q install.php Select language (en,de) [en]: <-- en Country Name (2 letter code) [AU]: <-- DE (Enter the ISO country code where you live here) Configure Jailkit (y,n) [y]: <-- n Run... rm -f /var/www/ispconfig ... to remove the ISPConfig interface link in the /var/www directory. Clean up the install directories: rm -rf /tmp/ispconfig3_install/install
|



Recent comments
1 day 23 hours ago
2 days 8 hours ago
2 days 10 hours ago
2 days 12 hours ago
2 days 13 hours ago
2 days 15 hours ago
2 days 16 hours ago
2 days 17 hours ago
3 days 9 hours ago
3 days 10 hours ago