1 | # Configuracoes para o Expresso |
---|
2 | myorigin = DOMAIN |
---|
3 | myhostname = DOMAIN |
---|
4 | biff = no |
---|
5 | |
---|
6 | append_at_myorigin = no |
---|
7 | append_dot_mydomain = no |
---|
8 | |
---|
9 | # A lista de dominios que esta maquina considera seu destino final. |
---|
10 | mydestination = $myhostname, localhost.$mydomain, DOMAIN |
---|
11 | |
---|
12 | recipient_delimiter = + |
---|
13 | smtpd_banner = $myhostname ESMTP Expresso Livre - (GNU/Linux) |
---|
14 | mynetworks = 127.0.0.1/32 |
---|
15 | |
---|
16 | inet_interfaces = all |
---|
17 | disable_dns_lookups = no |
---|
18 | # Faz a entrega dos e-mails para o cyrus |
---|
19 | transport_maps = hash:/etc/postfix/transport |
---|
20 | #mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp |
---|
21 | |
---|
22 | #smtpd_use_tls = no |
---|
23 | alias_maps = hash:/etc/aliases |
---|
24 | alias_database = hash:/etc/aliases |
---|
25 | |
---|
26 | virtual_alias_maps = ldap:aliases, ldap:mailboxes, ldap:grupos, ldap:listas, ldap:cxinstitucionais, ldap:cxcompartilhadas |
---|
27 | |
---|
28 | # Para facilitar a configuracao |
---|
29 | ldaphost = 127.0.0.1 |
---|
30 | ldapbase = LDAP_DN |
---|
31 | |
---|
32 | #Caixas Postais |
---|
33 | mailboxes_server_host = $ldaphost |
---|
34 | # host do servidor LDAP. |
---|
35 | mailboxes_version = 3 |
---|
36 | # versao do ldap |
---|
37 | mailboxes_timeout = 10 |
---|
38 | # tempo em segundo para gerar um timeout na consulta |
---|
39 | mailboxes_chase_referral = 0 |
---|
40 | # seguir referral? (false = 0 = nao) |
---|
41 | mailboxes_search_base = $ldapbase |
---|
42 | #Base do servidor LDAP. |
---|
43 | mailboxes_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. |
---|
46 | mailboxes_bind = no |
---|
47 | mailboxes_domain = hash:/etc/postfix/expresso-dominios |
---|
48 | # utilizar anonymous. |
---|
49 | mailboxes_result_attribute = uid, mailForwardingAddress |
---|
50 | # o LDAP retornará estes atributos. |
---|
51 | |
---|
52 | #Aliases |
---|
53 | aliases_server_host = $ldaphost |
---|
54 | aliases_version = 3 |
---|
55 | aliases_timeout = 10 |
---|
56 | aliases_chase_referral = 0 |
---|
57 | aliases_search_base = $ldapbase |
---|
58 | aliases_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(objectClass=posixAccount)(phpgwAccountType=u)(deliveryMode=forwardOnly)(accountStatus=active)) |
---|
59 | aliases_domain = hash:/etc/postfix/expresso-dominios |
---|
60 | aliases_result_attribute = mailForwardingAddress |
---|
61 | |
---|
62 | #Listas |
---|
63 | listas_server_host = $ldaphost |
---|
64 | listas_version = 3 |
---|
65 | listas_timeout = 10 |
---|
66 | listas_chase_referral = 0 |
---|
67 | listas_search_base = $ldapbase |
---|
68 | listas_query_filter = (&(mail=%s)(phpgwAccountType=l)(objectClass=posixAccount)(deliveryMode=forwardOnly)(accountStatus=active)) |
---|
69 | listas_domain = hash:/etc/postfix/expresso-dominios |
---|
70 | listas_result_attribute = mailForwardingAddress |
---|
71 | |
---|
72 | #Grupos |
---|
73 | grupos_server_host = $ldaphost |
---|
74 | grupos_version = 3 |
---|
75 | grupos_timeout = 10 |
---|
76 | grupos_chase_referral = 0 |
---|
77 | grupos_search_base = $ldapbase |
---|
78 | grupos_query_filter = (&(mail=%u)(objectClass=posixGroup)(phpgwAccountType=g)) |
---|
79 | grupos_bind = no |
---|
80 | grupos_domain = hash:/etc/postfix/expresso-dominios |
---|
81 | grupos_result_attribute = memberUid |
---|
82 | |
---|
83 | #Contas institucionais |
---|
84 | cxinstitucionais_server_host = $ldaphost |
---|
85 | cxinstitucionais_version = 3 |
---|
86 | cxinstitucionais_timeout = 10 |
---|
87 | cxinstitucionais_chase_referral = 0 |
---|
88 | cxinstitucionais_search_base = $ldapbase |
---|
89 | cxinstitucionais_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(objectClass=phpgwAccount)(phpgwAccountType=i)(accountStatus=active)) |
---|
90 | cxinstitucionais_domain = hash:/etc/postfix/expresso-dominios |
---|
91 | cxinstitucionais_result_attribute = mailForwardingAddress |
---|
92 | |
---|
93 | #Contas compartilhadas |
---|
94 | cxcompartilhadas_server_host = $ldaphost |
---|
95 | cxcompartilhadas_version = 3 |
---|
96 | cxcompartilhadas_timeout = 10 |
---|
97 | cxcompartilhadas_chase_referral = 0 |
---|
98 | cxcompartilhadas_search_base = $ldapbase |
---|
99 | cxcompartilhadas_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(objectClass=phpgwAccount)(phpgwAccountType=s)(accountStatus=active)) |
---|
100 | cxcompartilhadas_domain = hash:/etc/postfix/expresso-dominios |
---|
101 | cxcompartilhadas_result_attribute = uid, mailForwardingAddress |
---|
102 | |
---|
103 | # SCL ## cra_maillists (check_recipient_access_maillists) |
---|
104 | cra_maillists_server_host = $ldaphost |
---|
105 | cra_maillists_version = 3 |
---|
106 | cra_maillists_timeout = 10 |
---|
107 | cra_maillists_chase_referral = 0 |
---|
108 | cra_maillists_search_base = $ldapbase |
---|
109 | cra_maillists_query_filter = (&(mail=%s)(phpgwAccountType=l)(accountRestrictive=mailListRestriction)) |
---|
110 | cra_maillists_result_attribute = accountRestrictive |
---|
111 | cra_maillists_domain = hash:/etc/postfix/expresso-dominios |
---|
112 | cra_maillists_bind = no |
---|
113 | |
---|
114 | # SCL ## csa_maillists (check_sender_access_maillists) |
---|
115 | csa_maillists_server_host = $ldaphost |
---|
116 | csa_maillists_version = 3 |
---|
117 | csa_maillists_timeout = 10 |
---|
118 | csa_maillists_chase_referral = 0 |
---|
119 | csa_maillists_search_base = $ldapbase |
---|
120 | csa_maillists_query_filter = (|(&(mailSenderAddress=%s)(phpgwAccountType=l))(&(participantCanSendMail=TRUE)(mailForwardingAddress=%s))) |
---|
121 | csa_maillists_result_attribute = accountDeliveryMessage |
---|
122 | csa_maillists_domain = hash:/etc/postfix/expresso-dominios |
---|
123 | |
---|
124 | ##################################################################### |
---|
125 | # CONTROLE DE FALHA DE ENTREGA. |
---|
126 | |
---|
127 | unknown_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. |
---|
130 | queue_run_delay = 480s |
---|
131 | |
---|
132 | # The maximal time a bounce message is queued before it is considered undeliverable. |
---|
133 | bounce_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. |
---|
138 | maximal_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. |
---|
143 | maximal_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. |
---|
147 | minimal_backoff_time = 240s |
---|
148 | |
---|
149 | # Tamanho maximo para envio (20Mb) |
---|
150 | message_size_limit = 20971520 |
---|
151 | |
---|
152 | # Controle de restricoes |
---|
153 | smtpd_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 |
---|
166 | smtpd_restriction_classes = mailListRestriction |
---|
167 | mailListRestriction = check_sender_access ldap:csa_maillists, |
---|
168 | reject |
---|
169 | |
---|
170 | # LOCAL PATHNAME INFORMATION |
---|
171 | # |
---|
172 | # The queue_directory specifies the location of the Postfix queue. |
---|
173 | # This is also the root directory of Postfix daemons that run chrooted. |
---|
174 | # See the files in examples/chroot-setup for setting up Postfix chroot |
---|
175 | # environments on different UNIX systems. |
---|
176 | # |
---|
177 | queue_directory = /var/spool/postfix |
---|
178 | |
---|
179 | # The command_directory parameter specifies the location of all |
---|
180 | # postXXX commands. |
---|
181 | # |
---|
182 | command_directory = /usr/sbin |
---|
183 | |
---|
184 | # The daemon_directory parameter specifies the location of all Postfix |
---|
185 | # daemon programs (i.e. programs listed in the master.cf file). This |
---|
186 | # directory must be owned by root. |
---|
187 | # |
---|
188 | daemon_directory = /usr/libexec/postfix |
---|
189 | |
---|
190 | # QUEUE AND PROCESS OWNERSHIP |
---|
191 | # |
---|
192 | # The mail_owner parameter specifies the owner of the Postfix queue |
---|
193 | # and of most Postfix daemon processes. Specify the name of a user |
---|
194 | # account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS |
---|
195 | # AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In |
---|
196 | # particular, don't specify nobody or daemon. PLEASE USE A DEDICATED |
---|
197 | # USER. |
---|
198 | # |
---|
199 | mail_owner = postfix |
---|
200 | |
---|
201 | # The default_privs parameter specifies the default rights used by |
---|
202 | # the local delivery agent for delivery to external file or command. |
---|
203 | # These rights are used in the absence of a recipient user context. |
---|
204 | # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER. |
---|
205 | # |
---|
206 | #default_privs = nobody |
---|
207 | |
---|
208 | # INSTALL-TIME CONFIGURATION INFORMATION |
---|
209 | # |
---|
210 | # The following parameters are used when installing a new Postfix version. |
---|
211 | # |
---|
212 | # sendmail_path: The full pathname of the Postfix sendmail command. |
---|
213 | # This is the Sendmail-compatible mail posting interface. |
---|
214 | # |
---|
215 | sendmail_path = /usr/sbin/sendmail.postfix |
---|
216 | |
---|
217 | # newaliases_path: The full pathname of the Postfix newaliases command. |
---|
218 | # This is the Sendmail-compatible command to build alias databases. |
---|
219 | # |
---|
220 | newaliases_path = /usr/bin/newaliases.postfix |
---|
221 | |
---|
222 | # mailq_path: The full pathname of the Postfix mailq command. This |
---|
223 | # is the Sendmail-compatible mail queue listing command. |
---|
224 | # |
---|
225 | mailq_path = /usr/bin/mailq.postfix |
---|
226 | |
---|
227 | # setgid_group: The group for mail submission and queue management |
---|
228 | # commands. This must be a group name with a numerical group ID that |
---|
229 | # is not shared with other accounts, not even with the Postfix account. |
---|
230 | # |
---|
231 | setgid_group = postdrop |
---|
232 | |
---|
233 | # html_directory: The location of the Postfix HTML documentation. |
---|
234 | # |
---|
235 | html_directory = no |
---|
236 | |
---|
237 | # manpage_directory: The location of the Postfix on-line manual pages. |
---|
238 | # |
---|
239 | manpage_directory = /usr/share/man |
---|
240 | |
---|