amazon web services - Rails App on AWS Elasticbeanstalk mail send fails with ESMTP No Relay Access Allowed From IP -
i have rails app have deployed aws elastic beanstalk. app uses devise handle user authentication, , set able invite users. issue when seek invite user, next error:
net::smtpfatalerror (554 secureserver.net esmtp no relay access allowed <my_eb_assigned_ip> (i hosting domain on godaddy).
in development, mailer functionality works fine; smtp settings set (common environments):
actionmailer::base.delivery_method = :smtp actionmailer::base.smtp_settings = { :address => "smtpout.secureserver.net", :port => 80, :domain => "www.my_domain.com", :authentication => :plain, :user_name => "do-not-reply@my_domain.com", :password => my_pass, } and in production.rb config file:
config.action_mailer.default_url_options = { :host => 'aws_sb.elasticbeanstalk.com' } is there setting have enable in elasticbeanstalk allow relay access? or missing production specific setting rails configuration?
i figured out port value setting....when switched port 25, works in production. however, development, port 25 wasn't working; work in dev when port 80.
so ended moving entire smtp mailer settings environment specific settings (from config/environment.rb file), , setting production port 25, , development port 80, , appeared create both environments work.
edit: after push, seeing same issue, , none of ports tried resolving issue. ended switching mail service functionality sent through amazon ses, , appears functioning great far.
ruby-on-rails-3 amazon-web-services actionmailer elastic-beanstalk
No comments:
Post a Comment