本文介绍了“ / usr / sbin / sendmail /”未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Rail应用程序在本地运行良好,但是在VPS服务器上,当我尝试通过Rails应用程序发送具有所有正确设置的电子邮件时,我在日志中收到此错误:

Locally a Rail app works well, but on a VPS server when I try to send an email with all the correct settings by the means of the Rails app, I get this error in the logs:

sh: 1: /usr/sbin/sendmail: not found

如何解决?

推荐答案

您需要安装 VPS和本地计算机上的sendmail 软件包。假设您使用某种形式的Debian linux,您想运行:

You need to install the sendmail package on your VPS as well as your local machine. Assuming you use some form of Debian linux, you want to run:

sudo apt-get install sendmail

这篇关于“ / usr / sbin / sendmail /”未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-30 11:27