PDA

View Full Version : Autowhitelist broken since update 8.1


mooiesite
3rd December 2006, 07:35 AM
here's some of my maillog:

Dec 3 13:16:35 mooi-01 qmail: 1165148195.581453 new msg 1920711
Dec 3 13:16:35 mooi-01 qmail: 1165148195.581518 info msg 1920711: bytes 17031 from <sender@sender.com> qp 8734 uid 2020
Dec 3 13:16:35 mooi-01 qmail: 1165148195.618764 starting delivery 61: msg 1920711 to local 12-info@domain.com
Dec 3 13:16:35 mooi-01 qmail: 1165148195.618789 status: local 1/10 remote 0/20
Dec 3 13:16:35 mooi-01 spamd[8270]: spamd: got connection over /tmp/spamd_full.sock
Dec 3 13:16:35 mooi-01 spamd[8270]: spamd: using default config for info@: home/qmail/mailnames//info/.spamassassin/user_prefs
Dec 3 13:16:35 mooi-01 spamd[8270]: spamd: processing message <001c01c716dd$3bc70270$066500e4@LUKAS> for info@:110
Dec 3 13:16:41 mooi-01 spamd[8270]: mkdir /home/qmail/mailnames//info: Permission denied at /usr/lib/perl5/vendor_perl/5.8.5/Mail/SpamAssassin.pm line 1530
Dec 3 13:16:41 mooi-01 spamd[8270]: locker: safe_lock: cannot create tmp lockfile /home/qmail/mailnames//info/.spamassassin/auto-whitelist.lock.my_mailserver.com.8270 for /home/qmail/mailnames//info/.spamassassin/auto-whitelist.lock: No such file or directory
Dec 3 13:16:41 mooi-01 spamd[8270]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /home/qmail/mailnames//info/.spamassassin/auto-whitelist.lock.my_mailserver.com.8270 for /home/qmail/mailnames//info/.spamassassin/auto-whitelist.lock: No such file or directory
Dec 3 13:16:41 mooi-01 spamd[8270]: spamd: identified spam (8.6/7.0) for info@:110 in 6.2 seconds, 17031 bytes.
Dec 3 13:16:41 mooi-01 spamd[8270]: spamd: result: Y 8 - BAYES_99,EXTRA_MPART_TYPE,HTML_MESSAGE............ ...........
Dec 3 13:16:42 mooi-01 spamd[8265]: prefork: child states: II
Dec 3 13:16:42 mooi-01 qmail: 1165148202.121699 delivery 61: success: did_1+0+2/did_0+0+1/
Dec 3 13:16:42 mooi-01 qmail: 1165148202.121854 status: local 0/10 remote 0/20
Dec 3 13:16:42 mooi-01 qmail: 1165148202.121896 end msg 1920711


As you can see, it is missing 'the domain' when trying to read the userprefs file.. it says /home/qmail/mailnames//info/.spamassassin.
But it should be: /home/qmail/mailnames/domain.com/info/.spamassassin.

Anyone knows how to fix this?

mooiesite
3rd December 2006, 02:34 PM
it looks like new plesk doesn't create the correct .qmail files in each userdir from which it calls spamc...

tried rebuilding qmail-files with
mchk -v
mchk --with-spam

When i look at the psa-dbase, it looks like they changed some spamassassin tables, maybe mchk doesn't know how to use them!

the .qmail files contains this:

| /usr/local/psa/bin/psa-spamc reject
| true
./Maildir/

it's missing the '-u' option for calling userprefs
PLEASE FIX THIS ASAP!!!


when running mchk, i see this in my processes:
spammng <defunct> (looks like it's missing some arguments??)
FIX THIS!

mooiesite
4th December 2006, 09:08 AM
SWSoft fixed the issue! Thanks for the fast solution.

The problem was i symlinked /var/qmail/mailnames to /home/qmail/mailnames. (/var had little space left and /home had enough, that's why we moved mailnames a few months ago, this was btw an idea from swsoft)


Thank you for details. Yes, the problem with spamassassin has been fixed by replacing variable environment HOME in /usr/local/psa/bin/psa-spamc file:

the line p="${HOME#/var/qmail/mailnames/}" has been substituted for p="${HOME#/home/qmail/mailnames/}"

I have already sent an excerpt from maillog in my previous email to prove that spamassassin is running fine.


Best regards,
SWSoft

panaman
20th December 2006, 03:02 PM
I noticed that after the upgrade that I was getting a ton more spam.. i then looked at the header of a message and spamassassin was not checking the messages..

so is the fix just to run the following?
mchk -v
mchk --with-spam

Traged1
10th January 2007, 05:29 PM
If you are using qmail-scanner and you get this error after upgrading then you forgot to run qmail-scanner-reconfigure

albans
16th January 2007, 03:55 AM
I got the same problem... When I try to run:
/usr/local/psa/admin/bin/mchk --with-spam
It does nothing. Any idea?!

I also executed:
/usr/bin/qmail-scanner-reconfigure

But I still have some errors in maillog...

_________________________________________
Internet Services - Plesk Hosting (http://www.oxegena.ch)
Plesk Administration: Guides (fr) (http://support.oxegena.ch)

jprovan
4th February 2007, 04:54 PM
I still have these errors. Is there a resolution. (I have no symlinks).

The domain.com portion seems to be missing.

Feb 4 09:49:17 serv01 spamd[7392]: spamd: got connection over /tmp/spamd_full.sock
Feb 4 09:49:17 serv01 spamd[7392]: spamd: using default config for qscand: /var/qmail/mailnames///.spamassassin/user_prefs
Feb 4 09:49:17 serv01 spamd[7392]: mkdir /var/qmail/mailnames///.spamassassin: Permission denied at /usr/lib/perl5/vendor_perl/5.8.6/Mail/SpamAssassin.pm line 1530
Feb 4 09:49:17 serv01 spamd[7392]: spamd: checking message <779506c70702041205k2f9e4057l9ffd3bcaa0aa88cc@mail. gmail.com> for qscand:110
Feb 4 09:49:19 serv01 spamd[7392]: mkdir /var/qmail/mailnames///.spamassassin: Permission denied at /usr/lib/perl5/vendor_perl/5.8.6/Mail/SpamAssassin.pm line 1530
Feb 4 09:49:19 serv01 spamd[7392]: locker: safe_lock: cannot create tmp lockfile /var/qmail/mailnames///.spamassassin/auto-whitelist.lock.serv01.58thstdev.net.7392 for /var/qmail/mailnames///.spamassassin/auto-whitelist.lock: No such file or directory
Feb 4 09:49:19 serv01 spamd[7392]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /var/qmail/mailnames///.spamassassin/auto-whitelist.lock.serv01.58thstdev.net.7392 for /var/qmail/mailnames///.spamassassin/auto-whitelist.lock: No such file or directory
Feb 4 09:49:19 serv01 spamd[7392]: bayes: locker: safe_lock: cannot create tmp lockfile /var/qmail/mailnames///.spamassassin/bayes.lock.serv01.58thstdev.net.7392 for /var/qmail/mailnames///.spamassassin/bayes.lock: No such file or directory

tkalfaoglu
29th May 2007, 10:51 AM
After reading these and having lots of those "permission denied" with triple-backslashes, I tried the
[root@panel psa]# /usr/local//psa/admin/sbin/mchk --spam-only
command, only to be greeted (after about 15 minutes of runtime on a machine with LA 0.75):


mchk: fork_execv_getouterr: pipe() failed
System error 24: Too many open files
mchk: fork_execv_getouterr: pipe() failed
System error 24: Too many open files

now what?
or rather, now why?
-t