-2
我想通过我的生产轨道应用程序中的Postfix发送电子邮件。我可以在本地发送电子邮件,并通过bash很好。但是我很难用程序来做这件事。这是我的轨道配置:如何在生产中使用Postfix?
config.action_mailer.delivery_method = :sendmail
config.action_mailer.perform_deliveries = true
从我的谷歌搜索,我认为这就是我需要的所有工作。
但在我的日志中,我发现了错误:
worker.1 | sh: 1: /usr/sbin/sendmail: not found
我已经试过所有我能在网上找到,但似乎没有任何工作。
你有没有安装并运行postfix?你尝试过'sudo postfix status'吗? – cnnr
@cnnr是的,我检查了它的状态,它正在运行。 – amorimluc