| 1 | # |
|---|
| 2 | # Fichier de configuration de Postfix pour AlternC |
|---|
| 3 | # $Id: main.cf,v 1.17 2006/01/12 06:50:15 anarcat Exp $ |
|---|
| 4 | # |
|---|
| 5 | # %%warning_message%% |
|---|
| 6 | # pour postfix SARGE v2 |
|---|
| 7 | |
|---|
| 8 | queue_directory = /var/spool/postfix |
|---|
| 9 | command_directory = /usr/sbin |
|---|
| 10 | daemon_directory = /usr/lib/postfix |
|---|
| 11 | mail_owner = postfix |
|---|
| 12 | # recipient_delimiter = + |
|---|
| 13 | |
|---|
| 14 | home_mailbox = Maildir/ |
|---|
| 15 | |
|---|
| 16 | smtpd_banner = $myhostname ESMTP |
|---|
| 17 | |
|---|
| 18 | header_checks = regexp:/etc/postfix/header_checks |
|---|
| 19 | body_checks = regexp:/etc/postfix/body_checks |
|---|
| 20 | |
|---|
| 21 | local_destination_concurrency_limit = 8 |
|---|
| 22 | default_destination_concurrency_limit = 10 |
|---|
| 23 | |
|---|
| 24 | myhostname = %%fqdn%% |
|---|
| 25 | myorigin = %%fqdn%% |
|---|
| 26 | mynetworks = 127.0.0.1 %%mynetwork%% |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | # Configuration TLS pour le serveur smtp : |
|---|
| 30 | smtpd_use_tls = yes |
|---|
| 31 | smtpd_tls_dcert_file = /etc/courier/pop3d.pem |
|---|
| 32 | smtpd_tls_dkey_file = $smtpd_tls_dcert_file |
|---|
| 33 | smtpd_tls_CApath = /etc/ssl/certs/ |
|---|
| 34 | smtpd_tls_key_file = $smtpd_tls_dcert_file |
|---|
| 35 | smtpd_tls_cert_file = $smtpd_tls_dcert_file |
|---|
| 36 | smtpd_tls_loglevel = 0 |
|---|
| 37 | smtpd_tls_received_header = yes |
|---|
| 38 | smtpd_tls_session_cache_timeout = 3600s |
|---|
| 39 | tls_random_source = dev:/dev/urandom |
|---|
| 40 | |
|---|
| 41 | # Configuration TLS pour le client smtp |
|---|
| 42 | smtp_use_tls = yes |
|---|
| 43 | smtp_tls_dcert_file = $smtpd_tls_dcert_file |
|---|
| 44 | smtp_tls_dkey_file = $smtpd_tls_dcert_file |
|---|
| 45 | smtp_tls_CApath = $smtpd_tls_CApath |
|---|
| 46 | |
|---|
| 47 | # Configuration SASL via sasldb (/etc/sasldb) uniquement en TLS. |
|---|
| 48 | # Sinon le pass passe en clair et c'est mal ! |
|---|
| 49 | smtpd_tls_auth_only = yes |
|---|
| 50 | smtpd_sasl_auth_enable = yes |
|---|
| 51 | smtpd_sasl_local_domain = postfix |
|---|
| 52 | smtpd_sasl_security_options = noanonymous |
|---|
| 53 | enable_sasl_authentification = yes |
|---|
| 54 | broken_sasl_auth_clients = yes |
|---|
| 55 | |
|---|
| 56 | #queue_directory = /var/spool/postfix |
|---|
| 57 | #command_directory = /usr/sbin |
|---|
| 58 | #daemon_directory = /usr/lib/postfix |
|---|
| 59 | #mail_owner = postfix |
|---|
| 60 | #recipient_delimiter = + |
|---|
| 61 | |
|---|
| 62 | # Pour éviter certains vieux spammeurs. |
|---|
| 63 | disable_vrfy_command = yes |
|---|
| 64 | |
|---|
| 65 | # On autorise le relai à : les authentifiés en saslet nos domaines. |
|---|
| 66 | smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_unauth_destination |
|---|
| 67 | |
|---|
| 68 | alias_maps = mysql:/etc/postfix/myalias.cf hash:/etc/aliases |
|---|
| 69 | virtual_maps = proxy:mysql:/etc/postfix/mydomain.cf |
|---|
| 70 | virtual_mailbox_maps = proxy:mysql:/etc/postfix/myvirtual.cf |
|---|
| 71 | |
|---|
| 72 | virtual_mailbox_base = / |
|---|
| 73 | virtual_minimum_uid = 1000 |
|---|
| 74 | virtual_gid_maps = proxy:mysql:/etc/postfix/mygid.cf |
|---|
| 75 | virtual_uid_maps = static:33 |
|---|
| 76 | |
|---|
| 77 | default_privs = www-data |
|---|
| 78 | program_directory = /usr/lib/postfix |
|---|