Self-hosted GitLab Service Desk setup with iRedMail self-hosted

Hi all,

I hope I’m just missing something obvious, so I thought I’d check with people who might be more knowledgeable. Apologies if this isn’t the right place for this.

I’m trying to setup GitLab’s Service Desk feature on my self-hosted instance. My mail server is hosted separately using iRedMail, self-hosted on a separate virtual machine. My main problem is that the way sub-addressing is handled by iRedMail/Postfix is to put the email in a separate directory based on what comes after the delimiter (i.e. if the email was to, the email would be put in a folder called daiuske-daisuke-8-issue-). I can’t find a way for GitLab to scan for emails in all folders, or by a pattern (i.e. folders ending in issue, merge, etc.).
The setup currently works if I manually move emails into the Inbox folder.

My question is this: is it possible to get GitLab to scan multiple folders? If not, does anyone know how to get Postfix/Dovecot to automatically move new emails back to the Inbox or disable moving it to a separate folder?

I’m currently running GItLab 15.8.1-ee on Free. The configuration for incoming email/service desk is below:

gitlab_rails['incoming_email_enabled'] = true
gitlab_rails['incoming_email_address'] = "servicedesk+%{key}"
gitlab_rails['incoming_email_email'] = ""
gitlab_rails['incoming_email_password'] = "[REDACTED]"
gitlab_rails['incoming_email_host'] = ""
gitlab_rails['incoming_email_port'] = 993
gitlab_rails['incoming_email_ssl'] = true
gitlab_rails['incoming_email_start_tls'] = false
gitlab_rails['incoming_email_mailbox_name'] = "inbox"
gitlab_rails['incoming_email_idle_timeout'] = 60
gitlab_rails['incoming_email_delivery_method'] = "sidekiq"

gitlab_rails['service_desk_email_enabled'] = true
gitlab_rails['service_desk_email_address'] = "servicedesk+%{key}"
gitlab_rails['service_desk_email_email'] = ""
gitlab_rails['service_desk_email_password'] = "[REDACTED]"
gitlab_rails['service_desk_email_idle_timeout'] = 60

The IMAP settings are the same between both the service desk and incoming email configuration.

Any help will be greatly appreciated.
Thank you!

Nevermind, I stumbled upon the exact fix 2 minutes after posting this…

For anyone else who stumbles here and wants to know how I fixed it:

  1. Take a backup of your Postfix configuration file: cp /etc/postfix/{,.bak}
  2. Find lines below in /etc/postfix/
# Use dovecot's `deliver` program as LDA.
dovecot unix    -       n       n       -       -      pipe
    flags=DRh ... -m ${extension}
  1. Remove the -m ${extension}
  2. Restart Postfix sudo /etc/init.d/postfix restart
  3. Profit :slight_smile: