Has anyone been able to setup an email forwarder towards Gitlab's "Service Desk" feature's email address ?

Operating System & Version
8
cPanel & WHM Version
updated daily

mec-forum

Member
Jun 18, 2019
20
4
3
Italy
cPanel Access Level
Root Administrator
I'm talking about this feature where anyone can send an email and it will create a ticket for them. In the documentation it is recommended to use an email alias (which is the same as a forwarder in cpanel, from my understanding). I tried to configure an email forwarder for the target address but any email sent to it does not show up in gitlab.

I think this may have to do with how cpanel forwards the emails and/or how gitlab parses the received emails. Can someone test this? How could I troubleshoot this?

My first idea is to setup a global mail filter on my alias email to pipe incoming mail to a php script that does the forwarding. But I'm not sure if I can keep the original 'from' address.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,357
545
273
cPanel Access Level
Root Administrator
Hey there! If you create a forwarder, cPanel just moves the message along to the final destination. It wouldn't look any different than any other email in the server logs.

This may be a better question for GitLab's team if you can confirm the email is leaving your server and reaching their network.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,357
545
273
cPanel Access Level
Root Administrator
In order to see that information you would need to check the mail log at /var/log/exim_mainlog as that would show the entire email transaction. You would see the message leave the server and reach the other network with a log entry like this, as this is an example of a message leaving the server going to Gmail:

Code:
2021-01-03 15:40:40 1kwAB5-00Cie8-S7 => [email protected] <[email protected]> R=dkim_lookuphost T=dkim_remote_smtp H=gmail-smtp-in.l.google.com [209.85.201.27] X=TLS1.2:ECDHE-ECDSA-AES128-GCM-SHA256:128 CV=yes C="250 2.0.0 OK  1609706441 bb2si23891393qvb.25 - gsmtp"
If you see a similar entry on your system that confirms the mail has left your server and has reached the other network.