source: sandbox/2.5.1-evolucao/INSTALL/debian/squeeze/etc/postfix/main.cf @ 8265

Revision 8265, 6.2 KB checked in by angelo, 7 years ago (diff)

Ticket #0000 - sincronizacao das alteracoes do trunk com este sandbox

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