2008年9月18日 星期四

/var/log/maillog 錯誤更正步驟

/var/log/maillog 錯誤更正問題集


1. User's home directory /var/spool/postfix is not writable

錯誤訊息如下:

MailScanner[31757]: User's home directory /var/spool/postfix is not writable
MailScanner[31757]: You need to set the "SpamAssassin User State Dir" to a directory that the "Run As User" can write to

解決方式 :
postfix 的權限不足導致無法寫入 更改檔案權限即可

cd /var/spool
ls postfix //檢查 postfix 的權限目前是 root,root 導致權限不足
chown postfix postfix //修改onwer權限


2. WARNING: You are trying to use the SpamAssassin cache but your DBI and/or DBD::SQLite Perl modules are not properly installed!

錯誤訊息如下:

MailScanner[31757]: SpamAssassin temporary working directory is /tmp
MailScanner[31757]: WARNING: You are trying to use the SpamAssassin cache but your DBI and/or DBD::SQLite Perl modules are not properly installed!

解決方式 :
缺少 perl-DBD-SQLite , 利用 yum 安裝即可

yum install perl-DBD-SQLite

如下圖:

沒有留言: