Email from-adress and hostnames in email links
Created by: asperling
... seem to be not configurable. The from adress won't change from notify@localhost and the latter is still http://localhost/path no matter what I do.
The former causes a lot of "Sender address rejected: need fully-qualified address." errors.
I'm on the stable branch, followed the installation instructions very precisely (on Debian Squeeze), except that I'm running exim4 instead of postfix and tried the following:
- Appended
config.action_mailer.default_url_options = {
:host => 'mydomain.com',
}
to config/production.rb
- Set the following in gitlab.yml
web:
host: mydomain.com
port: 88
https: false
email:
from: noreply@mydomain.com
host: ucblack.com
But still email from adress sticks to notify@localhost and the links to projects for example looking like http://locahost/project. I restarted nginx and gitlab every time I did some changes. Another problem is, don't know if it's relevant, there are no emails sent, when there is a new commit (like in an other issue) and I get an ActiveRecord::RecordNotFound error that says Couldn't find UsersProject with id=5, stated in another issue as well. But thought to solve that afterwards.
Maybe it helps to switch from stable to master? Do I need to change the database when doing so?
I'm sorry to bother you and I know there are lots of related issues. I've read them all but it didn't help the case. Maybe I'm missing something?
Thanks in advance ~ Achim
PS: There are no errors when running the gitlab:app:status Rake task