# See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache smtpd_tls_auth_only = yes # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. # SASL smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes # Anti-spam! # voir http://madism.org/~madcoder/etc/postfix/main.cf # et http://www.postfix.org/postconf.5.html disable_vrfy_command = yes smtpd_helo_required = yes strict_rfc821_envelopes = yes smtpd_junk_command_limit = 2 smtpd_soft_error_limit = 2 smtpd_hard_error_limit = 4 smtpd_error_sleep_time = 10s message_reject_characters = \0 smtpd_client_restrictions = reject_unknown_client_hostname permit smtpd_helo_restrictions = reject_unknown_client_hostname reject_invalid_helo_hostname reject_non_fqdn_helo_hostname reject_unknown_helo_hostname permit smtpd_recipient_restrictions = reject_non_fqdn_sender reject_non_fqdn_recipient reject_unknown_sender_domain reject_unknown_recipient_domain permit_mynetworks permit_sasl_authenticated reject_unauth_pipelining reject_invalid_hostname reject_non_fqdn_hostname reject_unauth_destination reject_unlisted_sender permit smtpd_data_restrictions = reject_unauth_pipelining reject_multi_recipient_bounce permit myhostname = mutants.mutins.net mydomain = mutants.mutins.net alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = mutants.mutins.net, localhost relayhost = mynetworks = 127.0.0.0/8 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all # pour les virtualsmail # mailvirtuel 1002 : 8 virtual_mailbox_domains = /etc/postfix/vhosts.txt virtual_mailbox_base = /var/mail/virtuel virtual_mailbox_maps = hash:/etc/postfix/vmaps.txt virtual_alias_maps = hash:/etc/postfix/valias.txt virtual_uid_maps = static:1002 virtual_gid_maps = static:8