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

Stuff
Sunday, May 27th, 2007 at 7:45:46pm UTC 

  1. rm /etc/postfix/main.cf
  2. touch /etc/postfix/main.cf
  3.  
  4. postconf -e 'virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf'
  5. postconf -e 'virtual_mailbox_base = /home/vmail/'
  6. postconf -e 'virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf'
  7. postconf -e 'virtual_uid_maps = static:5000'
  8. postconf -e 'virtual_gid_maps = static:5000'
  9. postconf -e 'virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf'
  10. postconf -e 'smtp_tls_security_level = encrypt'
  11. postconf -e 'smtp_tls_cert_file = /etc/ssl/ashley.cert'
  12. postconf -e 'smtp_tls_key_file = /etc/ssl/ashley.key'
  13. postconf -e 'relay_clientcerts = hash:/etc/ssl/relay_clientcerts'
  14. postconf -e 'smtp_tls_session_cache_database = btree:/var/spool/postfix/smtp_scache'
  15. postconf -e 'smtpd_tls_security_level = encrypt'
  16. postconf -e 'smtpd_tls_cert_file = /etc/ssl/ashley.cert'
  17. postconf -e 'smtpd_tls_key_file = /etc/ssl/ashley.key'
  18. postconf -e 'smtpd_tls_session_cache_database = btree:/var/spool/postfix/smtpd_scache'
  19. postconf -e 'tls_random_source = dev:/dev/urandom'
  20. postconf -e 'virtual_transport = dovecot'
  21. postconf -e 'dovecot_destination_recipient_limit = 1'
  22. postconf -e 'smtpd_sasl_auth_enable = yes'
  23. postconf -e 'smtpd_sasl_type = dovecot'
  24. postconf -e 'smtpd_sasl_path = private/auth'
  25. postconf -e 'smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination'
  26. postconf -e 'smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, permit_tls_clientcerts, reject'
  27. postconf -e 'smtpd_helo_restrictions = permit_mynetworks, reject_unknown_helo_hostname'
  28. postconf -e 'smtpd_sender_restrictions = permit_mynetworks, reject_unknown_sender_domain'
  29. postconf -e 'smtpd_data_restrictions = permit_mynetworks, reject_unauth_pipelining'
  30. postconf -e 'smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)'
  31. postconf -e 'alias_maps = hash:/etc/aliases'
  32. postconf -e 'mynetworks_style = subnet'
  33. postconf -e 'myhostname = ashley.tuxblogger.nl'
  34. postconf -e 'mydestination = ashley.tuxblogger.nl, localhost.tuxblogger.nl, localhost'
  35. postconf -e 'smtpd_tls_loglevel = 0'
  36. postconf -e 'smtp_tls_loglevel = 0'
  37. postconf -e 'content_filter = amavisfeed:[127.0.0.1]:10024'
  38. postconf -e 'mynetworks = 127.0.0.0/8, 192.168.1.0/24'
  39.  
  40. postfix reload
  41.  
  42. May 27 21:43:36 ashley postfix/smtpd[15180]: connect from ashley.tuxblogger.nl[84.245.7.46]
  43. May 27 21:43:37 ashley postfix/smtpd[15180]: 3AF75856F: client=ashley.tuxblogger.nl[84.245.7.46], sasl_method=PLAIN, sasl_username=[email protected]
  44. May 27 21:43:37 ashley postfix/cleanup[15188]: 3AF75856F: message-id=<4659DFC7.8090509@tuxblogger.nl>
  45. May 27 21:43:37 ashley postfix/qmgr[15177]: 3AF75856F: from=<[email protected]>, size=860, nrcpt=1 (queue active)
  46. May 27 21:43:37 ashley postfix/smtp[15190]: 3AF75856F: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.44, delays=0.36/0.06/0.02/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 127.0.0.1[127.0.0.1])
  47. May 27 21:43:37 ashley postfix/smtpd[15180]: disconnect from ashley.tuxblogger.nl[84.245.7.46]
  48.  
  49. postconf | grep restrictionssmtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, permit_tls_clientcerts, reject
  50. smtpd_data_restrictions = permit_mynetworks, reject_unauth_pipelining
  51. smtpd_end_of_data_restrictions =
  52. smtpd_etrn_restrictions =
  53. smtpd_helo_restrictions = permit_mynetworks, reject_unknown_helo_hostname
  54. smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  55. smtpd_sender_restrictions = permit_mynetworks, reject_unknown_sender_domain

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