## Altere todos os expresso.pr.gov.br para seu dominio myorigin = DOMAIN myhostname = DOMAIN biff = no append_at_myorigin = no append_dot_mydomain = no unknown_local_recipient_reject_code = 450 recipient_delimiter = + smtpd_banner = SMTP mynetworks = 127.0.0.1/32 # A lista de dominios que esta maquina considera seu destino final. mydestination = $myhostname, localhost.$mydomain, DOMAIN inet_interfaces = all disable_dns_lookups = no mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp #smtpd_use_tls = no alias_maps = virtual_alias_maps = ldap:aliases, ldap:mailboxes, ldap:grupos, ldap:listas, ldap:cxinstitucionais, ldap:cxcompartilhadas #SCL - Sender Control List smtpd_recipient_restrictions = check_recipient_access ldap:cra_maillists, reject_unauth_destination smtpd_restriction_classes = mailListRestriction mailListRestriction = check_sender_access ldap:csa_maillists, reject #Caixas Postais mailboxes_server_host = 127.0.0.1 # host do servidor LDAP. mailboxes_version = 3 # versao do ldap mailboxes_timeout = 10 # tempo em segundo para gerar um timeout na consulta mailboxes_chase_referral = 0 # seguir referral? (false = 0 = nao) mailboxes_search_base = LDAP_DN #Base do servidor LDAP. mailboxes_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(objectClass=posixAccount)(phpgwAccountType=u)(accountStatus=active)) # A pesquisa que sera feita. Será retornado o UID e o MailForwardingAddress (result_attribute) da Entrada # correspondente ao query_filter. %s eh oq vem do postfix. mailboxes_bind = no mailboxes_domain = hash:/etc/postfix/expresso-dominios # utilizar anonymous. mailboxes_result_attribute = uid, mailForwardingAddress # o LDAP retornará estes atributos. #Aliases aliases_server_host = 127.0.0.1 aliases_version = 3 aliases_timeout = 10 aliases_chase_referral = 0 aliases_search_base = LDAP_DN aliases_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(objectClass=posixAccount)(phpgwAccountType=u)(deliveryMode=forwardOnly)(accountStatus=active)) aliases_domain = hash:/etc/postfix/expresso-dominios aliases_result_attribute = mailForwardingAddress #Listas listas_server_host = 127.0.0.1 listas_version = 3 listas_timeout = 10 listas_chase_referral = 0 listas_search_base = LDAP_DN listas_query_filter = (&(mail=%s)(phpgwAccountType=l)(objectClass=posixAccount)(deliveryMode=forwardOnly)(accountStatus=active)) listas_domain = hash:/etc/postfix/expresso-dominios listas_result_attribute = mailForwardingAddress #Grupos grupos_server_host = 127.0.0.1 grupos_version = 3 grupos_timeout = 10 grupos_chase_referral = 0 grupos_search_base = LDAP_DN grupos_query_filter = (&(cn=%u)(objectClass=posixGroup)(phpgwAccountType=g)) grupos_bind = no grupos_domain = hash:/etc/postfix/expresso-dominios grupos_result_attribute = memberUid #Contas institucionais cxinstitucionais_server_host = 127.0.0.1 cxinstitucionais_version = 3 cxinstitucionais_timeout = 10 cxinstitucionais_chase_referral = 0 cxinstitucionais_search_base = LDAP_DN cxinstitucionais_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(objectClass=phpgwAccount)(phpgwAccountType=i)(accountStatus=active)) cxinstitucionais_domain = hash:/etc/postfix/expresso-dominios cxinstitucionais_result_attribute = mailForwardingAddress #Contas compartilhadas cxcompartilhadas_server_host = 127.0.0.1 cxcompartilhadas_version = 3 cxcompartilhadas_timeout = 10 cxcompartilhadas_chase_referral = 0 cxcompartilhadas_search_base = LDAP_DN cxcompartilhadas_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s))(objectClass=phpgwAccount)(phpgwAccountType=s)(accountStatus=active)) cxcompartilhadas_domain = hash:/etc/postfix/expresso-dominios cxcompartilhadas_result_attribute = uid, mailForwardingAddress # SCL ## cra_maillists (check_recipient_access_maillists) cra_maillists_server_host = 127.0.0.1 cra_maillists_version = 3 cra_maillists_timeout = 10 cra_maillists_chase_referral = 0 cra_maillists_search_base = LDAP_DN cra_maillists_query_filter = (&(mail=%s)(phpgwAccountType=l)(accountRestrictive=mailListRestriction)) cra_maillists_result_attribute = accountRestrictive cra_maillists_domain = hash:/etc/postfix/expresso-dominios cra_maillists_bind = no # SCL ## csa_maillists (check_sender_access_maillists) csa_maillists_server_host = 127.0.0.1 csa_maillists_version = 3 csa_maillists_timeout = 10 csa_maillists_chase_referral = 0 csa_maillists_search_base = LDAP_DN csa_maillists_query_filter = (|(&(mailSenderAddress=%s)(phpgwAccountType=l))(&(participantCanSendMail=TRUE)(mailForwardingAddress=%s))) csa_maillists_result_attribute = accountDeliveryMessage csa_maillists_domain = hash:/etc/postfix/expresso-dominios ##################################################################### # CONTROLE DE FALHA DE ENTREGA. # O tempo entre as tentativas de entrega da fila. # The time between deferred queue scans by the queue manager. queue_run_delay = 480s # The maximal time a bounce message is queued before it is considered undeliverable. bounce_queue_lifetime = 5400s #2400 # O tempo maximo que uma mensagem fica na fila de adiadas, antes de voltar ao sender. # How long a message stays in the queue before it is sent back as undeliverable. maximal_queue_lifetime = 5400s #2400 # O tempo maxima entre tentativas de entregar uma mensagem adiada (deferida) # The maximal time between attempts to deliver a deferred message. maximal_backoff_time = 480s # O tempo minimo entre tentativas de entregar uma mensagem adiada (deferida) # The minimal time between attempts to deliver a deferred message. minimal_backoff_time = 240s # Tamanho maximo para envio (20Mb) message_size_limit = 20971520 # Tamanho maximo para recebimento (100Mb) mailbox_size_limit = 104857600