SyP-

main.cf

Mar 11th, 2021
53
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  2.  
  3. smtpd_banner = $myhostname ESMTP
  4. biff = no
  5. # appending .domain is the MUA's job.
  6. append_dot_mydomain = no
  7. readme_directory = no
  8.  
  9. # See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
  10. # fresh installs.
  11. compatibility_level = 2
  12.  
  13. # TLS parameters
  14. smtpd_tls_cert_file=/etc/ssl/certs/mail.crt
  15. smtpd_tls_key_file=/etc/ssl/private/mail.key
  16. smtpd_use_tls=yes
  17. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  18. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  19.  
  20. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  21. # information on enabling SSL in the smtp client.
  22.  
  23. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  24. myhostname = mail.diario.prensa
  25.  
  26. mydomain = diario.prensa
  27.  
  28. alias_maps = hash:/etc/aliases
  29. alias_database = hash:/etc/aliases
  30.  
  31. #myorigin = /etc/mailname
  32. myorigin = $mydomain
  33.  
  34. mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
  35. relayhost =
  36. mynetworks = 127.0.0.0/8, 192.168.1.0/24
  37. mailbox_size_limit = 0
  38. recipient_delimiter = +
  39. inet_interfaces = all
  40. #inet_protocols = all
  41. inet_protocols = ipv4
  42.  
  43. #home_mailbox = Maildir/
  44. #mailbox_command = /usr/lib/dovecot/dovecot-lda -f "$SENDER" -a "$RECIPIENT"
  45.  
  46. # SMTP-Auth settings
  47. smtpd_sasl_type = dovecot
  48. smtpd_sasl_path = private/auth
  49. smtpd_sasl_auth_enable = yes
  50. smtpd_sasl_security_options = noanonymous
  51. smtpd_sasl_local_domain = $myhostname
  52. smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject
  53.  
RAW Paste Data