报错内容如下:crond[pid]: postdrop: warning: mail_queue_enter: create file maildrop/数字: Permission denied
具体操作
systemctl disable firewalld
systemctl stop firewalld
systemctl stop avahi-daemon
systemctl disable avahi-daemon
systemctl disable ksmtuned
systemctl stop ksmtuned
systemctl stop gdm
systemctl disable gdm
以上多余可操作可不操作
chmod 1777 /var/spool/postfix/maildrop
chmod 1777 /var/spool/postfix/public
chmod 1777 /var/spool/postfix/public/pickup
crontab -e
首行添加
MAILTO=""
对应定时任务后面添加 &> /dev/null
本文由博客一文多发平台 OpenWrite 发布!