2

I am receiving this error when trying to send Mailjet email from my production server:

Net::SMTPServerBusy (454 4.7.1 <email@example.com>: Relay access denied
)

Here is my config/initializers/mail.rb file:

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address        => 'in.mailjet.com',
:enable_starttls_auto => true,
:port           => 587,
:authentication => :plain,
:user_name      => ENV['MAILJET_USERNAME'],
:password       => ENV['MAILJET_PASSWORD'],
:domain         => 'example.com'
}

Any help is appreciated.

ekremkaraca
  • 1,453
  • 2
  • 18
  • 37
Richard74
  • 89
  • 2
  • 11
  • Same thing here for mailjet. Works fine in production on my local machine but when I go to AWS it does not work. – Austio Dec 20 '13 at 12:19

1 Answers1

2

Thank you for using Mailjet !

I would like to check one thing with you before moving on.

Are talking of using :

  1. the API key as MAILJET_USERNAME ?
  2. the API secret as MAILJET_PASSWORD ?

Some of our users are mixing them with login and password. The key and secret may be found in your account, under the REST API section.

madflo
  • 282
  • 2
  • 10