Khi cố gắng sử dụng sendmail từ một tập lệnh, nó không thành công với
postdrop: warning: mail_queue_enter: create file maildrop/690025.14220: Permission denied
Đầu ra từ ls -la /var/spool/postfix
trông giống như thế này giống hệt với đầu ra trên máy Mac khác với sendmail hoạt động:
total 0
drwxr-xr-x 16 root wheel 544 24 Sep 2016 .
drwxr-xr-x 6 root wheel 204 21 Okt 2016 ..
drwx------ 2 _postfix wheel 68 8 Jan 17:22 active
drwx------ 2 _postfix wheel 68 11 Feb 2017 bounce
drwx------ 2 _postfix wheel 68 24 Sep 2016 corrupt
drwx------ 11 _postfix wheel 374 11 Feb 2017 defer
drwx------ 11 _postfix wheel 374 11 Feb 2017 deferred
drwx------ 2 _postfix wheel 68 24 Sep 2016 flush
drwx------ 2 _postfix wheel 68 24 Sep 2016 hold
drwx------ 2 _postfix wheel 68 8 Jan 17:22 incoming
drwx-wx--- 2 _postfix _postdrop 68 12 Feb 2017 maildrop
drwxr-xr-x 10 root wheel 340 8 Jan 17:22 pid
drwx------ 26 _postfix wheel 884 8 Jan 17:22 private
drwx--x--- 7 _postfix _postdrop 238 8 Jan 17:22 public
drwx------ 2 _postfix wheel 68 24 Sep 2016 saved
drwx------ 2 _postfix wheel 68 24 Sep 2016 trace
Tôi đã tìm kiếm trên mạng các giải pháp và thử chúng, nhưng chúng dường như không hoạt động.
sudo postfix check
cho tôi những tin nhắn này:
postfix: Postfix is running with backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: mydomain_fallback=localhost
Dòng cuối cùng được lặp lại khoảng. 20 lần.
sudo postfix set-permissions
kết quả trong cùng một đầu ra, cộng
chown: /usr/libexec/postfix: Operation not permitted
Khi tôi thử gửi mail với sudo (không biết có nên hoạt động không), tôi nhận được
postdrop: warning: unable to look up public/pickup: No such file or directory
Bất kỳ ý tưởng làm thế nào để khắc phục điều đó?