Advertisement
Guest User

Help me LinuxBabe!

a guest
Feb 2nd, 2023
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  2.  
  3.  
  4. # Debian specific: Specifying a file name will cause the first
  5. # line of that file to be used as the name. The Debian default
  6. # is /etc/mailname.
  7. #myorigin = /etc/mailname
  8.  
  9. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  10. biff = no
  11.  
  12. # appending .domain is the MUA's job.
  13. append_dot_mydomain = no
  14.  
  15. # Uncomment the next line to generate "delayed mail" warnings
  16. #delay_warning_time = 4h
  17.  
  18. readme_directory = no
  19.  
  20. # See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
  21. # fresh installs.
  22. compatibility_level = 2
  23.  
  24.  
  25.  
  26. # TLS parameters
  27. #smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  28. #smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  29. smtpd_tls_cert_file=/etc/letsencrypt/live/<subdomain.domain.tld>/fullchain.pem
  30. smtpd_tls_key_file=/etc/letsencrypt/live/<subdomain.domain.tld>/privkey.pem
  31. smtpd_tls_security_level=may
  32. smtpd_tls_protocols = !SSLv2, !SSLv3 !TLSv1
  33. smtpd_tls_loglevel = 1
  34.  
  35. smtp_tls_CApath=/etc/ssl/certs
  36. smtp_tls_security_level=may
  37. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  38.  
  39.  
  40. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  41. myhostname = <subdomain.domain.tld>
  42. alias_maps = hash:/etc/aliases
  43. alias_database = hash:/etc/aliases
  44. myorigin = /etc/mailname
  45. mydestination = $myhostname, <subdomain.domain.tld>, localhost.domain.tld, localhost
  46. relayhost =
  47. #mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  48. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1] <IP block of secondary MX> <IP block of primary MX>/29
  49.  
  50. mailbox_size_limit = 0
  51. recipient_delimiter = +
  52. inet_interfaces = all
  53. inet_protocols = all
  54. maximal_queue_lifetime = 10d
  55.  
  56. # Allowed addresses
  57. relay_recipient_maps = hash:/etc/postfix/relay_recipients
  58.  
  59. # Allowed domains
  60. relay_domains = <comma-delimited list of domains on a single line>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement