source: trunk/INSTALL/rhel/6/etc/postfix/main.cf @ 8137

Revision 8137, 8.5 KB checked in by wmerlotto, 11 years ago (diff)

Ticket #3441 - Correções diversas no instalador do Expresso

  • 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/lib/imap/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)(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_sender_access ldap:csa_maillists,
169                        reject
170
171# LOCAL PATHNAME INFORMATION
172#
173# The queue_directory specifies the location of the Postfix queue.
174# This is also the root directory of Postfix daemons that run chrooted.
175# See the files in examples/chroot-setup for setting up Postfix chroot
176# environments on different UNIX systems.
177#
178queue_directory = /var/spool/postfix
179
180# The command_directory parameter specifies the location of all
181# postXXX commands.
182#
183command_directory = /usr/sbin
184
185# The daemon_directory parameter specifies the location of all Postfix
186# daemon programs (i.e. programs listed in the master.cf file). This
187# directory must be owned by root.
188#
189daemon_directory = /usr/libexec/postfix
190
191# QUEUE AND PROCESS OWNERSHIP
192#
193# The mail_owner parameter specifies the owner of the Postfix queue
194# and of most Postfix daemon processes.  Specify the name of a user
195# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
196# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.  In
197# particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
198# USER.
199#
200mail_owner = postfix
201
202# The default_privs parameter specifies the default rights used by
203# the local delivery agent for delivery to external file or command.
204# These rights are used in the absence of a recipient user context.
205# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
206#
207#default_privs = nobody
208
209# INSTALL-TIME CONFIGURATION INFORMATION
210#
211# The following parameters are used when installing a new Postfix version.
212#
213# sendmail_path: The full pathname of the Postfix sendmail command.
214# This is the Sendmail-compatible mail posting interface.
215#
216sendmail_path = /usr/sbin/sendmail.postfix
217
218# newaliases_path: The full pathname of the Postfix newaliases command.
219# This is the Sendmail-compatible command to build alias databases.
220#
221newaliases_path = /usr/bin/newaliases.postfix
222
223# mailq_path: The full pathname of the Postfix mailq command.  This
224# is the Sendmail-compatible mail queue listing command.
225#
226mailq_path = /usr/bin/mailq.postfix
227
228# setgid_group: The group for mail submission and queue management
229# commands.  This must be a group name with a numerical group ID that
230# is not shared with other accounts, not even with the Postfix account.
231#
232setgid_group = postdrop
233
234# html_directory: The location of the Postfix HTML documentation.
235#
236html_directory = no
237
238# manpage_directory: The location of the Postfix on-line manual pages.
239#
240manpage_directory = /usr/share/man
241
Note: See TracBrowser for help on using the repository browser.