Question : spamassassin : not good path for auto-whitelist file.

Hello,

I try to figure out why, on domain creation, the autowhite list path for spamassassin is not right only for a specific domain ?

explanation :
from this file : /usr/local/psa/var/log/maillog
we got :

Nov 25 13:06:31 solarkit spamd[2773]:
auto-whitelist: open of auto-whitelist file failed: locker: safe_lock:
cannot create tmp lockfile /var/qmail/mailnames/mailnames/sdpinternational.com/.spamassassin/auto-whitelist.lock.solarkit.ca.2773 for /var/qmail/mailnames/mailnames/sdpinternational.com/.spamassassin/auto-whitelist.lock: No such file or directory

The path "/var/qmail/mailnames/mailnames/sdpinternational.com/" is not correct.
That is suppose to be "/var/qmail/mailnames/sdpinternational/" it's why we got "no such file or.. " error.

I try to fix the path, but I can't find the config file, where is it located ?

*****
i'm using a dedicated server under centos with plesk panel and spamassassin.
*****
thx for your help.

Answer : spamassassin : not good path for auto-whitelist file.

Well, dom_solariumdeparis, the way I see it you can either:

a) hack the spamassassin configuration file so that it points to your domain name WITHOUT the .com, or

b) you could rename the folder to add the .com (which may be more hassle than its worth), or

c) you could just create a symbolic link in /var/qmail/mailnames/mailnames/ that says both sdpinternational.com and sdpinternational point to the same folder.

Assuming you go with c above, the command-line way to do it would be:
  cd /var/qmail/mailnames/mailnames/
  ln -s sdpinternational sdpinternational.com

FYI: the general form of the ln command is:
  ln [-s] file-name-that-exists-already file-name-to-create
    the -s option means create a SYMBOLIC link -- the ONLY way to link to a directory

I hope this helps!

Dan
IT4SOHO
Random Solutions  
 
programming4us programming4us