Added by Solomon Pea about 3 years ago
I setup an OP 12.2 with docker installation, OP URL is http://localhost:8080.
However, I cannot make "Email notifications" to work. Below is my configuration.
Emission email address: myaccount@gmail.com
Email delivery method: smtp
SMTP server: smtp.gmail.com
SMTP port: 587
SMTP HELP domain: smtp.gmail.com
SMTP authentication: login
SMTP username: myaccount@gmail.com
SMTP password: mypassword
Automatically use STARTTLS if available: true
Use SSL connection: fale
I got "An error occurred while sending mail (535-5.7.8 Username and Password not accepted. Learn more at )".
Can anyone help?
Replies (4)
Hi Solomon
in my docker-compose yml it looks like this and it works:
(...) x-op-app: &app <<: *image <<: *restart_policy environment: RAILS_CACHE_STORE: "memcache" OPENPROJECT_CACHE__MEMCACHE__SERVER: "cache:11211" OPENPROJECT_RAILS__RELATIVE__URL__ROOT: "${OPENPROJECT_RAILS__RELATIVE__URL__ROOT:-}" DATABASE_URL: "${DATABASE_URL:-postgres://postgres:HIDDEN@db/openproject?pool=20&encoding=unicode&reconnect=true}" RAILS_MIN_THREADS: 4 RAILS_MAX_THREADS: 16 # set to true to enable the email receiving feature. See ./docker/cron for more options IMAP_ENABLED: 'true' IMAP_SSL: 'true' IMAP_PORT: 993 IMAP_HOST: 'imap.gmail.com' IMAP_USERNAME: 'openproject' IMAP_PASSWORD: 'HIDDEN' IMAP_CHECK_INTERVAL: 600 IMAP_ALLOW_OVERRIDE: type,status,priority,fixed_version (...)Additionally do not forget to create an APP PASSWORD for your gmail account that you would like to use for the IMAP
https://support.google.com/accounts/answer/185833?hl=en
Thank you.
I managed to make it work with APP password setup in gmail account.
Thank you for your feedback and you are very welcome