Anybody able to try and install Discourse as a normal Rails app (no Docker) and see why it won't send emails from ones localhost SMTP server?
Sending emails from other Rails apps work just fine.
https://meta.discourse.org/t/emails-with-local-smtp/23645/16
Related
I´m running an app in ruby 1.8.7 with rails 3.2.1 using Phusion Passenger version 3.0.7. I did not develop nor deployed this app and I´m really new to Rails. This error comes up when the system is sending the user an email with a password recovery link. This probably started after a migration ( I´ve been told ).
Trying to debug the problem I´ve started the app with 'rails server -b 5.39.95.126 -p 8000' in order to see what it would log into the terminal.
To my surprise this way the app works fine.
Thanks for the help.
My problem was with the configuration of App, the config.action_mailer.smtp_settings was pointing at an inexistent e-mail account.
Thanks
I have a rails app deployed on Google Compute Engine.
Everything works fine and it requires to send mail in application so I follow this link for sending mail it works on local but I am unable to send mail through mandrill smtp settings.
I always get Timeout::Error (execution expired) error message, what could be the reason??
Any idea on what's could be the problem?
Google Compute Engine does not support outbound TCP connections on port 25. Instead you can use port 2525 that Mandrill also supports.
I'm new to rails and I'm trying to send emails through Ruby on Rails on the Cloud9 IDE however I am not receiving any even though it says it was successful.
Rendered invitation_mailer/invitation_email.html.erb (1.0ms)
Emailing invitation to example#example.com
InvitationMailer#invitation_email: processed outbound mail in 18.2ms
Is there a special configuration that I need to apply to Cloud9 to make it work?
Please note that ports 25, 587, and 465 are blocked from Cloud9 to the outside. Please try to run your mail server on a port like 2587.
I'm working on a rails project and can't figure out how the mail system works.
On the production server there is postfix installed, so I'm assuming thats how the emails are being sent (actually the headers show that it is postfix sending out the emails). However, in the application under config > environment > production.rb, there is nothing defining how to send the mail. There are no smtp settings, there is nothing saying its using sendmail or postfix, but the mails are being delivered. So how does the production server know to use postfix? I ask because the development server is using sendmail, so will anything need to be changed here for this to work or should it work out of the box (because it doesn't)?
Ok, so I figured out what was wrong, feel free to comment if you think my answer is not sufficient though or you have any feedback!
I found out from here that "Delivery defaults to an SMTP server running on your localhost on port 25." So on my production server it was working because postfix was installed. Where I was confused was staging, why wasn't sendmail working. I assumed sendmail was installed thats why! When I typed which sendmail, I got a result, so I assumed it was sendmail, but when I ran telnet <myhostname> 25 I got Exim 4.71! So a new assumption, sendmail is installed but not configured or setup on port 25, and exim is, so exim is handling mail.
I'm using this on amazon ec2 and just assumed that when I setup my instance, since its linux, it would have a mail server ready like I had on production. Obviously that was not a good assumption and I've now configured properly my prod, and I will try to use exim for staging since its already there.
I'm running a virtual server with Ubuntu 10.04, Nginx, Phusion Passenger and Ruby on Rails 3. And sending mails via my rails app is no problem, as rails makes it preatty is. But I also want to send and receive mails via a mail client like Outlook, Mail or Thunderbird and I want to a way to manage the mail accounts via a web interface.
The most things I found are either too powerful and too pricy (like cPanel with Nginx Support) or they are impossible for me to setup. So, long story short:
I'm searching for a Mailserver which runs on Ubuntu 10.04, Nginx and Passenger, that supports at least POP (but IMAP would also be great) and which has a web interface for managing which is either easy to setup or, even better, written in ruby.
As long as the documentation is good and it runs I'm happy. Any recommendation or personal experience would be helpful.
Thanks in regards.
For anybody who is interested, I used the following combination:
Postfix + Courier as Mailserver and Postfixadmin as Administrationtool
And I tried to install Roundcube and Postatmail, but they both failed. Roundcube didn't work at all and Postatmail had some crazy errors with Suhosin. So I'm dismissing the webmail interface.