diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-25 00:35:35 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 00:35:35 +0800 |
commit | 52ffb67b33c1823933948c027b6f3605fb42ea7c (patch) | |
tree | c93ee7eb2bb1f8417d350f703afc53cf4dd872f8 /conf/app.ini | |
parent | 0d6c405ccbde9d20889893168f9f9599118e3f5c (diff) |
conf: overhaul email settings (#5940)
Diffstat (limited to 'conf/app.ini')
-rw-r--r-- | conf/app.ini | 65 |
1 files changed, 34 insertions, 31 deletions
diff --git a/conf/app.ini b/conf/app.ini index baec9d32..063ef4a9 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -167,6 +167,40 @@ ENABLE_LOGIN_STATUS_COOKIE = false ; The cookie name to store user login status. LOGIN_STATUS_COOKIE_NAME = login_status +[email] +; Whether to enable the email service. +ENABLED = false +; The prefix prepended to the subject line. +SUBJECT_PREFIX = `[%(BRAND_NAME)s] ` +; The SMTP server with its port, e.g. smtp.mailgun.org:587, smtp.gmail.com:587, smtp.qq.com:465 +; If the port ends is "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. +; If the server supports STARTTLS it will always be used. +HOST = smtp.mailgun.org:587 +; The email from address (RFC 5322). This can be just an email address, or the `"Name" <email@example.com>` format. +FROM = noreply@gogs.localhost +; The login user. +USER = noreply@gogs.localhost +; The login password. +PASSWORD = + +; Whether to disable HELO operation when the hostname is different. +DISABLE_HELO = +; The custom hostname for HELO operation, default is from system. +HELO_HOSTNAME = + +; Whether to skip verifying the certificate of the server. Only use this for self-signed certificates. +SKIP_VERIFY = false +; Whether to use client certificates. +USE_CERTIFICATE = false +CERT_FILE = custom/email/cert.pem +KEY_FILE = custom/email/key.pem + +; Whether to use "text/plain" as content format. +USE_PLAIN_TEXT = false +; Whether to attach a plaintext alternative to the MIME message while sending HTML emails. +; It is used to support older mail clients and make spam filters happier. +ADD_PLAIN_TEXT_ALT = false + ; Attachment settings for releases [release.attachment] ; Whether attachments are enabled. Defaults to `true` @@ -234,37 +268,6 @@ SKIP_TLS_VERIFY = false ; Number of history information in each page PAGING_NUM = 10 -[mailer] -ENABLED = false -; Buffer length of channel, keep it as it is if you don't know what it is. -SEND_BUFFER_LEN = 100 -; Prefix prepended to the subject line -SUBJECT_PREFIX = `[%(BRAND_NAME)s] ` -; Mail server -; Gmail: smtp.gmail.com:587 -; QQ: smtp.qq.com:465 -; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used. -HOST = -; Disable HELO operation when hostname are different. -DISABLE_HELO = -; Custom hostname for HELO operation, default is from system. -HELO_HOSTNAME = -; Do not verify the certificate of the server. Only use this for self-signed certificates -SKIP_VERIFY = -; Use client certificate -USE_CERTIFICATE = false -CERT_FILE = custom/mailer/cert.pem -KEY_FILE = custom/mailer/key.pem -; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format -FROM = -; Mailer user name and password -USER = -PASSWD = -; Use text/plain as format of content -USE_PLAIN_TEXT = false -; If sending html emails, then also attach a plaintext alternative to the MIME message, to support older mail clients and make spam filters happier. -ADD_PLAIN_TEXT_ALT = false - [cache] ; Either "memory", "redis", or "memcache", default is "memory" ADAPTER = memory |