tech:draft-monter-son-serveur-mail-sous-debian
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:draft-monter-son-serveur-mail-sous-debian [2025/06/02 15:30] – Jean-Baptiste | tech:draft-monter-son-serveur-mail-sous-debian [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Monter son serveur mail sous Debian | ||
| + | |||
| + | Voir [[https:// | ||
| + | |||
| + | Tester la conf : https:// | ||
| + | |||
| + | Voir : https:// | ||
| + | |||
| + | |||
| + | ## Configuration du serveur SMTP Postfix | ||
| + | |||
| + | serv1 | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | # See / | ||
| + | |||
| + | |||
| + | # Debian specific: | ||
| + | # line of that file to be used as the name. The Debian default | ||
| + | # is / | ||
| + | #myorigin = / | ||
| + | |||
| + | # | ||
| + | smtpd_banner = Every illegal access will be referred to the appropriate authorities and the CERT. | ||
| + | biff = no | ||
| + | |||
| + | # appending .domain is the MUA's job. | ||
| + | append_dot_mydomain = no | ||
| + | |||
| + | # Uncomment the next line to generate " | ||
| + | # | ||
| + | |||
| + | readme_directory = no | ||
| + | |||
| + | # TLS parameters | ||
| + | smtpd_tls_cert_file = / | ||
| + | smtpd_tls_key_file = / | ||
| + | smtpd_use_tls = yes | ||
| + | smtpd_tls_session_cache_database = btree: | ||
| + | smtp_tls_session_cache_database = btree: | ||
| + | |||
| + | # See / | ||
| + | # information on enabling SSL in the smtp client. | ||
| + | |||
| + | myhostname = serv1.acme.fr | ||
| + | alias_maps = hash:/ | ||
| + | alias_database = hash:/ | ||
| + | myorigin = / | ||
| + | mydestination = acme.fr, serv1.acme.fr, | ||
| + | relayhost = | ||
| + | mynetworks = 127.0.0.0/8 [:: | ||
| + | mailbox_size_limit = 0 | ||
| + | recipient_delimiter = + | ||
| + | inet_interfaces = all | ||
| + | |||
| + | home_mailbox = Maildir/ | ||
| + | mailbox_command = procmail -a " | ||
| + | |||
| + | # | ||
| + | # | ||
| + | # | ||
| + | smtpd_recipient_restrictions = permit_sasl_authenticated, | ||
| + | smtp_use_tls = yes | ||
| + | smtp_tls_note_starttls_offer = yes | ||
| + | smtpd_tls_CAfile = / | ||
| + | smtpd_tls_loglevel = 1 | ||
| + | smtpd_tls_received_header = yes | ||
| + | smtpd_tls_session_cache_timeout = 3600s | ||
| + | tls_random_source = dev:/ | ||
| + | |||
| + | smtpd_sasl_type = dovecot | ||
| + | |||
| + | smtpd_sasl_security_options = noanonymous | ||
| + | |||
| + | smtpd_tls_auth_only = yes | ||
| + | |||
| + | # Can be an absolute path, or relative to $queue_directory | ||
| + | # Debian/ | ||
| + | smtpd_sasl_path = private/ | ||
| + | |||
| + | # On Debian Wheezy path must be relative and queue_directory defined | ||
| + | # | ||
| + | |||
| + | # and the common settings to enable SASL: | ||
| + | smtpd_sasl_auth_enable = yes | ||
| + | # With Postfix version before 2.10, use smtpd_recipient_restrictions | ||
| + | # | ||
| + | |||
| + | # virtual_alias_maps = hash:/ | ||
| + | |||
| + | # inbound | ||
| + | smtpd_tls_security_level = may | ||
| + | smtpd_tls_protocols=!SSLv2, | ||
| + | smtpd_tls_mandatory_protocols=!SSLv2, | ||
| + | # outbound | ||
| + | smtp_tls_security_level = may | ||
| + | smtp_tls_protocols=!SSLv2, | ||
| + | smtp_tls_mandatory_protocols=!SSLv2, | ||
| + | ~~~ | ||
| + | |||
| + | Koala | ||
| + | `/ | ||
| + | ~~~ini | ||
| + | # See / | ||
| + | |||
| + | |||
| + | # Debian specific: | ||
| + | # line of that file to be used as the name. The Debian default | ||
| + | # is / | ||
| + | #myorigin = / | ||
| + | |||
| + | # | ||
| + | smtpd_banner = Every illegal access will be referred to the appropriate authorities and the CERT. | ||
| + | biff = yes | ||
| + | |||
| + | # appending .domain is the MUA's job. | ||
| + | append_dot_mydomain = no | ||
| + | |||
| + | # Uncomment the next line to generate " | ||
| + | # | ||
| + | |||
| + | readme_directory = no | ||
| + | |||
| + | # TLS parameters | ||
| + | smtpd_tls_cert_file=/ | ||
| + | smtpd_tls_key_file=/ | ||
| + | smtpd_use_tls=yes | ||
| + | smtpd_tls_session_cache_database = btree: | ||
| + | smtp_tls_session_cache_database = btree: | ||
| + | |||
| + | |||
| + | myhostname = smtp.acme.fr | ||
| + | alias_maps = hash:/ | ||
| + | alias_database = hash:/ | ||
| + | myorigin = / | ||
| + | mydestination = acme.fr, localhost.localdomain, | ||
| + | relayhost = | ||
| + | mynetworks = 127.0.0.0/8 [:: | ||
| + | mailbox_command = procmail -a " | ||
| + | mailbox_size_limit = 0 | ||
| + | message_size_limit = 10485760 | ||
| + | recipient_delimiter = + | ||
| + | inet_interfaces = all | ||
| + | |||
| + | virtual_alias_maps = hash:/ | ||
| + | relay_domains = acme.fr | ||
| + | |||
| + | home_mailbox = Maildir/ | ||
| + | notify_classes = resource, software, protocol | ||
| + | |||
| + | defer_transports = smtp | ||
| + | delay_warning_time = 5m | ||
| + | # | ||
| + | |||
| + | debug_peer_level = 7 | ||
| + | # | ||
| + | defer_transports = | ||
| + | disable_dns_lookups = no | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | ~~~ | ||
| + | acme.fr | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | `/ | ||
| + | ~~~ | ||
| + | # See man 5 aliases for format | ||
| + | dev-null: | ||
| + | postmaster: | ||
| + | abuse: | ||
| + | jean: jibe | ||
| + | root: jibe | ||
| + | |||
| + | # https:// | ||
| + | bot: " | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Puis | ||
| + | |||
| + | `/ | ||
| + | ~~~ | ||
| + | emailadresse | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | postmap / | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Puis | ||
| + | |||
| + | ~~~bash | ||
| + | vi / | ||
| + | newaliases | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | mkdir / | ||
| + | mkdir / | ||
| + | mkdir / | ||
| + | mkdir / | ||
| + | touch / | ||
| + | touch / | ||
| + | touch / | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | VERBOSE=Yes | ||
| + | SHELL=/ | ||
| + | PATH=$HOME/ | ||
| + | MAILDIR=$HOME/ | ||
| + | DEFAULT=$MAILDIR/ | ||
| + | LOGFILE=$MAILDIR/ | ||
| + | LOCKFILE=$HOME/ | ||
| + | LOGNAME=$USERNAME | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Configuration Dovecot | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | mail_location = maildir: | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | disable_plaintext_auth = yes | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | ~~~c | ||
| + | mailbox Drafts { | ||
| + | auto = subscribe | ||
| + | special_use = \Drafts | ||
| + | } | ||
| + | mailbox Junk { | ||
| + | special_use = \Junk | ||
| + | } | ||
| + | mailbox Trash { | ||
| + | # Fix invisible Trash | ||
| + | auto = subscribe | ||
| + | special_use = \Trash | ||
| + | } | ||
| + | |||
| + | ~~~ | ||
| + | |||
| + | https:// | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | ssl = required | ||
| + | ssl_protocols = !SSLv2 !SSLv3 | ||
| + | ~~~ | ||
| + | |||
| + | Debug | ||
| + | ~~~bash | ||
| + | doveadm -Dv force-resync -u jibe INBOX | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | # Source : https:// | ||
| + | |||
| + | # Manage Firewall | ||
| + | #pre-hook = ufw allow http | ||
| + | #post-hook = ufw deny http | ||
| + | |||
| + | # Restart Postfix & Dovecot | ||
| + | renew-hook = systemctl restart dovecot.service postfix.service | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Dovecot Exploit | ||
| + | |||
| + | Nettoyage cache / log | ||
| + | |||
| + | ~~~bash | ||
| + | find ~/Maildir/ -type f \( -iname dovecot.index.cache -o -iname dovecot.index.log \) -delete | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ### Pb | ||
| + | |||
| + | Pb suite à mis-à-jour Wheezy=> | ||
| + | |||
| + | `/ | ||
| + | ~~~ | ||
| + | Jan 19 18:42:10 sever1 dovecot[394]: | ||
| + | ~~~ | ||
| + | |||
| + | Solution de contournement provisoir | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | # | ||
| + | ssl_protocols = !SSLv3 | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | systemctl restart dovecot | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ### Postfix authentification avec Dovecot | ||
| + | |||
| + | Vérification compatibilité authentification Docecot | ||
| + | ~~~ | ||
| + | # postconf -a | ||
| + | cyrus | ||
| + | dovecot | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | # Postfix smtp-auth | ||
| + | unix_listener / | ||
| + | mode = 0660 | ||
| + | user = postfix | ||
| + | group = postfix | ||
| + | } | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | / | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | $ ls -l / | ||
| + | srw-rw---- 1 postfix postfix 0 mai 20 12:48 / | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | smtpd_sasl_security_options = noanonymous | ||
| + | smtpd_tls_auth_only = yes | ||
| + | |||
| + | smtpd_sasl_type = dovecot | ||
| + | |||
| + | # Can be an absolute path, or relative to $queue_directory | ||
| + | # Debian/ | ||
| + | smtpd_sasl_path = private/ | ||
| + | |||
| + | # On Debian Wheezy path must be relative and queue_directory defined | ||
| + | # | ||
| + | |||
| + | # and the common settings to enable SASL: | ||
| + | smtpd_sasl_auth_enable = yes | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Configuration DNS | ||
| + | * champ MX | ||
| + | * SRV (TXT) | ||
| + | |||
| + | ## Vérification | ||
| + | |||
| + | ### Vérification sécurité | ||
| + | |||
| + | Avant toute chose nous devons être certain que notre serveur SMTP n'est pas un relais ouvert. | ||
| + | |||
| + | ~~~bash | ||
| + | telnet smtp.acme.fr 25 | ||
| + | EHLO localhost | ||
| + | ~~~ | ||
| + | |||
| + | Vous devez voir la ligne suivante : | ||
| + | ~~~ | ||
| + | 250-STARTTLS | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | $ echo -ne " | ||
| + | AG5vbQBNT1RERVBBU1M= | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | openssl s_client -tls1 -starttls smtp -crlf -connect smtp.acme.fr: | ||
| + | EHLO localhost | ||
| + | AUTH PLAIN | ||
| + | AG5vbQBNT1RERVBBU1M= | ||
| + | ~~~ | ||
| + | |||
| + | On test que SSLv3 soit bien désactivé | ||
| + | ~~~bash | ||
| + | openssl s_client -ssl3 -starttls smtp -crlf -connect smtp.acme.fr: | ||
| + | ~~~ | ||
| + | |||
| + | http:// | ||
| + | |||
| + | ### Vérification DNS | ||
| + | |||
| + | Champs DNS : SPF DKIM ARC DMARC etc.... | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | ~~~ | ||
| + | $ dig acme.fr TXT @8.8.8.8 +short | ||
| + | " | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | $ dig acme.fr MX @8.8.8.8 +short | ||
| + | 1 smtp.acme.fr. | ||
| + | 100 smtp2.acme.fr. | ||
| + | ~~~ | ||
| + | |||
| + | Pour ne pas être considéré comme un spammer, il faut aussi créer le PTR dans le Reverse DNS. \\ | ||
| + | ip => smtp.acme.fr | ||
| + | |||
| + | |||
| + | ## Fail2ban | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | ### SSH | ||
| + | |||
| + | [ssh] | ||
| + | |||
| + | enabled | ||
| + | port = 7001 | ||
| + | filter | ||
| + | logpath | ||
| + | maxretry = 6 | ||
| + | |||
| + | [ssh-ddos] | ||
| + | |||
| + | enabled | ||
| + | port = 7001 | ||
| + | filter | ||
| + | logpath | ||
| + | maxretry = 6 | ||
| + | |||
| + | ### GENERIC | ||
| + | |||
| + | # Generic filter for pam. Has to be used with action which bans all ports | ||
| + | # such as iptables-allports, | ||
| + | [pam-generic] | ||
| + | |||
| + | enabled | ||
| + | # pam-generic filter can be customized to monitor specific subset of ' | ||
| + | filter | ||
| + | # port actually must be irrelevant but lets leave it all for some possible uses | ||
| + | port = all | ||
| + | banaction = iptables-allports | ||
| + | port = anyport | ||
| + | logpath | ||
| + | maxretry = 6 | ||
| + | |||
| + | ### MAILS | ||
| + | |||
| + | [postfix] | ||
| + | |||
| + | enabled | ||
| + | port = smtp,ssmtp | ||
| + | filter | ||
| + | logpath | ||
| + | |||
| + | |||
| + | [sasl] | ||
| + | |||
| + | enabled | ||
| + | port = smtp, | ||
| + | filter | ||
| + | # You might consider monitoring / | ||
| + | # running postfix since it would provide the same log lines at the | ||
| + | # " | ||
| + | logpath | ||
| + | |||
| + | [dovecot] | ||
| + | |||
| + | enabled = true | ||
| + | port = smtp, | ||
| + | filter | ||
| + | logpath = / | ||
| + | |||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | service fail2ban restart | ||
| + | service fail2ban status | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Webmail avec RoundCube | ||
| + | |||
| + | Si vous avez toujours nom@localhost au lieu de nom@domain.com il peut être nécessaire de supprimer la base de donnée sqlite (par précaution renommer le fichier sqlite (**base.db** dans notre exemple) | ||
| + | |||
| + | `defaults.inc.php` | ||
| + | ~~~php | ||
| + | $config[' | ||
| + | ~~~ | ||
| + | |||
| + | La base de donnée (ici sqlite) | ||
| + | |||
| + | `config.inc.php` | ||
| + | ~~~php | ||
| + | $config[' | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | apt-get install php5-fpm php5-sqlite php5-mcrypt php5-intl | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | ~~~ini | ||
| + | date.timezone = ' | ||
| + | ~~~ | ||
| + | |||
| + | `/ | ||
| + | ~~~ | ||
| + | server { | ||
| + | listen 443; | ||
| + | |||
| + | ssl on; | ||
| + | ssl_certificate / | ||
| + | ssl_certificate_key / | ||
| + | ssl_session_timeout 5m; | ||
| + | ssl_prefer_server_ciphers on; | ||
| + | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | ||
| + | ssl_ciphers ALL: | ||
| + | ssl_dhparam / | ||
| + | add_header Strict-Transport-Security max-age=2678400; | ||
| + | |||
| + | root / | ||
| + | index index.html index.htm index.php; | ||
| + | |||
| + | client_max_body_size 20M; | ||
| + | server_name webmail.serv1.acme.fr; | ||
| + | access_log | ||
| + | error_log | ||
| + | autoindex off; | ||
| + | |||
| + | location / { | ||
| + | try_files $uri $uri/ =404; | ||
| + | } | ||
| + | |||
| + | location ~ \.php$ { | ||
| + | fastcgi_split_path_info ^(.+\.php)(/ | ||
| + | # NOTE: You should have " | ||
| + | |||
| + | # With php5-cgi alone: | ||
| + | fastcgi_pass unix:/ | ||
| + | fastcgi_index index.php; | ||
| + | include fastcgi_params; | ||
| + | } | ||
| + | |||
| + | } | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | ln -s / | ||
| + | nginx -t | ||
| + | service nginx reload | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | cd / | ||
| + | openssl dhparam -out / | ||
| + | |||
| + | openssl genrsa -des3 -out serv1.acme.fr.key 2048 | ||
| + | # Ou : " | ||
| + | openssl req -new -key serv1.acme.fr.key -out serv1.acme.fr.csr | ||
| + | openssl rsa -in serv1.acme.fr.key | ||
| + | mv -f serv1.acme.fr.key.unencrypted serv1.acme.fr.key | ||
| + | chmod 600 serv1.acme.fr.key | ||
| + | openssl x509 -req -days 3650 -in serv1.acme.fr.csr -signkey serv1.acme.fr.key -out serv1.acme.fr.crt | ||
| + | ~~~ | ||
| + | |||
| + | ~~~bash | ||
| + | chown www-data: / | ||
| + | chown www-data: / | ||
| + | chown www-data: / | ||
| + | ~~~ | ||
| + | |||
| + | Après avoir fait la conf sur https:// | ||
| + | ~~~bash | ||
| + | rm / | ||
| + | ~~~ | ||
| + | |||
| + | FIXME | ||
| + | Bloquer les URLS: | ||
| + | https:// | ||
| + | |||
| + | ln -s / | ||
| + | |||
| + | ### Extension | ||
| + | |||
| + | #### Tag thunderbird, | ||
| + | |||
| + | ~~~bash | ||
| + | cd / | ||
| + | git clone https:// | ||
| + | chmod -R a+rX rcmail-thunderbird-labels | ||
| + | mv rcmail-thunderbird-labels thunderbird_labels | ||
| + | ~~~ | ||
| + | |||
| + | `config.inc.php` | ||
| + | ~~~php | ||
| + | $config[' | ||
| + | ~~~ | ||
| + | |||
| + | #### Plugin zipdownload pour télécharger toutes les pièces jointes dans un fichier Zip | ||
| + | |||
| + | php_zip extension (including ZipArchive class) | ||
| + | ~~~bash | ||
| + | apt-get install libphp-pclzip | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | `config/ | ||
| + | ~~~php | ||
| + | $config[' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ); | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ## Note commande postconf | ||
| + | |||
| + | postconf -d ; Affiche les valeurs par défaut à la place de la conf actuelle. | ||
| + | |||
| + | -n Print main.cf parameter settings that are explicitly specified in main.cf. | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | postconf -n | ||
| + | ~~~ | ||
| + | ~~~ini | ||
| + | alias_database = hash:/ | ||
| + | alias_maps = hash:/ | ||
| + | append_dot_mydomain = no | ||
| + | biff = no | ||
| + | bounce_queue_lifetime = 1d | ||
| + | bounce_size_limit = 2000 | ||
| + | broken_sasl_auth_clients = no | ||
| + | config_directory = / | ||
| + | disable_vrfy_command = yes | ||
| + | home_mailbox = Maildir/ | ||
| + | inet_interfaces = all | ||
| + | mailbox_command = procmail -a " | ||
| + | mailbox_size_limit = 0 | ||
| + | maximal_queue_lifetime = 1d | ||
| + | mydestination = $mydomain, localhost.$mydomain, | ||
| + | myhostname = serv1.acme.fr | ||
| + | mynetworks = 127.0.0.0/8 [:: | ||
| + | mynetworks_style = host | ||
| + | myorigin = / | ||
| + | policy-spf_time_limit = 3600s | ||
| + | readme_directory = no | ||
| + | recipient_delimiter = + | ||
| + | relayhost = | ||
| + | show_user_unknown_table_name = no | ||
| + | smtp_tls_mandatory_protocols = !SSLv2, | ||
| + | smtp_tls_note_starttls_offer = yes | ||
| + | smtp_tls_protocols = !SSLv2, | ||
| + | smtp_tls_security_level = may | ||
| + | smtp_tls_session_cache_database = btree: | ||
| + | smtp_use_tls = yes | ||
| + | smtpd_banner = Every illegal access will be referred to the appropriate authorities and the CERT. | ||
| + | smtpd_client_message_rate_limit = 3 | ||
| + | smtpd_data_restrictions = reject_unauth_pipelining, | ||
| + | smtpd_delay_reject = yes | ||
| + | smtpd_error_sleep_time = 10 | ||
| + | smtpd_etrn_restrictions = permit_mynetworks, | ||
| + | smtpd_hard_error_limit = 5 | ||
| + | smtpd_helo_required = yes | ||
| + | smtpd_helo_restrictions = reject_non_fqdn_helo_hostname, | ||
| + | smtpd_junk_command_limit = 3 | ||
| + | smtpd_recipient_restrictions = reject_non_fqdn_sender, | ||
| + | smtpd_sasl_auth_enable = yes | ||
| + | smtpd_sasl_path = private/ | ||
| + | smtpd_sasl_security_options = noanonymous, | ||
| + | smtpd_sasl_tls_security_options = noanonymous | ||
| + | smtpd_sasl_type = dovecot | ||
| + | smtpd_sender_restrictions = permit_mynetworks, | ||
| + | smtpd_soft_error_limit = 2 | ||
| + | smtpd_tls_CAfile = / | ||
| + | smtpd_tls_auth_only = yes | ||
| + | smtpd_tls_cert_file = / | ||
| + | smtpd_tls_key_file = / | ||
| + | smtpd_tls_loglevel = 1 | ||
| + | smtpd_tls_mandatory_protocols = !SSLv2, | ||
| + | smtpd_tls_protocols = !SSLv2, | ||
| + | smtpd_tls_received_header = yes | ||
| + | smtpd_tls_security_level = may | ||
| + | smtpd_tls_session_cache_database = btree: | ||
| + | smtpd_tls_session_cache_timeout = 3600s | ||
| + | smtpd_use_tls = yes | ||
| + | strict_rfc821_envelopes = yes | ||
| + | tls_random_source = dev:/ | ||
| + | ~~~ | ||
