I have set up the email settings and gitlab is sending emails perfectly 
(i.e: in forgot password feature).


But when enabling *EmailsOnPushWorker* and trying to send an email when 
pushing some changes, I get an error.


Net::SMTPFatalError: 553 5.7.1 <u...@xxx.com>: Sender address rejected: not 
owned by user no-re...@xxx.com

It seems the *email_from* field is not the default one but the user's email 
that is pushing the changes.


Is it possible to overwrite this value to use use no_re...@xxx.com to send 
emails in EmailsOnPushWorker job? 


The ones that are currently sending these emails are the users who push the 
changes with their own email addresses. I want to use no-re...@xxx.com 
every time.


Thanks!


------------------------------

In gitlab.yml I've set up the from field.


email_from: "no-re...@xxx.com"
email_display_name: "GitLab"


In intializers/smtp_settings.rb I have all my SMTP settings.


In environment/production.rb I have the same settings plus this line
config.action_mailer.default_options = {from: 'no-re...@xxx.com'}

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/3ba817c7-27cc-497f-85aa-b947b0b154f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to