nano /etc/hosts 127.0.0.1 localhost 127.0.0.1 ns2.antonini.psc.br ns2 200.98.67.129 ns2.antonini.psc.br ns2 ------------------------------------------------------------- apt-get -y install ntp ntpdate ------------------------------------------------------------- apt-get install -y mariadb-client mariadb-server openssl nano /etc/mysql/mariadb.conf.d/50-server.cnf #bind-address = 127.0.0.1 mysql_secure_installation service mysql restart netstat -tap | grep mysql ------------------------------------------------------------- apt-get install -y apache2 apache2-doc apache2-utils apt-get install -y libapache2-mod-php php7.0 php7.0-common php7.0-gd php7.0-mysql imagemagick libruby libapache2-mod-python php7.0-curl php7.0-zip apt-get install -y phpmyadmin mysql -u root -p CREATE USER 'heinz'@'localhost' IDENTIFIED BY 'senha'; GRANT ALL PRIVILEGES ON *.* TO 'heinz'@'localhost' WITH GRANT OPTION; FLUSH PRIVILEGES; ------------------------------------------------------------- apt-get install -y bind9 dnsutils ------------------------------------------------------------- apt-get install -y proftpd standalone nano /etc/proftpd/proftpd.conf /etc/init.d/proftpd restart ------------------------------------------------------------- Instalação do Citadel sudo apt-get update apt-get install citadel-suite Deixar IP: 0.0.0.0 Método de autenticação: Internal Nome de administrador: admin ou mudar. Senha do administrador / repetir senha Integração com apache: apache2 Porta http: 81 Porta https: 443 Escolher linguagem Se der mensagem de não criar diretório netconfigs, "comandar": sudo mkdir /etc/citadel/netconfigs sudo chown citadel:citadel /etc/citadel/netconfigs sudo service citadel restart Para reconfigurar: /usr/lib/citadel-server/setup Ao reconfigurar, a primeira pergunta é o nome do usuário administrador: vladimir A segunda pergunta é a senha: senha Nas demais é só “teclar” enter. Instalar e configurar o spamassassim, amavisd-new e clamaV sudo apt-get install citadel-suite spamassassin amavisd-new nano /etc/mailname e colocar nele antonini.psc.br editar o arquivo: nano /etc/default/spamassassin mudar ENABLE=0 para ENABLE=1 CRON=1 /etc/init.d/spamassassin start Configurar SSL cd /etc/ssl/citadel mkdir backup mv citadel* backup openssl req -new -nodes -newkey rsa:4096 -days 365 -keyout citadel.key -out citadel.csr Preencher o certificado: BR Parana Curitiba Antonini Website caduceu.antonini.psc.br antonini@antonini.psc.br chmod 600 citadel.key openssl x509 -req -days 1000 -in citadel.csr -signkey citadel.key -out citadel.cer cp -a citadel* /etc/ssl/webcit/ /etc/init.d/citadel restart /etc/init.d/webcit start apt-get install clamav freshclam service clamav-freshclam start systemctl enable clamav-freshclam ou /etc/init.d/clamav-freshclam start /etc/init.d/clamav-freshclam enable Caso retorne esta mensagem de erro: ERROR: /var/log/clamav/freshclam.log is locked by another process sudo service clamav-freshclam stop sudo service clamav-freshclam start e digite novamente freschclam Após concluída a instalação, abrir o painel do citadel-suite clicar em administração, em adicionar o domínio, adicionar o host 127.0.0.1 no spamassassim e no clamav Remover Citadel Server no Raspberry Pi sudo apt-get remove --purge citadel-suite* Apagar os diretórios abaixo: sudo rm -rf /usr/local/citadel sudo rm -rf /usr/local/webcit sudo rm -rf /usr/local/ctdlsupport sudo rm -rf /etc/citadel sudo rm -rf /var/lib/citadel sudo rm -rf /var/spool/citadel sudo rm -rf /usr/bin/citadel sudo rm -rf /etc/ssl/citadel sudo rm -rf /etc/init.d/citadel sudo rm -rf /run/citadel Remover os scripts no Debian Packages dpkg --list |grep -i citadel dpkg -r citadel-client citadel-mta citadel-server citadel-suite citadel-webcit libcitadel3 dpkg --purge citadel-client citadel-mta citadel-server citadel-suite citadel-webcit libcitadel3 sudo apt-get autoremove Apagar a linha no /etc/passwd nano /etc/passwd citadel:x:116:122:Citadel system user,,,:/var/lib/citadel:/bin/false