diff --git a/app/models/admin_dashboard_data.rb b/app/models/admin_dashboard_data.rb
index bfcaff65fab..5ac4bd55c35 100644
--- a/app/models/admin_dashboard_data.rb
+++ b/app/models/admin_dashboard_data.rb
@@ -94,7 +94,7 @@ class AdminDashboardData
:ram_check, :google_oauth2_config_check,
:facebook_config_check, :twitter_config_check,
:github_config_check, :s3_config_check, :image_magick_check,
- :failing_emails_check, :send_consumer_email_check,
+ :failing_emails_check,
:subfolder_ends_in_slash_check,
:pop3_polling_configuration, :email_polling_errored_recently
@@ -214,10 +214,6 @@ class AdminDashboardData
I18n.t('dashboard.failing_emails_warning', num_failed_jobs: num_failed_jobs) if num_failed_jobs > 0
end
- def send_consumer_email_check
- I18n.t('dashboard.consumer_email_warning') if Rails.env.production? and ActionMailer::Base.smtp_settings[:address] =~ /gmail\.com|live\.com|yahoo\.com/
- end
-
def subfolder_ends_in_slash_check
I18n.t('dashboard.subfolder_ends_in_slash') if Discourse.base_uri =~ /\/$/
end
diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml
index fd7ebcc9b6f..01ba7f9cc81 100644
--- a/config/locales/server.en.yml
+++ b/config/locales/server.en.yml
@@ -816,8 +816,7 @@ en:
s3_config_warning: 'The server is configured to upload files to s3, but at least one the following setting is not set: s3_access_key_id, s3_secret_access_key or s3_upload_bucket. Go to the Site Settings and update the settings. See "How to set up image uploads to S3?" to learn more.'
s3_backup_config_warning: 'The server is configured to upload backups to s3, but at least one the following setting is not set: s3_access_key_id, s3_secret_access_key or s3_backup_bucket. Go to the Site Settings and update the settings. See "How to set up image uploads to S3?" to learn more.'
image_magick_warning: 'The server is configured to create thumbnails of large images, but ImageMagick is not installed. Install ImageMagick using your favorite package manager or download the latest release.'
- failing_emails_warning: 'There are %{num_failed_jobs} email jobs that failed. Check your app.yml and ensure that the mail server settings are correct. See the failed jobs in Sidekiq.'
- consumer_email_warning: "Your site is configured to use Gmail (or another consumer email service) to send email. Gmail limits how many emails you can send. Consider using an email service provider like mandrill.com to ensure email deliverability."
+ failing_emails_warning: 'There are %{num_failed_jobs} email jobs that failed. Check your app.yml and ensure that the mail server settings are correct. See the failed jobs in Sidekiq.'
subfolder_ends_in_slash: "Your subfolder setup is incorrect; the DISCOURSE_RELATIVE_URL_ROOT ends in a slash."
email_polling_errored_recently:
one: "Email polling has generated an error in the past 24 hours. Look at the logs for more details."
diff --git a/spec/models/admin_dashboard_data_spec.rb b/spec/models/admin_dashboard_data_spec.rb
index aa9f7080b30..6a0cd5a3ca6 100644
--- a/spec/models/admin_dashboard_data_spec.rb
+++ b/spec/models/admin_dashboard_data_spec.rb
@@ -123,29 +123,6 @@ describe AdminDashboardData do
end
end
- describe 'send_consumer_email_check' do
- subject { described_class.new.send_consumer_email_check }
-
- it 'returns nil if gmail.com is not in the smtp_settings address' do
- ActionMailer::Base.stubs(:smtp_settings).returns({address: 'mandrillapp.com'})
- expect(subject).to be_nil
- end
-
- context 'gmail.com is in the smtp_settings address' do
- before { ActionMailer::Base.stubs(:smtp_settings).returns({address: 'smtp.gmail.com'}) }
-
- it 'returns nil in development env' do
- Rails.stubs(env: ActiveSupport::StringInquirer.new('development'))
- expect(subject).to be_nil
- end
-
- it 'returns a string when in production env' do
- Rails.stubs(env: ActiveSupport::StringInquirer.new('production'))
- expect(subject).not_to be_nil
- end
- end
- end
-
describe 'auth_config_checks' do
shared_examples 'problem detection for login providers' do