Advertisement
Guest User

postfix-main.cf

a guest
May 10th, 2018
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.36 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 (Ubuntu)
  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. # TLS parameters
  25. smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  26. smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  27. smtpd_use_tls=yes
  28. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  29. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  30.  
  31. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  32. # information on enabling SSL in the smtp client.
  33.  
  34. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  35. myhostname = xirgsdomain.com
  36. alias_maps = hash:/etc/aliases
  37. alias_database = hash:/etc/aliases
  38.  
  39. #^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  40. # These lines came from:
  41. # https://www.linode.com/docs/email/postfix/basic-postfix-email-gateway-on-ubuntu-10-04-lucid/
  42. # Configuing postfix for virtual hosting
  43. virtual_alias_maps = hash:/etc/postfix/virtual
  44. home_mailbox = mail/
  45. #vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
  46.  
  47. myorigin = /etc/mailname
  48. mydestination = $myhostname, xirgsdomain.com, localhost.com, , localhost
  49. relayhost = [smtp.gmail.com]:587
  50. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  51. mailbox_command = procmail -a "$EXTENSION"
  52. mailbox_size_limit = 0
  53. recipient_delimiter = +
  54. inet_interfaces = all
  55. inet_protocols = all
  56. # Enable SASL authentication
  57. smtp_sasl_auth_enable = yes
  58. # Disallow methods that allow anonymous authentication
  59. smtp_sasl_security_options = noanonymous
  60. # Location of sasl_passwd
  61. smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
  62. # Enable STARTTLS encryption
  63. smtp_tls_security_level = encrypt
  64. # Location of CA certificates
  65. smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement