source: trunk/INSTALL/debian/squeeze/etc/postfix/main.cf @ 5883

Revision 5883, 6.1 KB checked in by wmerlotto, 7 years ago (diff)

Ticket #2557 - padronização dos arquivos de configuração do postfix

  • Property svn:executable set to *
Line 
1# Configuracoes para o Expresso
2myorigin = DOMAIN
3myhostname = DOMAIN
4biff = no
5
6append_at_myorigin = no
7append_dot_mydomain = no
8
9# A lista de dominios que esta maquina considera seu destino final.
10mydestination = $myhostname, localhost.$mydomain, DOMAIN
11
12recipient_delimiter = +
13smtpd_banner = $myhostname ESMTP Expresso Livre - (GNU/Linux)
14mynetworks = 127.0.0.1/32
15
16inet_interfaces = all
17disable_dns_lookups = no
18# Faz a entrega dos e-mails para o cyrus
19transport_maps = hash:/etc/postfix/transport
20#mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
21
22#smtpd_use_tls = no
23alias_maps = hash:/etc/aliases
24alias_database = hash:/etc/aliases
25
26virtual_alias_maps = ldap:aliases, ldap:mailboxes, ldap:grupos, ldap:listas, ldap:cxinstitucionais, ldap:cxcompartilhadas
27
28# Para facilitar a configuracao
29ldaphost = 127.0.0.1
30ldapbase = LDAP_DN
31
32#Caixas Postais
33mailboxes_server_host = $ldaphost
34        # host do servidor LDAP.
35mailboxes_version = 3
36        # versao do ldap
37mailboxes_timeout = 10
38        # tempo em segundo para gerar um timeout na consulta
39mailboxes_chase_referral = 0
40        # seguir referral? (false = 0 = nao)
41mailboxes_search_base = $ldapbase
42        #Base do servidor LDAP.
43mailboxes_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(objectClass=posixAccount)(phpgwAccountType=u)(accountStatus=active))
44        # A pesquisa que sera feita. Será retornado o UID e o MailForwardingAddress (result_attribute) da Entrada
45        # correspondente ao query_filter. %s eh oq vem do postfix.
46mailboxes_bind = no
47mailboxes_domain = hash:/etc/postfix/expresso-dominios
48        # utilizar anonymous.
49mailboxes_result_attribute = uid, mailForwardingAddress
50        # o LDAP retornará estes atributos.
51                                                                       
52#Aliases
53aliases_server_host = $ldaphost
54aliases_version = 3
55aliases_timeout = 10
56aliases_chase_referral = 0
57aliases_search_base = $ldapbase
58aliases_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(objectClass=posixAccount)(phpgwAccountType=u)(deliveryMode=forwardOnly)(accountStatus=active))
59aliases_domain = hash:/etc/postfix/expresso-dominios
60aliases_result_attribute = mailForwardingAddress
61
62#Listas
63listas_server_host = $ldaphost
64listas_version = 3
65listas_timeout = 10
66listas_chase_referral = 0
67listas_search_base = $ldapbase
68listas_query_filter = (&(mail=%s)(phpgwAccountType=l)(objectClass=posixAccount)(deliveryMode=forwardOnly)(accountStatus=active))
69listas_domain = hash:/etc/postfix/expresso-dominios
70listas_result_attribute = mailForwardingAddress
71
72#Grupos
73grupos_server_host = $ldaphost
74grupos_version = 3
75grupos_timeout = 10
76grupos_chase_referral = 0
77grupos_search_base = $ldapbase
78grupos_query_filter = (&(cn=%u)(objectClass=posixGroup)(phpgwAccountType=g))
79grupos_bind = no
80grupos_domain = hash:/etc/postfix/expresso-dominios
81grupos_result_attribute = memberUid
82
83#Contas institucionais
84cxinstitucionais_server_host = $ldaphost
85cxinstitucionais_version = 3
86cxinstitucionais_timeout = 10
87cxinstitucionais_chase_referral = 0
88cxinstitucionais_search_base = $ldapbase
89cxinstitucionais_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(objectClass=phpgwAccount)(phpgwAccountType=i)(accountStatus=active))
90cxinstitucionais_domain = hash:/etc/postfix/expresso-dominios
91cxinstitucionais_result_attribute = mailForwardingAddress
92
93#Contas compartilhadas
94cxcompartilhadas_server_host = $ldaphost
95cxcompartilhadas_version = 3
96cxcompartilhadas_timeout = 10
97cxcompartilhadas_chase_referral = 0
98cxcompartilhadas_search_base = $ldapbase
99cxcompartilhadas_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(objectClass=phpgwAccount)(phpgwAccountType=s)(accountStatus=active))
100cxcompartilhadas_domain = hash:/etc/postfix/expresso-dominios
101cxcompartilhadas_result_attribute = uid, mailForwardingAddress
102
103# SCL ## cra_maillists (check_recipient_access_maillists)
104cra_maillists_server_host = $ldaphost
105cra_maillists_version = 3
106cra_maillists_timeout = 10
107cra_maillists_chase_referral = 0
108cra_maillists_search_base = $ldapbase
109cra_maillists_query_filter = (&(mail=%s)(phpgwAccountType=l)(accountRestrictive=mailListRestriction))
110cra_maillists_result_attribute = accountRestrictive
111cra_maillists_domain = hash:/etc/postfix/expresso-dominios
112cra_maillists_bind = no
113
114# SCL ## csa_maillists (check_sender_access_maillists)
115csa_maillists_server_host = $ldaphost
116csa_maillists_version = 3
117csa_maillists_timeout = 10
118csa_maillists_chase_referral = 0
119csa_maillists_search_base = $ldapbase
120csa_maillists_query_filter = (|(&(mailSenderAddress=%s)(phpgwAccountType=l))(&(participantCanSendMail=TRUE)(mailForwardingAddress=%s)))
121csa_maillists_result_attribute = accountDeliveryMessage
122csa_maillists_domain = hash:/etc/postfix/expresso-dominios
123
124#####################################################################
125# CONTROLE DE FALHA DE ENTREGA.
126
127unknown_local_recipient_reject_code = 450
128# O tempo entre as tentativas de entrega da fila.
129# The time between deferred queue scans by the queue manager.
130queue_run_delay = 480s
131
132# The maximal time a bounce message is queued before it is considered undeliverable.
133bounce_queue_lifetime = 5400s
134#2400
135
136# O tempo maximo que uma mensagem fica na fila de adiadas, antes de voltar ao sender.
137# How long a message stays in the queue before it is sent back as undeliverable.
138maximal_queue_lifetime = 5400s
139#2400
140
141# O tempo maxima entre tentativas de entregar uma mensagem adiada (deferida)
142# The maximal time between attempts to deliver a deferred message.
143maximal_backoff_time = 480s
144
145# O tempo minimo entre tentativas de entregar uma mensagem adiada (deferida)
146# The minimal time between attempts to deliver a deferred message.
147minimal_backoff_time = 240s
148
149# Tamanho maximo para envio (20Mb)
150message_size_limit = 20971520
151
152# Controle de restricoes
153smtpd_recipient_restrictions =
154        # Restringe acesso, a remententes nao autorizados, as listas do Expresso
155        check_recipient_access ldap:cra_maillists,
156        # o IP do remetente esta na lista de permitidos
157        permit_mynetworks,
158        permit_sasl_authenticated,
159        # Fecha o relay do servidor
160        reject_unauth_destination,
161        # o endereco do destinatario existe ou e alcancavel
162        reject_unverified_recipient,
163        permit
164
165#SCL - Sender Control List - Restricoes para envio nas listas
166smtpd_restriction_classes = mailListRestriction
167mailListRestriction = check_sender_access ldap:csa_maillists,
168                        reject
169
170
Note: See TracBrowser for help on using the repository browser.