我正在使用带有 Sinatra 的邮件库。它以前工作过;我不确定是什么变化导致了这个错误,但是现在当我查看时mail.err
,我看到了这个:
Mar 6 07:35:01 App exim4: ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system possibly broken
Mar 6 07:35:02 App exim4: PANIC: sending out e-mail warning has failed, exim has non-zero return code
经过进一步检查,查看恐慌日志,我看到以下内容:
2015-03-06 12:54:31 Exim configuration file /var/lib/exim4/config.autogenerated
has the wrong owner, group, or mode
2015-03-06 12:59:34 Exim configuration file /var/lib/exim4/config.autogenerated
has the wrong owner, group, or mode
当我尝试删除此恐慌日志时,错误仍然存在。查看上述文件的权限,我看到:
drwxrwxr-x 2 root root 4096 Jan 28 18:59 .
drwxrwxr-x 33 root root 4096 Jan 22 11:30 ..
-rwxrwxr-x 1 root root 4 May 3 2013 berkeleydbvers.txt
-rwxrwxr-x 1 root Debian-exim 23661 Jan 28 18:59 config.autogenerated
由于它以前工作过,我不知道为什么权限可能有问题,但如果是,我不确定是否正在访问它,以及需要哪些权限才能正常工作。任何建议将不胜感激!!!
权限详述如下:
/var/log/exim4$ namei -lm /var/lib/exim4/config.autogenerated
f: /var/lib/exim4/config.autogenerated
drwxr-xr-x root root /
drwxrwxr-x root root var
drwxrwxr-x root root lib
drwxrwxr-x root root exim4
-rwxrwx--- root Debian-exim config.autogenerated