Ruby on rails cartlefish.io(Ruby on Rails)配置

Ruby on rails cartlefish.io(Ruby on Rails)配置,ruby-on-rails,ruby,postfix-mta,Ruby On Rails,Ruby,Postfix Mta,我已经通过以下方式在我的Ubuntu服务器上部署了(RubyonRails事务性电子邮件应用程序) 访问domain.example.com并登录到墨鱼后,我单击测试电子邮件,然后在收件人框中输入我的Gmail地址,然后单击发送测试电子邮件 我收到一封测试邮件,但邮件从未到达。我还尝试通过创建应用发送邮件,然后尝试使用中的smtp凭据,但我无法连接到smtp服务器 应用程序页面提供给我的smtp设置如下:- Protocol: SMTP Host: localhost Port: 2525 Us

我已经通过以下方式在我的Ubuntu服务器上部署了(RubyonRails事务性电子邮件应用程序)

访问domain.example.com并登录到墨鱼后,我单击测试电子邮件,然后在收件人框中输入我的Gmail地址,然后单击发送测试电子邮件

我收到一封测试邮件,但邮件从未到达。我还尝试通过创建应用发送邮件,然后尝试使用中的smtp凭据,但我无法连接到smtp服务器

应用程序页面提供给我的smtp设置如下:-

Protocol: SMTP
Host: localhost
Port: 2525
Username: test_2
Password: xxxxxxx
Authentication: plain
当我在终端中运行telnet localhost 2525时,我收到一个连接被拒绝错误

当我运行netstat-anltp | grep:2525时,我没有得到任何结果

我已经安装了postfix并正在我的服务器上工作


请你帮我通过乌贼发送电子邮件。

乌贼有自己的基于EventMachine gem的smtp服务器,它在2525端口上运行。Postfix默认于25日在我的Ubuntu上运行。因此,您的smtp进程似乎不起作用

你应该和foreman一起输出新贵的工作。为此,我更喜欢使用以下capistrano任务:

desc 'Foreman init'
task :foreman_init do
  on roles(:all) do
    foreman_temp = "/var/www/tmp/foreman"
    execute  "mkdir -p #{foreman_temp}"

    execute "ln -s #{release_path} #{current_path}"

    within current_path do
      execute "cd #{current_path}"
      execute :bundle, "exec foreman export upstart #{foreman_temp} -a #{application} -u #{user} -l /var/www/apps/#{application}/log -d #{current_path} -f Procfile.production"
    end
    sudo "mv #{foreman_temp}/* /etc/init/"
    sudo "rm -r #{foreman_temp}"
  end
end
请注意,乌贼的Procfile中有3个过程:

smtp: rvm . do bundle exec rake cuttlefish:smtp RAILS_ENV=production
log: rvm . do bundle exec rake cuttlefish:log RAILS_ENV=production
worker: rvm . do bundle exec rake jobs:work RAILS_ENV=production

希望能有所帮助。

非常感谢您的帮助嗨,您终于可以运行乌贼了吗?如果我尝试发送测试电子邮件,它会给我一个EOFEROR。我不知道RoR,所以非常感谢您的帮助