Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9717

Closed
Open
Created Oct 12, 2015 by Administrator@rootOwner

Mailroom can't access gmail-Account with correct credentials

Created by: maxigs

I just upgraded the awesome gitlab to the latest version (from source) to use the reply-by-email feature. Unfortunately after 2 days of trying i still can't get it to work and don't know where else to look anymore.

Here is what i get:

bundle exec rake gitlab:incoming_email:check RAILS_ENV=production
Checking Reply by email ...

Address formatted correctly? ... yes
MailRoom config exists? ... yes
IMAP server credentials are correct? ... no
  Try fixing it:
  Check that the information in config/mail_room.yml is correct
  For more information see:
  doc/incoming_email/README.md
  Please fix the error above and rerun the checks.
Init.d configured correctly? ... yes
MailRoom running? ... yes

Checking Reply by email ... Finished

I'm absolutely sure the credentials are correct. Using them for SMTP works, using them in an IMAP client also works.

Here is what i have:

$ cat config/mail_room.yml
mailboxes:
  -
    # IMAP server host
    host: "imap.gmail.com"
    # IMAP server port
    port: 993
    # Whether the IMAP server uses SSL
    ssl: true
    # Whether the IMAP server uses StartTLS
    start_tls: false
    # Email account username. Usually the full email address.
    email: "[email protected]"
    # Email account password
    password: "--REMOVED--"
    # The name of the mailbox where incoming mail will end up. Usually "inbox".
    name: "inbox"
    # Always "sidekiq".
    delivery_method: "sidekiq"
    # Always true.
    delete_after_delivery: true
    delivery_options:
      # The URL to the Redis server used by Sidekiq. Should match the URL in config/resque.yml.
      redis_url: redis://localhost:6379
      # Always "resque:gitlab".
      namespace: resque:gitlab
      # Always "incoming_email".
      queue: incoming_email
      # Always "EmailReceiverWorker"
      worker: EmailReceiverWorker

Mailbox is a google-apps account that i have been using forever. Allowing log-in from less secure apps is activated globally for the google-apps-account as well as the user of the mailbox used for gitlab.

Is there any further way to debug the issue? I don't see any logs showing up in log/mail_room.log also.

Assignee
Assign to
Time tracking