Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Untitled
Friday, October 10th, 2008 at 11:33:37pm UTC 

  1. I made the server certificates from instructions at http://postfix.state-of-mind.de/patrick.koetter/smtpauth/postfix_tls_support.html
  2. and  I got some inspirations from http://souptonuts.sourceforge.net/postfix_tutorial.html
  3.  
  4. Oct 11 00:15:17 david-laptop postfix/smtpd[8395]: idle timeout -- exiting
  5. Oct 11 00:17:24 david-laptop postfix/pickup[8393]: 3AEB424675D: uid=1000 from=<david>
  6. Oct 11 00:17:24 david-laptop postfix/cleanup[8421]: 3AEB424675D: message-id=<20081010231724.[email protected]>
  7. Oct 11 00:17:24 david-laptop postfix/qmgr[8392]: 3AEB424675D: from=<[email protected]>, size=411, nrcpt=1 (queue active)
  8. Oct 11 00:17:27 david-laptop postfix/smtp[8423]: certificate verification failed for smtp.gmail.com[209.85.135.109]:587: untrusted issuer /C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/OU=Certification Services Division/CN=Thawte Premium Server CA/emailAddress=[email protected]
  9. Oct 11 00:17:28 david-laptop postfix/smtp[8423]: 3AEB424675D: to=<[email protected]>, relay=smtp.gmail.com[209.85.135.109]:587, delay=4.7, delays=0.03/0.15/4/0.54, dsn=5.5.1, status=bounced (host smtp.gmail.com[209.85.135.109] said: 530-5.5.1 Authentication Required. Learn more at                     530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 y6sm9694020mug.7 (in reply to MAIL FROM command))
  10. Oct 11 00:17:29 david-laptop postfix/cleanup[8421]: 6E4C824675E: message-id=<20081010231729.[email protected]>
  11. Oct 11 00:17:29 david-laptop postfix/bounce[8427]: 3AEB424675D: sender non-delivery notification: 6E4C824675E
  12. Oct 11 00:17:29 david-laptop postfix/qmgr[8392]: 6E4C824675E: from=<>, size=2684, nrcpt=1 (queue active)
  13. Oct 11 00:17:29 david-laptop postfix/qmgr[8392]: 3AEB424675D: removed
  14. Oct 11 00:17:29 david-laptop postfix/local[8428]: 6E4C824675E: to=<[email protected]>, relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
  15. Oct 11 00:17:29 david-laptop postfix/qmgr[8392]: 6E4C824675E: removed
  16. david@david-laptop:/etc/postfix:565$
  17.  
  18. david@david-laptop:/etc/postfix:565$ telnet localhost 25
  19. Trying 127.0.0.1...
  20. Connected to localhost.
  21. Escape character is '^]'.
  22. 220 david-laptop.davidroderick.co.uk ESMTP Postfix (Ubuntu)
  23. EHLO u
  24. 250-david-laptop.davidroderick.co.uk
  25. 250-PIPELINING
  26. 250-SIZE 10240000
  27. 250-VRFY
  28. 250-ETRN
  29. 250-ENHANCEDSTATUSCODES
  30. 250-8BITMIME
  31. 250 DSN
  32. STARTTLS
  33. 502 5.5.1 Error: command not implemented
  34.  
  35.  
  36. ###############
  37. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  38. mydomain = davidroderick.co.uk
  39. myhostname = david-laptop.davidroderick.co.uk
  40. mynetworks = localhost
  41. alias_maps = hash:/etc/aliases
  42. alias_database = hash:/etc/aliases
  43.  
  44.  
  45. # Debian specific:  Specifying a file name will cause the first
  46. # line of that file to be used as the name.  The Debian default
  47. # is /etc/mailname.
  48. #myorigin = /etc/mailname
  49.  
  50. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  51. biff = no
  52.  
  53. # appending .domain is the MUA's job.
  54. append_dot_mydomain = no
  55.  
  56. # Uncomment the next line to generate "delayed mail" warnings
  57. #delay_warning_time = 4h
  58.  
  59. readme_directory = no
  60.  
  61. inet_interfaces = localhost
  62. mynetworks_style = locallost
  63. mynetworks_style = subnet
  64. relayhost = [smtp.gmail.com]:587
  65.  
  66. smtp_sasl_auth_enable = yes
  67. smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
  68. smtp_sasl_security_options =
  69.  
  70. smtp_use_tls = yes
  71. #smtpd_tls_auth_only = yes
  72. smtpd_tls_CApath = /etc/postfix/certs
  73.  
  74.  smtpd_tls_key_file = /etc/postfix/newreq.pem
  75.  smtpd_tls_cert_file = /etc/postfix/newcert.pem
  76.  smtpd_tls_CAfile = /etc/postfix/cacert.pem
  77.  smtpd_tls_loglevel = 3
  78.  smtpd_tls_received_header = yes
  79.  smtpd_tls_session_cache_timeout = 3600s
  80.  tls_random_source = dev:/dev/urandom
  81.  
  82. ############
  83. ##   Add these lines to the bottom on main.cf
  84.     ##
  85.     ##
  86.  
  87.  
  88.     ## TLS Settings
  89.     #
  90.     # For no logs set = 0
  91. #    smtp_tls_loglevel = 1
  92.     #
  93.     # smtp_enforce_tls = yes
  94.     # Above is commented because doing it site by site below
  95.     smtp_tls_per_site = hash:/etc/postfix/tls_per_site
  96.     #
  97.     smtp_tls_CAfile = /etc/postfix/cacert.pem
  98.     smtp_tls_cert_file = /etc/postfix/FOO-cert.pem
  99.     smtp_tls_key_file = /etc/postfix/FOO-key.pem
  100.     smtp_tls_session_cache_database = btree:/var/run/smtp_tls_session_cache
  101.     smtp_use_tls = yes
  102.     smtpd_tls_session_cache_database = btree:/var/run/smtpd_tls_session_cache
  103.     smtpd_use_tls = yes
  104.  
  105.     ##  SASL Settings
  106. #     # This is going in to THIS server
  107. #     smtpd_sasl_auth_enable = no
  108. #     # We need this
  109. #     smtp_sasl_auth_enable = yes
  110. #     smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
  111. #     smtpd_sasl_local_domain = $myhostname
  112. #     smtp_sasl_security_options = noanonymous
  113. #     #smtp_sasl_security_options =
  114. #     smtp_sasl_tls_security_options = noanonymous
  115. #     smtpd_sasl_application_name = smtpd
  116.  
  117.  
  118.     ## Gmail Relay
  119. #    relayhost = [smtp.gmail.com]
  120.  
  121.     ## Good for Testing
  122.     # sender_bcc_maps = hash:/etc/postfix/bcc_table
  123.  
  124.     # Disable DNS Lookups
  125.     disable_dns_lookups = yes
  126.     #
  127.     # Great New feature Address Mapping
  128.     #  for example may mchirico@localhost to [email protected]
  129.     smtp_generic_maps = hash:/etc/postfix/generic
  130.     #
  131.     #
  132.     transport_maps = hash:/etc/postfix/transport

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right