SMTP setting to change

Hi
I have new mail server settings, I have changed the settings in config file but do i need to change settings in any other file also?
Thanks.
Emil

Hey no that’s fine ! Doesn’t work ?

Dont know. really some maile go to users some dont:slight_smile:
what is
smtp_email_domain: what should i put in there?:slight_smile:

Its strange the mails going out use the old SMTP adress in header.
Are you sure i only need to change mail settings in config.yml?

Make sure you have restarted also delayed jobs workers, as emails are sent from background

I have restarted the hole sever and ngnix, Its strange

zenik, Do i restart delayed jobs workers for it self? Or should it work with just restarting ngnix

delayed workers, which you launch with “rake jobs:work” should be restarted separately

root@Kamerakit:~# rake jobs:work
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/usr/local/rvm/gems/ruby-2.1.2@sharetribe/bin/ruby_executable_hooks:15:in eval' /usr/local/rvm/gems/ruby-2.1.2@sharetribe/bin/ruby_executable_hooks:15:in'
(See full trace by running task with --trace)

This is not good?:slight_smile:

you are running command in wrong folder.
change dir to sharetribe project root and run

RAILS_ENV=production bundle exec rake jobs:work &

Thanks
Is it possible here to see what is wrong?
[Worker(host:Kamerakit.se pid:22764)] Starting job worker
2018-03-09T14:25:01-0500: [Worker(host:Kamerakit.se pid:22764)] Starting job worker
[Worker(host:Kamerakit.se pid:13188)] Job MessageSentJob (id=10569) (queue=default) RUNNING
2018-03-09T14:25:26-0500: [Worker(host:Kamerakit.se pid:13188)] Job MessageSentJob (id=10569) (queue=default) RUNNING
{“tag”:“delayed_job”,“free”:“Running job”,“type”:“running”,“structured”:{“job_name”:“MessageSentJob”,“args”:{“last_message_id”:1837,“community_id”:1}}}
{“tag”:“action_mailer”,“free”:“Delivering email”,“type”:“delivering_email”,“structured”:{“to”:[“hej@kamerakit.se”],“from”:[“hej@kamerakit.se”],“subject”:“Du har ett nytt meddelande i kamerakit.se från Emil Nikkhah”}}
Sent mail to hej@kamerakit.se (60109.1ms)
{“tag”:“delayed_job”,“free”:“Job error: #\u003cNet::ReadTimeout: Net::ReadTimeout\u003e”,“type”:“error”,“structured”:{“job_name”:“MessageSentJob”,“args”:{“last_message_id”:1837,“community_id”:1}}}
[Worker(host:Kamerakit.se pid:13188)] Job MessageSentJob (id=10569) (queue=default) FAILED (0 prior attempts) with Net::ReadTimeout: Net::ReadTimeout
2018-03-09T14:26:27-0500: [Worker(host:Kamerakit.se pid:13188)] Job MessageSentJob (id=10569) (queue=default) FAILED (0 prior attempts) with Net::ReadTimeout: Net::ReadTimeout
[Worker(host:Kamerakit.se pid:13188)] 1 jobs processed at 0.0164 j/s, 1 failed
2018-03-09T14:26:27-0500: [Worker(host:Kamerakit.se pid:13188)] 1 jobs processed at 0.0164 j/s, 1 failed

Those logs show timeout connecting to your smtp server.
Check your config and network settings, and probably test connection using other tools, like telnet