Gitlab mail from adress is not every time correct

Hello,
yesterday I’ve update my gitlab to version 15.3.1-ee. Now I’ve problems with sending of mails.

When I use the gitlab-rails console and send a mail from this with Notify.test_email('user@mydomain.de', 'Titel der Mail', 'Inhalt der Testnachricht.').deliver_now it works without problems.
Syslog from postfix

Aug 30 19:30:31 deponie postfix/pickup[1716995]: 77DC41C04C8F: uid=997 from=<gitlab@mydomain.de>
Aug 30 19:30:31 deponie postfix/cleanup[1762634]: 77DC41C04C8F: message-id=<630e493774719_1a897e46641296a@deponie.mail>
Aug 30 19:30:31 deponie postfix/qmgr[1343]: 77DC41C04C8F: from=<gitlab@mydomain.de>, size=666, nrcpt=1 (queue active)
Aug 30 19:30:31 deponie postfix/smtp[1762636]: 77DC41C04C8F: to=<user@mydomain.de>, relay=mx2ed2.netcup.net[91.204.46.210]:25, delay=0.44, delays=0.01/0/0.11/0.32, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 958CE1C00F2)
Aug 30 19:30:31 deponie postfix/qmgr[1343]: 77DC41C04C8F: removed

And I receive this mail.

After this comes some mails from gitlab. I see it in syslog:

Aug 30 19:30:57 deponie postfix/qmgr[1343]: 7D4BF1C00DB8: from=<gitlab@gitlab.local>, size=10051, nrcpt=1 (queue active)
Aug 30 19:30:57 deponie postfix/qmgr[1343]: 41F711C02FA7: from=<gitlab@gitlab.local>, size=667, nrcpt=1 (queue active)
Aug 30 19:30:58 deponie postfix/smtp[1762636]: 7D4BF1C00DB8: to=<admin@example.com>, relay=mx2ed2.netcup.net[91.204.46.210]:25, delay=118128, delays=118127/0/0.11/0.29, dsn=4.3.0, status=deferred (host mx2ed2.netcup.net[91.204.46.210] said: 451 4.3.0 pymilter: untrapped exception in pythonfilter (in reply to end of DATA command))
Aug 30 19:30:58 deponie postfix/smtp[1763205]: 41F711C02FA7: to=<user@mydomain.de>, relay=mx2ed2.netcup.net[91.204.46.210]:25, delay=93004, delays=93004/0/0.11/0.31, dsn=4.3.0, status=deferred (host mx2ed2.netcup.net[91.204.46.210] said: 451 4.3.0 pymilter: untrapped exception in pythonfilter (in reply to end of DATA command))

The error means that the mails are not accepted, because the mail address is a unofficial address.
How comes the address gitlab@gitlab.local and admin@example.com?

My changes in gitlab.rb:

external_url 'http://gitlab.local'
gitlab_rails['gitlab_email_from'] = 'gitlab@mydomain.de'
gitlab_rails['lfs_storage_path'] = "/sw-raid/gitlab/lfs-objects"
user['git_user_email'] = "gitlab@mydomain.de"
web_server['external_users'] = ['www-data']
nginx['enable'] = false
alertmanager['admin_email'] = 'user@mydomain.de'
gitlab_rails['backup_path'] = '/sw-raid/backup/gitlab'
high_availability['mountpoint'] = ["/sw-raid"]
gitlab_rails['lfs_storage_path'] = "/sw-raid/gitlab/lfs-objects"
git_data_dirs({ "default" => { "path" => "/sw-raid/gitlab/git-data"}})

My system setup is:

  • debian 5.10.113-1
  • postfix
  • external web server nginx

Now I have become with this update also two new internal accounts GitLab AlertBot and GitLab Support Bot. Booth have an unofficial mail address alert@gitlab.local and support@gitlab.local. How can I change/correct it?

Thanks for our help,
Bernd