Bonjour, Please, when I try to start mailscanner service, I got this error below after running the command of web page "http://www.howtoforge.com/the-perfect-spamsnake-ubuntu-jeos-12.04-lts-precise-pangolin-p3" The OS linux is debian in CPU 64 amd. Code: #/etc/init.d/mailscanner start Can't call method "close" on an undefined value at /opt/MailScanner/bin/mailscanner_create_locks line 47. Error: Attempt to create locks in /var/spool/MailScanner/incoming/Locks failed! Can't set GID 33 at /opt/MailScanner/bin/MailScanner line 1541. What I have : Code: # ls -l /opt/MailScanner/bin/mailscanner_create_locks -rwxr-xr-x 1 root root 2551 janv. 7 2009 /opt/MailScanner/bin/mailscanner_create_locks # ls -l /var/spool/MailScanner/incoming/ total 5508 drwxr-x--- 2 Debian-exim celeryd 4096 oct. 6 19:28 24167 drwxr-x--- 2 Debian-exim celeryd 4096 oct. 6 19:28 24172 drwxr-x--- 2 Debian-exim celeryd 4096 oct. 6 19:28 24177 drwxr-x--- 2 Debian-exim celeryd 4096 oct. 6 19:28 24180 drwxr-x--- 2 Debian-exim celeryd 4096 oct. 6 19:28 24185 drwxr-x--- 2 Debian-exim celeryd 4096 oct. 6 16:51 2849 drwxr-x--- 2 Debian-exim celeryd 4096 oct. 6 16:51 2852 drwxr-x--- 2 Debian-exim celeryd 4096 oct. 6 16:51 2941 drwxr-x--- 2 Debian-exim celeryd 4096 oct. 6 16:51 3628 drwxr-x--- 2 Debian-exim celeryd 4096 oct. 6 16:51 3961 drwxr-x--- 2 Debian-exim www-data 4096 nov. 10 11:23 Locks -rw------- 1 Debian-exim celeryd 4096 oct. 1 16:43 Processing.db -rw------- 1 Debian-exim celeryd 5120 oct. 1 16:43 SpamAssassin.cache.db drwx------ 2 postfix celeryd 5578752 nov. 10 12:28 SpamAssassin-Temp # ls -l /var/spool/MailScanner/incoming/Locks total 4 -rw------- 1 postfix www-data 0 oct. 1 16:42 antivirBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 avastBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 avgBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 bitdefenderBusy.lock -rw------- 1 postfix www-data 98 nov. 10 11:42 clamavBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 cssBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 esetsBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 etrustBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 f-prot-6Busy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 f-protBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 f-secureBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 genericBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 inoculanBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 kasperskyBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 mcafee6Busy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 mcafeeBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 MS.bayes.rebuild.lock -rw------- 1 postfix www-data 0 nov. 10 11:23 MS.bayes.starting.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 nod32Busy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 normanBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 pandaBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 ravBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 sophosBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 symscanengineBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 trendBusy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 vba32Busy.lock -rw------- 1 postfix www-data 0 oct. 1 16:42 vexiraBusy.lock I have also this problem Code: #tail -n -100 /var/log/mail.info Nov 10 12:30:29 server1 MailScanner[10179]: MailScanner E-Mail Virus Scanner version 4.84.5 starting... Nov 10 12:30:29 server1 MailScanner[10179]: Reading configuration file /opt/MailScanner/etc/MailScanner.conf Nov 10 12:30:29 server1 MailScanner[10179]: Reading configuration file /opt/MailScanner/etc/conf.d/README Nov 10 12:30:29 server1 MailScanner[10179]: Read 875 hostnames from the phishing whitelist Nov 10 12:30:29 server1 MailScanner[10179]: Read 5426 hostnames from the phishing blacklists Nov 10 12:30:29 server1 MailScanner[10179]: Using SpamAssassin results cache Nov 10 12:30:29 server1 MailScanner[10179]: Could not create SpamAssassin cache database /var/spool/MailScanner/incoming/SpamAssassin.cache.db Nov 10 12:30:29 server1 MailScanner[10179]: Enabling SpamAssassin auto-whitelist functionality... Nov 10 12:30:30 server1 MailScanner[10179]: Could not create Processing Attempts Database "/var/spool/MailScanner/incoming/Processing.db" Nov 10 12:30:30 server1 MailScanner[10179]: Cannot create temporary Work Dir /var/spool/MailScanner/incoming/10179. Are the permissions and ownership of /var/spool/MailScanner/incoming correct? finaly i have not the messages in the baruwa web site I do not know where is the problem exactly. Thank you in advance for your help
The problem is that the directory /var/spool/MailScanner is owned by the user and group mail and that noone else can read that directory. So even if the directories within /var/spool/MailScanner are owned by postfix, that user cannot access them because the parent directory isn't accessible for the user postfix.
Hello What is the solution, can i change the privileges to 777 to enable access for another users. Can I uses the following commandes to enable acces for postfix Code: chmod 777 /var/spool/MailScanner/ chmod 777 -R /var/spool/MailScanner/incoming/ And Why Debian-exim is the user for /var/spool/MailScanner/ and not postfix Can i change the user for postfix ? Thank you in advance