Set correct sender address for postmaster mails

Problem found - maybe in file email_parser.rb:
reply_mail[:from] = EmailAddress.find_by(channel: channel).email
This returns an arbitrary Mail address.

Doing the same in the console
EmailAddress.find_by(channel:Channel.find(3))
returns the used “from” mail in the ovesized message.

After editing this mail address the above command returns one of the other mail addresses.

Maybe
reply_mail[:from] = Setting.get('notification_sender')
would be better here?

As @MrGeneration wrote in Notification sender is not working the sender should be a groups mail address. But the code does not look like using a group specific address.
What am I missing here?