tech:notes_webmail_roundcube
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| tech:notes_webmail_roundcube [2025/11/14 08:50] – Jean-Baptiste | tech:notes_webmail_roundcube [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes webmail Roundcube | ||
| + | |||
| + | ~~~bash | ||
| + | docker run -ti --rm -p 127.0.0.1: | ||
| + | -e ROUNDCUBEMAIL_DEFAULT_HOST=tls:// | ||
| + | -e ROUNDCUBEMAIL_SMTP_SERVER=smtp.acme.fr \ | ||
| + | -e ROUNDCUBEMAIL_SMTP_PORT=25 \ | ||
| + | roundcube/ | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | docker ps | ||
| + | docker update --restart unless-stopped 22eac34b881c | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | `/ | ||
| + | ~~~nginx | ||
| + | server { | ||
| + | if ($host = mail.acme.fr) { | ||
| + | return 301 https:// | ||
| + | } # managed by Certbot | ||
| + | |||
| + | | ||
| + | listen 80; | ||
| + | listen [::]:80; | ||
| + | server_name mail.acme.fr; | ||
| + | return 301 https:// | ||
| + | |||
| + | | ||
| + | } | ||
| + | |||
| + | server { | ||
| + | #listen 127.0.0.1: | ||
| + | listen 443 ssl; | ||
| + | listen [::]:443 ssl; | ||
| + | |||
| + | server_name mail.acme.fr; | ||
| + | ssl_certificate / | ||
| + | ssl_certificate_key / | ||
| + | ssl_session_timeout 5m; | ||
| + | ssl_prefer_server_ciphers on; | ||
| + | # | ||
| + | ssl_protocols TLSv1.2; | ||
| + | ssl_ciphers ALL: | ||
| + | # | ||
| + | ssl_dhparam / | ||
| + | add_header Strict-Transport-Security max-age=2678400; | ||
| + | |||
| + | #auth_basic " | ||
| + | # | ||
| + | client_max_body_size 20m; | ||
| + | proxy_read_timeout 3600; | ||
| + | |||
| + | |||
| + | location / { | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | } | ||
| + | |||
| + | } | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | # Ajouter le réseau de Docker dans mynetworks | ||
| + | mynetworks = 127.0.0.0/8 [:: | ||
| + | ~~~ | ||
| + | |||
| + | Puis | ||
| + | ~~~bash | ||
| + | postfix reload | ||
| + | ~~~ | ||
| + | |||
| + | Cela permet de pouvoir envoyer des mails à soi-même dans le cas où nous interdisons les mails de " | ||
| + | |||
| + | Voir `smtpd_client_restrictions = permit_mynetworks, | ||
| + | |||
| + | ## Pb | ||
| + | |||
| + | ### Erreur upstream timed out (110: Connection timed out) | ||
| + | |||
| + | ~~~ | ||
| + | 2023/03/23 16:24:33 [error] 20264# | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | #### Solution | ||
| + | |||
| + | ~~~nginx | ||
| + | proxy_read_timeout 3600; | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ### Pb taille des pièces jointes | ||
| + | |||
| + | #### Solution | ||
| + | |||
| + | ~~~nginx | ||
| + | client_max_body_size 20m; | ||
| + | ~~~ | ||
| + | |||
