Project

General

Profile

RE: Redmine sending e-mail on Ubuntu ยป configuration.yml

Alexandre Faria Pierini, 2018-05-04 21:27

 
1
# = Redmine configuration file
2
#
3
# Each environment has it's own configuration options.  If you are only
4
# running in production, only the production block needs to be configured.
5
# Environment specific configuration options override the default ones.
6
#
7
# Note that this file needs to be a valid YAML file.
8
# DO NOT USE TABS! Use 2 spaces instead of tabs for identation.
9
#
10
# == Outgoing email settings (email_delivery setting)
11
#
12
# === Common configurations
13
#
14
# ==== Sendmail command
15
#
16
 production:
17
   email_delivery:
18
     delivery_method: :sendmail
19
#
20
# ==== Simple SMTP server at localhost
21
#
22
 production:
23
   email_delivery:
24
     delivery_method: :smtp
25
     smtp_settings:
26
       address: "localhost"
27
       port: 25
28
#
29
# ==== SMTP server at example.com using LOGIN authentication and checking HELO for foo.com
30
#
31
 production:
32
   email_delivery:
33
     delivery_method: :smtp
34
     smtp_settings:
35
       address: "example.com"
36
       port: 25
37
       authentication: :login
38
       domain: 'foo.com'
39
       user_name: 'myaccount'
40
       password: 'password'
41
#
42
# ==== SMTP server at example.com using PLAIN authentication
43
#
44
 production:
45
   email_delivery:
46
     delivery_method: :smtp
47
     smtp_settings:
48
       address: "example.com"
49
       port: 25
50
       authentication: :plain
51
       domain: 'example.com'
52
       user_name: 'myaccount'
53
       password: 'password'
54
#
55
# ==== SMTP server at using TLS (GMail)
56
#
57
# This requires some additional configuration.  See the article at:
58
# http://redmineblog.com/articles/setup-redmine-to-send-email-using-gmail/
59
#
60
# production:
61
#   email_delivery:
62
#     delivery_method: :smtp
63
#     smtp_settings:
64
#       tls: true
65
#       enable_starttls_auto: true
66
#       address: "smtp.gmail.com"
67
#       port: 587
68
#       domain: "smtp.gmail.com" # 'your.domain.com' for GoogleApps
69
#       authentication: :plain
70
#       user_name: "your_email@gmail.com"
71
#       password: "your_password"
72
#
73
#
74
# === More configuration options
75
#
76
# See the "Configuration options" at the following website for a list of the
77
# full options allowed:
78
#
79
# http://wiki.rubyonrails.org/rails/pages/HowToSendEmailsWithActionMailer
80

    
81

    
82
# default configuration options for all environments
83
[shell]
84
production
85
default:
86
  # Outgoing emails configuration (see examples above)
87
  email_delivery:
88
    delivery_method: :sendmail
89
    smtp_settings:
90
      address: email-ssl.com.br
91
      port: 465
92
      ssl: true
93
	domain: mairinque.sp.gov.br
94
      authentication: :login
95
      user_name: "suporte@mairinque.sp.gov.br"
96
      password: "sistemaspadrao"
97
      enable_starttls_auto: true	
98
[/shell]
99
  # Absolute path to the directory where attachments are stored.
100
  # The default is the 'files' directory in your Redmine instance.
101
  # Your Redmine instance needs to have write permission on this
102
  # directory.
103
  # Examples:
104
  # attachments_storage_path: /var/redmine/files
105
  # attachments_storage_path: D:/redmine/files
106
  attachments_storage_path:
107

    
108
  # Configuration of the autologin cookie.
109
  # autologin_cookie_name: the name of the cookie (default: autologin)
110
  # autologin_cookie_path: the cookie path (default: /)
111
  # autologin_cookie_secure: true sets the cookie secure flag (default: false)
112
  autologin_cookie_name:
113
  autologin_cookie_path:
114
  autologin_cookie_secure:
115

    
116
  # Configuration of SCM executable command.
117
  #
118
  # Absolute path (e.g. /usr/local/bin/hg) or command name (e.g. hg.exe, bzr.exe)
119
  # On Windows + CRuby, *.cmd, *.bat (e.g. hg.cmd, bzr.bat) does not work.
120
  #
121
  # On Windows + JRuby 1.6.2, path which contains spaces does not work.
122
  # For example, "C:\Program Files\TortoiseHg\hg.exe".
123
  # If you want to this feature, you need to install to the path which does not contains spaces.
124
  # For example, "C:\TortoiseHg\hg.exe".
125
  #
126
  # Examples:
127
  # scm_subversion_command: svn                                       # (default: svn)
128
  # scm_mercurial_command:  C:\Program Files\TortoiseHg\hg.exe        # (default: hg)
129
  # scm_git_command:        /usr/local/bin/git                        # (default: git)
130
  # scm_cvs_command:        cvs                                       # (default: cvs)
131
  # scm_bazaar_command:     bzr.exe                                   # (default: bzr)
132
  # scm_darcs_command:      darcs-1.0.9-i386-linux                    # (default: darcs)
133
  #
134
  scm_subversion_command:
135
  scm_mercurial_command:
136
  scm_git_command:
137
  scm_cvs_command:
138
  scm_bazaar_command:
139
  scm_darcs_command:
140

    
141
  # Key used to encrypt sensitive data in the database (SCM and LDAP passwords).
142
  # If you don't want to enable data encryption, just leave it blank.
143
  # WARNING: losing/changing this key will make encrypted data unreadable.
144
  #
145
  # If you want to encrypt existing passwords in your database:
146
  # * set the cipher key here in your configuration file
147
  # * encrypt data using 'rake db:encrypt RAILS_ENV=production'
148
  #
149
  # If you have encrypted data and want to change this key, you have to:
150
  # * decrypt data using 'rake db:decrypt RAILS_ENV=production' first
151
  # * change the cipher key here in your configuration file
152
  # * encrypt data using 'rake db:encrypt RAILS_ENV=production'
153
  database_cipher_key:
154

    
155
# specific configuration options for production environment
156
# that overrides the default ones
157
production:
158

    
159
# specific configuration options for development environment
160
# that overrides the default ones
161
development:
    (1-1/1)