linux - 无法从ubuntu发送邮件

标签 linux apache2 sendmail

我无法从 Ubuntu 发送邮件,当我 cat/var/log/apache2/error.log 我看到以下错误:

sh: 1: /usr/sbin/sendmail: Permission denied

注意:- SElinux 被禁用

$ stat /usr/sbin/sendmail 

  File: ‘/usr/sbin/sendmail’ -> ‘/etc/alternatives/sendmail’
  Size: 26         Blocks: 0          IO Block: 4096   symbolic link
Device: 801h/2049d Inode: 1318147     Links: 1
Access: (0777/lrwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)

最佳答案

您需要成为 super 用户 才能使用在 sbin 中找到的任何二进制文件。因为sendmail/usr/sbin/,你必须是 super 用户,如果你不是,你将获得权限拒绝 错误

关于linux - 无法从ubuntu发送邮件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35036489/

相关文章:

linux - 在Linux中,如何独占console std out?

c++ - Epoll_wait 在关闭的文件描述符上返回事件

用于 Rails 应用程序 Gitlab 的 Apache2 ProxyPass

apache - 如何在 apache2 中禁用 mod_deflate?

bash - Sendmail 不适用于 crontab (bash)

c - 编译文件时出错 |收集 2 : error: ld returned 1 exit status

linux - Apache HTTP Server Config Variable is not defined 错误 ***如何解决?***

php5 mail() 函数发送邮件错误

Python server.sendmail() 返回 {}。电子邮件未发送

linux - 在没有getopts的shell脚本中添加使用内容