我正在尝试postfix
在本地Ubuntu 12.04
使用ZoneMinder
. 我从安装Ubuntu Desktop
的Postfix
软件包和它的依赖。
现在,如果我尝试使用以下命令发送电子邮件,则效果很好:
echo "This is the body of the email" | mail -s "This is the subject line" myemail@gmail.com
Run Code Online (Sandbox Code Playgroud)
然后,如果警报ZoneMinder
发送电子邮件,我会收到以下信息
Apr 16 17:05:18 ubuntu postfix/local[11541]: warning: hash:/etc/aliases is unavailable. open database /etc/aliases.db: No such file or directory
Run Code Online (Sandbox Code Playgroud)
如果我运行 postqueue -qi get queueed email with(别名数据库不可用)
A09B4A40C16 422 Thu Apr 16 16:59:37 destination@email.net
(alias database unavailable)
root@nameofthehost.net
Run Code Online (Sandbox Code Playgroud)
我试图设置pownership
到postfix
在其他后建议用以下
sudo chown postfix:postfix -R /var/lib/postfix …
Run Code Online (Sandbox Code Playgroud)