Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 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. masqerade_domains = mail.mydomain.com
  9. masqerade_exceptions = root
  10.  
  11. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  12. biff = no
  13.  
  14. # appending .domain is the MUA's job.
  15. append_dot_mydomain = no
  16.  
  17. # Uncomment the next line to generate "delayed mail" warnings
  18. #delay_warning_time = 4h
  19.  
  20. readme_directory = no
  21.  
  22. # TLS parameters
  23. smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  24. smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  25. smtpd_use_tls=yes
  26. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  27. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  28.  
  29. smtpd_recipient_restrictions = reject_invalid_hostname,
  30. reject_unknown_recipient_domain,
  31. reject_unauth_destination,
  32. reject_rbl_client sbl.spamhaus.org,
  33. permit
  34.  
  35. smtpd_helo_restrictions = reject_invalid_helo_hostname,
  36. reject_non_fqdn_helo_hostname,
  37. reject_unknown_helo_hostname
  38.  
  39. smtpd_client_restrictions = reject_rbl_client dnsbl.sorbs.net
  40.  
  41. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  42. # information on enabling SSL in the smtp client.
  43.  
  44. myhostname = mail.mydomain.com
  45. alias_maps = hash:/etc/aliases
  46. virtual_alias_domains = mail.mydomain.com
  47. virtual_alias_maps = hash:/etc/postfix/virtual
  48. mydestination = $myhostname, localhost.$mydomain, localhost
  49. relayhost =
  50. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  51. mailbox_size_limit = 0
  52. recipient_delimiter = +
  53. inet_interfaces = all
  54. smtpd_relay_restrictions = reject_invalid_hostname, reject_unknown_recipient_domain, reject_unauth_destination, reject_rbl_client sbl.spamhaus.org, permit
  55.  
  56. support@mydomain.com me@gmail.com
  57. @mydomain.com client@yahoo.com
  58.  
  59. Feb 3 03:15:54 vm01 postfix/smtpd[8910]: NOQUEUE: reject: RCPT from mail-vk0-f50.google.com[209.85.213.50]: 554 5.7.1 <support@mydomain.com>: Relay access denied; from=<me@gmail.com> to=<support@mydomain.com> proto=ESMTP helo=<mail-vk0-f50.google.com>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement