Installatie blog

From Hobbynet Admin Wiki
Jump to navigation Jump to search

Installatie mailserver

Uitgaande van een situatie van herbouw waarbij de Postfix(admin), Dovecot config van 16.04 nog beschikbaar is.

apt-get install aptitude
apt-get install postfix postfix-mysql postfix-pcre postfix-doc
apt-get install dovecot-core dovecot-imapd dovecot-lmtpd dovecot-mysql dovecot-pop3d dovecot-sieve
apt-get install opendkim opendkim-tools

Haal de werkende config op van de al werkende mailserver (mail-lb1 18.04) of van de locatie met de gebackupte bestanden van de oude mailserver.

cd /etc/postfix
scp -pr * mail-lb2-int.hobby.nl:/etc/postfix
cd /etc/postfixadmin
scp -pr * mail-lb2-int.hobby.nl:/etc/postfixadmin
cd /etc/dovecot
scp -pr * mail-lb2-int.hobby.nl:/etc/dovecot
cd /etc/opendkim
scp -pr * mail-lb2-int.hobby.nl:/etc/opendkim
scp -pr ../opendkim.conf mail-lb2-int.hobby.nl:/etc/opendkim.conf

Maak de user vmail aan.

/etc/passwd: vmail:x:5000:5000::/home/vmail/:/bin/sh
/etc/group : vmail:x:5000:
/etc/shadow: vmail:!:14466:0:99999:7:::

Installeer amavis-new, spamassassin, clamav

apt-get -y install amavisd-new spamassassin clamav clamav-daemon 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 postgrey

Apache2

apt-get -y install apache2 apache2-doc apache2-utils libapache2-mod-php php7.2 php7.2-common php7.2-gd php7.2-mysql php7.2-imap phpmyadmin php7.2-cli php7.2-cgi libapache2-mod-fcgid apache2-suexec-pristine php-pear mcrypt  imagemagick libruby libapache2-mod-python php7.2-curl php7.2-intl php7.2-pspell php7.2-recode php7.2-sqlite3 php7.2-tidy php7.2-xmlrpc php7.2-xsl memcached php-memcache php-imagick php-gettext php7.2-zip php7.2-mbstring php-soap php7.2-soap
a2enmod suexec rewrite ssl actions include cgi

Create file to mittgate HTTPOXI 
vi /etc/apache2/conf-available/httpoxy.conf

<IfModule mod_headers.c>
    RequestHeader unset Proxy early
</IfModule>