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