https://hub.docker.com/r/mailtrain/mailtrain

bash setup/install-ubuntu1804-https.sh mailtrain.winandoffice.com sbox-mailtrain.winandoffice.com lists.winandoffice.com admin@winandoffice.com


nano /etc/mysql/mariadb.conf.d/60-fix-key-length.cnf

[mysqld]
innodb_file_format = Barracuda
innodb_file_per_table = on
innodb_default_row_format = dynamic
innodb_large_prefix = 1
innodb_file_format_max = Barracuda


service mariadb restart   
sudo systemctl restart mailtrain  

para migrar a 20.04
apt update
apt upgrade
apt dist-upgrade
sudo do-release-upgrade -d
sudo apt install update-manager-core
sudo do-release-upgrade


hay q instalar nodejs

cd ~
curl -sL https://deb.nodesource.com/setup_16.x -o /tmp/nodesource_setup.sh
sudo bash /tmp/nodesource_setup.sh
sudo apt install nodejs
node -v        


nano /etc/mysql/mariadb.conf.d/60-fix-key-length.cnf

[mysqld]
innodb_file_format = Barracuda
innodb_file_per_table = on
innodb_default_row_format = dynamic
innodb_large_prefix = 1
##innodb_file_format_max = Barracuda


service mysql restart
service mailtrain restart

service mysql status
service mailtrain status
---------------------
para instalar iredmail
https://docs.iredmail.org/install.iredmail.on.debian.ubuntu.html

una vez instalado
debemos modficar los puertos del nginx para q no coincidan con el del apache2
yo los modifique al 8080 y 4433

en los ficheros
/ect/nginx/sites-available
00-default-ssl.conf  00-default.conf

service nginx restart
service nginx status


------------------------
creando dkim
nano /etc/amavis/conf.d/50-user
busco la linea

###dkim_key('emailmailtrain.winandoffice.com', 'dkim', '/var/lib/dkim/emailmailtrain.winandoffice.com.pem');
y la comento

adiciono la nueva, para el nuevo dkim por dominio
dkim_key('keyswagen.com', 'dkim', '/var/lib/dkim/keyswagen.com.pem');

creo el nuevo dkim
amavisd-new genrsa /var/lib/dkim/keyswagen.com.pem 2048
chown amavis:amavis /var/lib/dkim/keyswagen.com.pem
chmod 0400 /var/lib/dkim/keyswagen.com.pem

muestro dkim
amavisd-new  showkeys

service amavis restart

copio esto para el dns
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5cHYqavdY+RrdxND1ti2r0+EJeFRFmnG5YppA68bO6pSmMaX44noteP+g1yNMU9bqKx1rPj13mZ0drPv5JubrV+hV+tqJm+vQ1nBnqVnW+PVmM5G96vQQ76hXx65ulFWkgaED4T4ZxKjZArqZjPIsxgrm+iT4k0255Wgn2v+vqcJXsQQCoQo1St0uK90/SVcV/Kf47TKq1Wt7faqlC9c5gxy+lkteZGEYkRQDz1MerBlPxUIERIMxRCJcKuufAoTIlgrabzxCD39JLsZKOhf/ZTBpZPMVYkOSnMXSrBSp4+HGgZXs9KLzC4cVZOlmXpR9S1KUoWS6FjGXDMwHiedZQIDAQAB
 para probar q esta OK
amavisd-new testkeys
TESTING#1 keyswagen.com: dkim._domainkey.keyswagen.com => pass

------------------


https://mailtrain.winandoffice.com:4433/mail/
https://mailtrain.winandoffice.com:4433/iredadmin/
postmaster@emailmailtrain.winandoffice.com
123456a.

https://mailtrain.winandoffice.com/

