Try   HackMD

Tutorial Mail i domini Poste.io

En aquest tutorial explicare com crear un mail privat en un domini privat gracies al Poste.io

1.En el server que ens donen:

Pas1:
Anem a https://poste.io/demo i ens creem un domini personal:

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Pas2:
Ens creem un compte email amb poste.io:

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Per accedir al correu creat anem a https://demo.poste.io/webmail

2.En el nostre server (Play-With-Docker per exemple)

Per poder tenir un correu i un domini desde el nostre propi server posem aquestes dues commandes que ens portaran a una web per crear el correu i el domini:

-docker volume create volum_mail_server

-docker run -p 443:443 -e TZ=Europe/Andorra -v volum_mail_server:/data name "surfmailserver" -h "canvia_aquest_domini_o_se_veiem_lany_vinent.noesbroma" -t analogic/poste.io

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

3.En el terminal de una virtual machine debian

Posem les mateixes comandes del apartat 2 en un int qualsevol i despres obrim el navegador i posem el link que obtenim de les commandes que hem posat :

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

4.Creació de Usuaris en el nostre domini

Per crear usuaris al nostre domini utilitzarem la commanda:
curl -v -k -u admin@elmeuprimerdomini.org:noposesaquestapassword -d 'name=nestorisback&email=nestor@elmeuprimerdomini.org&passwordPlaintext=peasovacances'https://10.28.1.100/admin/api/v1/boxes

(Haurem de canviar algunes dades de la commanda per els del nostre domini)

5.Creació de certificats amb mkcert

2.Configuració para instalar mkcert:

2.Instalar el mkcert:

  • mkcert - install

3.Crear certificats amb mkcert:

Posem la commanda:

  • sudo mkcert example.com '*.example.com' localhost 127.0.0.1 ::1
    (on posa example.com el canviem per el nom del nostre domini)

Ara anem a /etc/apache2/sites-available/default-ssl.conf i canvien el que posa en SSLCertificateFile i KeyFile per:

  • SSLCertificateFile: /home/amos/example.com+4.pem
    SSLCertificateKeyFile: /home/amos/example.com+4-key.pem

Despres reiniciem Apache amb systemctl i ja tenim el certificat creat.