阿里免费企业邮箱配置


#1
env:
  LANG: en_US.UTF-8
  # DISCOURSE_DEFAULT_LOCALE: en

  ## How many concurrent web requests are supported? Depends on memory and CPU cores.
  ## will be set automatically by bootstrap based on detected CPUs, or you can override
  UNICORN_WORKERS: 4

  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: bbs.yuming.com

  ## Uncomment if you want the container to be started with the same
  ## hostname (-h option) as specified above (default "$hostname-$config")
  #DOCKER_USE_HOSTNAME: true

  ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: 'admin@yuming.com'

  ## TODO: The SMTP mail server used to validate new accounts and send notifications
  DISCOURSE_SMTP_ADDRESS: smtp.mxhichina.com
  DISCOURSE_SMTP_PORT: 80
  DISCOURSE_SMTP_USER_NAME: admin@yuming.com
  DISCOURSE_SMTP_PASSWORD: aabbccdd(企业邮箱登陆密码)
  DISCOURSE_SMTP_AUTHENTICATION: login
  DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
  DISCOURSE_SMTP_ENABLE_START_TLS: true

注意阿里企业邮箱端口必须为80,
DISCOURSE_DEVELOPER_EMAILS与网站管理员保持一致
邮箱登陆密码不要使用#字符

1、重建容器:
cd /var/discourse/
./launcher rebuild app

2、后台更换notification email,耐心等会就可以用了


(admini) #2

但是,不是说邮箱的化最好使用mail.yuming.com这种格式的吗?这种说法对吗?如果用这种格式要怎么配置?


(yq) #3

写给同样需要配置阿里云企业邮箱的用户:
我摸索了很久,直到参考上述设置把端口改成80配置成功.
阿里云企业邮箱的帮助页面只描述了25和465端口, 根本没有提到80端口…要不是看到前人的帖子谁能想到80