Ignore:
Timestamp:
10/07/08 00:12:41 (5 years ago)
Author:
anarcat
Message:

do not override Postfix's main.cf: instead, we use a /etc/alternc/postfix.cf to hold our configuration changes and apply that on postinst.

Closes: #1029

File:
1 moved

Legend:

Unmodified
Added
Removed
  • alternc/trunk/etc/alternc/postfix.cf

    r2317 r2322  
    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  
    141home_mailbox = Maildir/ 
    15  
    162smtpd_banner = $myhostname ESMTP 
    17  
    183header_checks = regexp:/etc/postfix/header_checks 
    194body_checks = regexp:/etc/postfix/body_checks 
    20  
    215local_destination_concurrency_limit = 8 
    226default_destination_concurrency_limit = 10 
    23  
    24 myhostname = %%fqdn%% 
    25 myorigin = %%fqdn%% 
    26  
    27  
    28 # Configuration TLS pour le serveur smtp :  
    297smtpd_use_tls = yes 
    308smtpd_tls_dcert_file = /etc/courier/pop3d.pem 
     
    3614smtpd_tls_received_header = yes 
    3715smtpd_tls_session_cache_timeout = 3600s 
    38 tls_random_source = dev:/dev/urandom 
    39  
    40 # Configuration TLS pour le client smtp 
    4116smtp_use_tls = yes 
    4217smtp_tls_dcert_file = $smtpd_tls_dcert_file 
    4318smtp_tls_dkey_file = $smtpd_tls_dcert_file 
    4419smtp_tls_CApath = $smtpd_tls_CApath 
    45  
    46 # Configuration SASL via sasldb (/etc/sasldb) uniquement en TLS. 
    47 # Sinon le pass passe en clair et c'est mal ! 
    4820smtpd_tls_auth_only = yes 
    4921smtpd_sasl_auth_enable = yes 
     
    5224enable_sasl_authentification = yes 
    5325broken_sasl_auth_clients = yes 
    54  
    55 #queue_directory = /var/spool/postfix 
    56 #command_directory = /usr/sbin 
    57 #daemon_directory = /usr/lib/postfix 
    58 #mail_owner = postfix 
    59 #recipient_delimiter = + 
    60  
    61 # Pour éviter certains vieux spammeurs. 
    62 disable_vrfy_command = yes 
    63  
    64 # On autorise le relai à : les authentifiés en saslet nos domaines. 
    65 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 
    66  
    6726alias_maps = mysql:/etc/postfix/myalias.cf hash:/etc/aliases 
    6827virtual_maps = proxy:mysql:/etc/postfix/mydomain.cf 
    6928virtual_mailbox_maps = proxy:mysql:/etc/postfix/myvirtual.cf 
    70  
    7129virtual_mailbox_base = / 
    7230virtual_minimum_uid = 1000 
    7331virtual_gid_maps = proxy:mysql:/etc/postfix/mygid.cf 
    7432virtual_uid_maps = static:33 
    75  
    7633default_privs = www-data 
    77 program_directory = /usr/lib/postfix 
     34smtpd_recipient_restrictions = reject_unlisted_recipient, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unauth_destination, check_policy_service inet:127.0.0.1:60000, reject_rbl_client zen.spamhaus.org 
Note: See TracChangeset for help on using the changeset viewer.