Usha fix the following .......


Feb 1 10:33:33 ethnic postfix: succeeded
Feb 1 10:33:33 ethnic postfix/postsuper[2615]: warning: bogus file
name: hold/razor-agent.log
Feb 1 10:33:33 ethnic postfix/postfix-script: starting the Postfix mail system
Feb 1 10:33:33 ethnic postfix: succeeded
Feb 1 10:33:33 ethnic postfix/master[2619]: daemon started -- version
2.1.0-pre-20040209
Feb 1 10:33:37 ethnic MailScanner[2627]: MailScanner E-Mail Virus
Scanner version 4.38.9 starting...
Feb 1 10:33:37 ethnic MailScanner[2627]: Read 2 hostnames from the
phishing whitelist
Feb 1 10:33:37 ethnic MailScanner[2627]: User's home directory
/var/spool/postfix is not writable
Feb 1 10:33:37 ethnic MailScanner[2627]: You need to set the
"SpamAssassin User State Dir" to a directory that the "Run As User"
can write to
Feb 1 10:33:37 ethnic MailScanner[2627]: Enabling SpamAssassin
auto-whitelist functionality...



SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin (Make sure this directory exists if not create it, this is where MailScanner will store you bayes and change permissions of this directory to be owned by user Postfix or which ever user you are running MailScanner as.)

Run As User = postfix (you need to set this to postfix in case ur using postfix. This enables MailScanner to access the queue directory of postfix)


Feb 1 10:33:38 ethnic MailScanner[2522]: Using locktype = flock
Feb 1 10:33:38 ethnic MailScanner[2522]: Messages found but no hashed
queue directories. Please enable hashed queues for incoming and
deferred with a depth of 1 or 2. See the Postfix documentation for
hash_queue_names and hash_queue_depth
Feb 1 10:33:43 ethnic MailScanner[2522]: Messages found but no hashed
queue directories. Please enable hashed queues for incoming and
deferred with a depth of 1 or 2. See the Postfix documentation for
hash_queue_names and hash_queue_depth


You are getting this error because you are running Razor. Razor creates a log file (razor-agent.log) in its user's home directory and in case of postfix the home directory is /var/spool/postfix. Since you are holding all the mails first the log file is created in /var/spool/postfix/hold. MailScanner needs hashed queue structure (where as postfix by default supports hashed queue) but since the log file is not actually a directory the MailScanner is not able to do chdir to it and ends up giving this error. However this doesnt effect the functionality of MailScanner. If you want to fix this error you can safely change the home directory of postfix to /tmp in /etc/passwd, this doesnt hamper's postfix's or MailScanner's performance. It may happen that after changing the home dir of postfix you still get the error for sometime so in tht case just make sure tht you have removed the file /var/spool/postfix/hold/razor-agent.log and restart the MailScanner.

That should fix your problem, also make sure that you have done the other MailScanner configurations properly and in cases of MailScanner problems please post on MailScanner discussion forum or ask on mailscanner channel on freenode irc.

--
Regards, Rakesh B. Pal
Emergic CleanMail Team.
Netcore Solutions Pvt. Ltd.


========================================================================
I came, I saw, I conquered
========================================================================



----------------------------------------------------------
Netcore Solutions Pvt. Ltd.
Website:  http://www.netcore.co.in
Spamtraps: http://cleanmail.netcore.co.in/directory.html
----------------------------------------------------------

Reply via email to