在 Ubuntu 服务器 10.04 上发送邮件无法正常工作

在 Ubuntu 服务器 10.04 上发送邮件无法正常工作

我正在尝试使用 sendmail 服务从 ubuntu 服务器 10.04 发送测试电子邮件。下面是命令。

cat /var/gs/livecron/design.txt | mail -s "Cron Job Duration Notification" [email protected]

之前它工作正常,但过去两天它就不工作了。我检查了
/var/log/mail.log 但文件是空的。

我尝试使用重新安装 sendmail sudo apt-get 安装 sendmail及其显示

root@domU-12-31-39-09-29-24:/var/log# sudo apt-get install sendmail
sudo: unable to resolve host domU-12-31-39-09-29-24
Reading package lists... Done
Building dependency tree
Reading state information... Done
sendmail is already the newest version.
The following packages were automatically installed and are no longer required:
python-twisted-core python-pexpect python-twisted-web python-pycurl libx86-1
bc libpciaccess0 python-serial vbetool python-pam python-openssl libffi5
libhal1 hal libhal-storage1 python-dbus pm-utils smartdimmer radeontool
hal-info python-smartpm python-twisted-bin python-gobject
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 63 not upgraded.

请建议我解决这些问题的方法。

相关内容