E-mail setup problem


(Rinus Bakker) #1

My pod refuses to send mail
Input:
$ RAILS_ENV=production bundle exec rails runner ‘Notifier.admin(“test message”, User.where(username: “rinus_bakker”)).each(&:deliver_now)’

output:
WARNING: Namespace production not found in /home/plusfriends.net/diaspora/config/diaspora.yml
Rack::SSL is enabled

But no mail being sent and no useful output info to find the problem.

The postfix server seems to be working

Input:
echo “test333” | mail -s “test333” sleeplessregulus@gmail.com

actually send the mail.

Have been trying to understand the problem for a couple of weeks but to no avail.

Any help is appreciated!
Rinus


(Spc Cw) #2

Well, do you have your diaspora.yml config set to production?

rails_environment: 'production'

When I run the send message code I don’t get the warning like you do.

Also note that pod maintenance questions belong more to “Podmin Support” forum, not just “Support”.


(Rinus Bakker) #3

Thank you @SpcCw
Yes I did set: rails_environment: ‘production’

Thanks for the hint about Podmin Support I will try again there.