mlandauer / cuttlefish

Transactional email server with a lovely web interface
http://cuttlefish.io
Other
1.54k stars 177 forks source link

ActiveRecord::RecordInvalid: Validation failed: From domain doesn't have a DNS record configured correctly for cuttlefish._domainkey.foo.com #340

Closed jseparovic closed 4 years ago

jseparovic commented 5 years ago

Using the docker-compose instructions from the Readme I run into:

ActiveRecord::RecordInvalid: Validation failed: From domain doesn't have a DNS record configured correctly for cuttlefish._domainkey.foo.com

I't looks like the Readme is missing some install instructions

s01ipsist commented 5 years ago

This happens during the rake db:seed call which is part of rake db:setup.

acting_app = smart_team.apps.create!(
  name: "Acting Twins",
  legacy_dkim_selector: true,
  dkim_enabled: true,
  from_domain: "foo.com"
)

fails because it tries to validate that dkim record actually exists. You can work around it by turning off dkim_enabled, eg.

acting_app = smart_team.apps.create!(
  name: "Acting Twins",
  legacy_dkim_selector: true,
  dkim_enabled: false,
  from_domain: "foo.com"
)
fazlerabbi37 commented 4 years ago

I can confirm that editing db/seeds.rb to switch dkim_enabled to false solves the problem.

mlandauer commented 4 years ago

Sorry all for this. This has now been fixed in 8daaf1bc341cb65e11e734ee348454f3c68f4ecc