Advertisement
Guest User

Untitled

a guest
Aug 5th, 2016
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. config.action_mailer.delivery_method = :smtp
  2. config.action_mailer.smtp_settings = {
  3. :address => 'mail.mysite.com',
  4. :domain => 'mysite.com',
  5. :port => 587,
  6. :authentication => :plain,
  7. :enable_starttls_auto => true,
  8. :openssl_verify_mode => 'none',
  9. :user_name => 'myuser@mysite.com',
  10. :password => 'test'
  11. }
  12. config.action_mailer.raise_delivery_errors = true
  13. config.action_mailer.perform_deliveries = true
  14.  
  15. # 2.2.9: /etc/dovecot/dovecot.conf
  16. # OS: Linux 4.2.0-23-generic x86_64 Ubuntu 14.04.4 LTS
  17. auth_mechanisms = plain login
  18. mail_location = maildir:~/Maildir
  19. mail_privileged_group = mail
  20. managesieve_notify_capability = mailto
  21. managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
  22. namespace inbox {
  23. location =
  24. mailbox Drafts {
  25. special_use = Drafts
  26. }
  27. mailbox Junk {
  28. special_use = Junk
  29. }
  30. mailbox Sent {
  31. special_use = Sent
  32. }
  33. mailbox "Sent Messages" {
  34. special_use = Sent
  35. }
  36. mailbox Trash {
  37. special_use = Trash
  38. }
  39. prefix =
  40. }
  41. passdb {
  42. args = /etc/dovecot/dovecot-sql.conf.ext
  43. driver = sql
  44. }
  45. plugin {
  46. sieve = ~/.dovecot.sieve
  47. sieve_dir = ~/sieve
  48. }
  49. protocols = imap pop3 sieve
  50. service auth-worker {
  51. user = vmail
  52. }
  53. service auth {
  54. unix_listener /var/spool/postfix/private/auth {
  55. group = postfix
  56. mode = 0666
  57. user = postfix
  58. }
  59. unix_listener /var/spool/postfix/private/dovecot-auth {
  60. group = postfix
  61. mode = 0660
  62. user = postfix
  63. }
  64. unix_listener auth-userdb {
  65. mode = 0600
  66. user = vmail
  67. }
  68. user = dovecot
  69. }
  70. service imap-login {
  71. inet_listener imap {
  72. port = 0
  73. }
  74. }
  75. service lmtp {
  76. unix_listener /var/spool/postfix/private/dovecot-lmtp {
  77. group = postfix
  78. mode = 0600
  79. user = postfix
  80. }
  81. }
  82. ssl_cert = </etc/dovecot/dovecot.pem
  83. ssl_cipher_list = ALL:!LOW:!SSLv2:ALL:!aNULL:!ADH:!eNULL:!EXP:RC4+RSA:+HIGH:+MEDIUM
  84. ssl_key = </etc/dovecot/private/dovecot.pem
  85. userdb {
  86. args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
  87. driver = static
  88. }
  89. protocol pop3 {
  90. mail_max_userip_connections = 10
  91. pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  92. }
  93. protocol imap {
  94. imap_client_workarounds = delay-newmail
  95. mail_max_userip_connections = 10
  96. }
  97. protocol lda {
  98. deliver_log_format = msgid=%m: %$
  99. mail_plugins = sieve
  100. postmaster_address = postmaster
  101. quota_full_tempfail = yes
  102. rejection_reason = Your message to <%t> was automatically rejected:%n%r
  103. }
  104.  
  105. alias_database = hash:/etc/aliases
  106. alias_maps = hash:/etc/aliases
  107. append_dot_mydomain = no
  108. biff = no
  109. config_directory = /etc/postfix
  110. inet_interfaces = all
  111. mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/dovecot.conf -m "${EXTENSION}"
  112. mailbox_size_limit = 0
  113. mydestination = localhost
  114. myhostname = mysite.com
  115. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  116. myorigin = /etc/mailname
  117. queue_directory = /var/spool/postfix
  118. readme_directory = no
  119. recipient_delimiter = +
  120. relayhost =
  121. smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
  122. smtpd_recipient_restrictions = permit_sasl_authenticated
  123. smtpd_relay_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
  124. smtpd_sasl_auth_enable = yes
  125. smtpd_sasl_path = private/auth
  126. smtpd_sasl_type = dovecot
  127. smtpd_tls_auth_only = yes
  128. smtpd_tls_cert_file = /etc/nginx/ssl/ssl-bundle.crt
  129. smtpd_tls_key_file = /etc/nginx/ssl/server.key
  130. smtpd_use_tls = yes
  131. virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
  132. virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
  133. virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
  134. virtual_transport = dovecot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement