Guest User

Untitled

a guest
Jul 26th, 2014
236
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. **postconf -n**:
  2.  
  3. alias_database = hash:/etc/aliases
  4. alias_maps = hash:/etc/aliases
  5. config_directory = /etc/postfix
  6. inet_interfaces = all
  7. local_recipient_maps = proxy:unix:passwd.byname $alias_maps
  8. mailbox_size_limit = 0
  9. mydestination = mail.domain.com, domain.com, localhost, localhost.localdomain
  10. myhostname = mail.domain.com
  11. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  12. myorigin = /etc/mailname
  13. recipient_delimiter = +
  14. relayhost =
  15. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  16. smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  17. smtpd_tls_cert_file = /etc/ssl/certs/mailcert.pem
  18. smtpd_tls_key_file = /etc/ssl/private/mail.key
  19. smtpd_tls_protocols = !SSLv2, !SSLv3
  20. smtpd_tls_security_level = may
  21. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  22. smtpd_use_tls = yes
  23.  
  24.  
  25. **master.cf**:
  26.  
  27. smtp inet n - - - - smtpd
  28. -o content_filter=spamassassin
  29. #smtp inet n - - - 1 postscreen
  30. #smtpd pass - - - - - smtpd
  31. #dnsblog unix - - - - 0 dnsblog
  32. #tlsproxy unix - - - - 0 tlsproxy
  33. submission inet n - - - - smtpd
  34. -o syslog_name=postfix/submission
  35. -o smtpd_tls_wrappermode=no
  36. -o smtpd_tls_security_level=encrypt
  37. -o smtpd_sasl_auth_enable=yes
  38. -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  39. -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
  40. -o milter_macro_daemon_name=ORIGINATING
  41. -o smtpd_sasl_type=dovecot
  42. -o smtpd_sasl_path=private/auth
  43. smtps inet n - - - - smtpd
  44. -o syslog_name=postfix/smtps
  45. -o smtpd_tls_wrappermode=yes
  46. -o smtpd_sasl_auth_enable=yes
  47. -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  48. -o milter_macro_daemon_name=ORIGINATING
  49. #628 inet n - - - - qmqpd
  50. pickup fifo n - - 60 1 pickup
  51. cleanup unix n - - - 0 cleanup
  52. qmgr fifo n - n 300 1 qmgr
  53. #qmgr fifo n - n 300 1 oqmgr
  54. tlsmgr unix - - - 1000? 1 tlsmgr
  55. rewrite unix - - - - - trivial-rewrite
  56. bounce unix - - - - 0 bounce
  57. defer unix - - - - 0 bounce
  58. trace unix - - - - 0 bounce
  59. verify unix - - - - 1 verify
  60. flush unix n - - 1000? 0 flush
  61. proxymap unix - - n - - proxymap
  62. proxywrite unix - - n - 1 proxymap
  63. smtp unix - - - - - smtp
  64. relay unix - - - - - smtp
  65. # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  66. showq unix n - - - - showq
  67.  
  68.  
  69. **/var/log/mail.log (modified)**:
  70.  
  71. Jul 26 13:37:08 Scratchy dovecot: imap-login: Login: user=<user>, method=PLAIN, rip=1.2.3.4, lip=4.5.6.7, mpid=20681, TLS, session=<2WC58hf/xgBeDEO/>
  72. Jul 26 13:37:08 Scratchy dovecot: imap-login: Login: user=<user>, method=PLAIN, rip=1.2.3.4, lip=4.5.6.7, mpid=20683, TLS, session=<Q6y88hf/zABeDEO/>
  73. Jul 26 13:37:42 Scratchy dovecot: imap(user): Disconnected: Logged out in=97 out=620
  74. Jul 26 13:37:47 Scratchy postfix/submission/smtpd[20685]: warning: hostname <address> does not resolve to address 4.5.6.7: No address associated with hostname
  75. Jul 26 13:37:47 Scratchy postfix/submission/smtpd[20685]: connect from unknown[4.5.6.7]
  76. Jul 26 13:37:47 Scratchy postfix/submission/smtpd[20685]: NOQUEUE: reject: RCPT from unknown[4.5.6.7]: 554 5.7.1 <unknown[4.5.6.7]>: Client host rejected: Access denied; from=<some@email.com> to=<some.other@email.com> proto=ESMTP helo=<8ZV1YY1PC>
  77. Jul 26 13:37:49 Scratchy postfix/submission/smtpd[20685]: disconnect from unknown[4.5.6.7]
RAW Paste Data