Advertisement
saitam10

/etc/postfix/main.cf

Dec 24th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mydomain = saitam.int
  2. myhostname = mailserver.$mydomain
  3. myorigin = /etc/mailname
  4. mydestination = $myhostname, $mydomain, localhost.saitam.int, localhost
  5. mynetworks = 127.0.0.0/8, 192.168.1.0/24, 192.168.10.0/24, 192.168.20.0/24
  6. home_mailbox = /home/$USER/Maildir/
  7.  
  8. # SASL parameters
  9. smtpd_sasl_auth_enable = yes
  10. smtpd_sasl_type = dovecot
  11. smtpd_sasl_path = private/auth
  12. smtpd_sasl_authenticated_header = yes
  13. broken_sasl_auth_clients = yes
  14.  
  15. # TLS parameters
  16. # smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  17. # smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  18. smtpd_use_tls = yes
  19. smtpd_tls_auth_only = yes
  20. smtpd_tls_cert_file = /etc/ssl/certs/mailserver.saitam.int.crt
  21. smtpd_tls_key_file = /etc/ssl/private/mailserver.saitam.com.br.key
  22. smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
  23. smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
  24.  
  25. #Segurança
  26. # Aceitar ligacoes apenas a partir da rede local
  27. smtpd_client_restrictions = permit_mynetworks,
  28.   reject
  29.  
  30. # Clientes locais podem enviar emails para qualquer endereco
  31. smtpd_recipient_restrictions = permit_mynetworks,
  32.   reject_unauth_destination
  33.  
  34. # Rejeitar ligacoes de clientes que nao saibam o seu hostname
  35. smtpd_helo_restrictions = reject_unknown_sender_domain
  36.  
  37. # Rejeitar email de dominios que nao existem
  38. smtpd_sender_restrictions = reject_unknown_sender_domain
  39.  
  40. #relay
  41. relayhost = [smtp.gmail.com]
  42.  
  43. # SASL SUPPORT FOR SERVERS
  44. #
  45. # The following options set parameters needed by Postfix to enable
  46. # Cyrus-SASL support for authentication of mail servers.
  47. #
  48. smtp_use_tls = yes
  49. smtp_sasl_auth_enable = yes
  50. smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
  51. smtp_sasl_security_options = noanonymous
  52. smtp_sasl_tls_security_options = noanonymous
  53.  
  54. # Mapeamento endereços
  55. smtp_generic_maps = hash:/etc/postfix/generic
  56.  
  57. # amavisd-new scanner
  58. #
  59. content_filter = amavis:[127.0.0.1]:10024
  60. receive_override_options = no_address_mappings
  61.  
  62. mailbox_command = procmail -a "$EXTENSION"
  63. #espaço de 1GB = 1024*1024*1024
  64. mailbox_size_limit = 1073741824
  65. recipient_delimiter = +
  66. inet_interfaces = all
  67. inet_protocols = ipv4
  68.  
  69. # indica quem irá armazenar os e-mails
  70. virtual_transport = dovecot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement