# # Configuração Básica do Postfix # myhostname = suse.DOMAIN mydomain = DOMAIN mynetworks = 192.168.0.0/16, 127.0.0.0/8, 172.16.0.0/16, 10.0.0.0/8 #content_filter=smtp:[127.0.0.1]:10024 #portaNac=10025 # # A linha abaixo deve ser descomentada se quiser que os email para # usuários desconhecidos segem redirecionados para um outro usuário # #luser_relay = usuario@dominio.com.br # # As linhas abaixo raramente serão alteradas. # home_mailbox = Maildir/ queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/lib/postfix mail_owner = postfix default_privs = nobody myorigin = $mydomain inet_interfaces = all mydestination = $myhostname, localhost.$mydomain, $mydomain default_transport = smtp unknown_local_recipient_reject_code = 550 relay_domains = $mydestination alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mail_spool_directory = /var/spool/mail smtpd_banner = $myhostname ESMTP debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop #setgid_group = maildrop manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.1.5/samples readme_directory = no smtpd_sasl_auth_enable = no smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_relay_domains message_size_limit=20000000 mailbox_size_limit=3000000000 # Tempo máximo do email na fila bounce_queue_lifetime=6h maximal_queue_lifetime=6h # # Outras opções # #alias_maps = dbm:/etc/aliases #alias_maps = hash:/etc/aliases, nis:mail.aliases #alias_maps = netinfo:/aliases #alias_database = dbm:/etc/aliases #alias_database = hash:/etc/aliases #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases #local_destination_concurrency_limit = 5 #default_destination_concurrency_limit = 20 #home_mailbox = Mailbox #mail_spool_directory = /var/mail #smtpd_sender_restrictions = reject_non_fqdn_sender,reject_rhsbl_sender dsn.rfc-ignorant.org,reject_rhsbl_sender bogusmx.rfc-ignorant.org,reject_rhsbl_sender blackhole.securitysage.com,reject_rhsbl_sender rhsbl.ahbl.org,reject_rhsbl_sender rhsbl.sorbs.org,reject_rhsbl_sender block.rhs.mailpolice.com #smtpd_client_restrictions = permit_mynetworks,reject_rbl_client cbl.abuseat.org,reject_rbl_client bl.spamcop.net,reject_rbl_client spam.dnsbl.sorbs.net,reject_rbl_client misc.dnsbl.sorbs.net,reject_rbl_client smtp.dnsbl.sorbs.net,reject_rbl_client block.dnsbl.sorbs.net,reject_rbl_client zombie.dnsbl.sorbs.net,reject_rbl_client bl.csma.biz,reject_rbl_client t2.dnsbl.net.au,reject_rbl_client multihop.dsbl.org,reject_rbl_client relays.ordb.org,reject_rbl_client dun.dnsrbl.net,reject_rbl_client spam.dnsrbl.net,reject_rhsbl_client bogusmx.rfc-ignorant.org,reject_rhsbl_client blackhole.securitysage.com,reject_rhsbl_client rhsbl.ahbl.org,reject_rhsbl_client rhsbl.sorbs.org,reject_rhsbl_client block.rhs.mailpolice.com ####################################################### virtual_alias_maps = ldap:aliases, ldap:mailboxes, ldap:grupos, ldap:listas, ldap:cxinstitucionais, ldap:cxcompartilhadas #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 = DOMAIN # 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 = DOMAIN 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 = DOMAIN 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 = DOMAIN 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 = dc=pe,dc=gov,dc=br 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