You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by hansje2000 <ke...@xs4all.nl> on 2006/07/06 00:51:53 UTC
Realy mixed up
Realy mixed up.
Okey i have read some post at this topic and seems to be a more than i
person have the same problem.
first of all i gonna tel whate i have in the box.
---redhat 9
---sendmail
---today YUM update
have root permission, and maked a usr for spamassassin like "spambucked"
Downloaded some things like:
spamass-milter-0.3.0-1.rf.src.rpm and --rebuilt it
Mail-SpamAssassin-3.1.3.tar and --rebuilt is.
So lets look if redhat9 is cool! rpms hmmm easy, installs looks fine.
Okey lets fire thinks up. problem? hmmm yes
[root@ProdecoBoy root]# spamd -u spambucket
[3470] error: persistent_udp: no such method at
/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/DnsResolver.pm line 98
[3470] warn: dns: Net::DNS version is 0.31, but need 0.34 at
/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Dns.pm line 589.
[3470] info: spamd: server started on port 783/tcp (running version 3.1.3)
[3470] info: spamd: server pid: 3470
[3470] info: spamd: server successfully spawned child process, pid 3472
[3470] info: spamd: server successfully spawned child process, pid 3473
[3470] info: prefork: child states: II
Okey and lets look whate is done bij the mail-log after sent some spam to
myself:
Jul 6 00:08:19 localhost sendmail[3533]: k65M8JTm003533:
from=<!!...@xs4all.nl>, size=2946, class=0, nrcpts=1,
msgid=<00...@desktophenco>, proto=ESMTP,
daemon=MTA, relay=smtp-vbr1.xs4all.nl [194.109.24.21]
Jul 6 00:08:19 localhost spamd[3525]: spamd: connection from
localhost.localdomain [127.0.0.1] at port 33410
Jul 6 00:08:19 localhost spamd[3525]: mkdir /root/.spamassassin: Toegang
geweigerd at /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin.pm line 1486
Jul 6 00:08:19 localhost spamd[3525]: spamd: processing message
<00...@desktophenco> for root:508
Jul 6 00:08:19 localhost spamd[3525]: mkdir /root/.spamassassin: Toegang
geweigerd at /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin.pm line 1486
Jul 6 00:08:19 localhost spamd[3525]: locker: safe_lock: cannot create tmp
lockfile /root/.spamassassin/auto-whitelist.lock.ProdecoBoy.3525 for
/root/.spamassassin/auto-whitelist.lock: Toegang geweigerd
Jul 6 00:08:19 localhost spamd[3525]: auto-whitelist: open of
auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile
/root/.spamassassin/auto-whitelist.lock.ProdecoBoy.3525 for
/root/.spamassassin/auto-whitelist.lock: Toegang geweigerd
Jul 6 00:08:19 localhost spamd[3525]: spamd: identified spam (1001.3/5.0)
for root:508 in 0.1 seconds, 3255 bytes.
Jul 6 00:08:19 localhost spamd[3525]: spamd: result: Y 1001 -
GTUBE,HTML_MESSAGE,MISSING_SUBJECT
scantime=0.1,size=3255,user=root,uid=508,required_score=5.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=33410,mid=<00...@desktophenco>,autolearn=no
Jul 6 00:08:19 localhost sendmail[3533]: k65M8JTm003533: Milter add:
header: X-Spam-Flag: YES
Jul 6 00:08:19 localhost sendmail[3533]: k65M8JTm003533: Milter add:
header: X-Spam-Status: Yes, score=1001.3 required=5.0
tests=GTUBE,HTML_MESSAGE,\r\n\tMISSING_SUBJECT autolearn=no version=3.1.3
Jul 6 00:08:19 localhost sendmail[3533]: k65M8JTm003533: Milter: data,
reject=550 5.7.1 Blocked by SpamAssassin
Jul 6 00:08:19 localhost sendmail[3533]: k65M8JTm003533:
to=<bl...@blablablabla.nl>, delay=00:00:00, pri=32946, stat=Blocked by
SpamAssassin
Jul 6 00:08:19 localhost spamd[3470]: prefork: child states: II
Problem 1: no such method at
/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/DnsResolver.pm line 98
Problem 2: dns: Net::DNS version is 0.31, but need 0.34 at
/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Dns.pm line 589.
Problem 3: mkdir /root/.spamassassin: Toegang geweigerd at
/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin.pm line 1486
Problem 4: mkdir locker: safe_lock: cannot create tmp lockfile
/root/.spamassassin/auto-whitelist.lock.ProdecoBoy.3525 for
/root/.spamassassin/auto-whitelist.lock: Toegang geweigerd
Problem 5: etc... etc..
Whate went wrong?
Thaks and best regards
Henco de Keijzer
--
View this message in context: http://www.nabble.com/Realy-mixed-up-tf1897643.html#a5191063
Sent from the SpamAssassin - Users forum at Nabble.com.
Re: Realy mixed up
Posted by hansje2000 <ke...@xs4all.nl>.
Hello thanks for reply,
Okey the next things i did to try to solve the problem.
I created a new usser (spambucket) on my box. he has his own
/home/spambucket
updated Perl-net to exit the 0.31 to 034 problem: fixed the problem.
Next i fired up as root:
Next: [root@ProdecoBoy root]# spamd -u spambucket
Output=
[4016] error: persistent_udp: no such method at
/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/DnsResolver.pm line 98
[4016] info: spamd: server started on port 783/tcp (running version 3.1.3)
[4016] info: spamd: server pid: 4016
[4016] info: spamd: server successfully spawned child process, pid 4018
[4016] info: spamd: server successfully spawned child process, pid 4019
[4016] info: prefork: child states: II
Okey now look at he mail-log
Jul 6 13:29:36 localhost sendmail[4078]: k66BTZrS004078:
from=<bl...@blablablabla.nl>, size=2933, class=0, nrcpts=1,
msgid=<00...@desktophenco>, proto=ESMTP,
daemon=MTA, relay=smtp-vbr5.xs4all.nl [194.109.24.25]
Jul 6 13:29:36 localhost spamd[4018]: spamd: connection from
localhost.localdomain [127.0.0.1] at port 33321
Jul 6 13:29:36 localhost spamd[4018]: mkdir /root/.spamassassin: No
permision at /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin.pm line 1486
Jul 6 13:29:36 localhost spamd[4018]: spamd: processing message
<00...@desktophenco> for root:508
Jul 6 13:29:36 localhost spamd[4018]: mkdir /root/.spamassassin: No
permision at /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin.pm line 1486
Jul 6 13:29:36 localhost spamd[4018]: locker: safe_lock: cannot create tmp
lockfile /root/.spamassassin/auto-whitelist.lock.ProdecoBoy.4018 for
/root/.spamassassin/auto-whitelist.lock: No permision
Jul 6 13:29:36 localhost spamd[4018]: auto-whitelist: open of
auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile
/root/.spamassassin/auto-whitelist.lock.ProdecoBoy.4018 for
/root/.spamassassin/auto-whitelist.lock: No permision
Jul 6 13:29:36 localhost spamd[4018]: spamd: identified spam (1001.3/5.0)
for root:508 in 0.2 seconds, 3242 bytes.
Jul 6 13:29:36 localhost spamd[4018]: spamd: result: Y 1001 -
GTUBE,HTML_MESSAGE,MISSING_SUBJECT
scantime=0.2,size=3242,user=root,uid=508,required_score=5.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=33321,mid=<00...@desktophenco>,autolearn=no
Jul 6 13:29:36 localhost sendmail[4078]: k66BTZrS004078: Milter add:
header: X-Spam-Flag: YES
Jul 6 13:29:36 localhost sendmail[4078]: k66BTZrS004078: Milter add:
header: X-Spam-Status: Yes, score=1001.3 required=5.0
tests=GTUBE,HTML_MESSAGE,\r\n\tMISSING_SUBJECT autolearn=no version=3.1.3
Jul 6 13:29:36 localhost sendmail[4078]: k66BTZrS004078: Milter: data,
reject=550 5.7.1 Blocked by SpamAssassin
Jul 6 13:29:36 localhost sendmail[4078]: k66BTZrS004078:
to=<ib...@blablablbla.nl>, delay=00:00:00, pri=32933, stat=Blocked by
SpamAssassin
Jul 6 13:29:36 localhost spamd[4016]: prefork: child states: II
Jul 6 13:29:50 localhost spamd[4016]: spamd: server hit by SIGHUP,
restarting
Jul 6 13:29:50 localhost spamd[4016]: SIGCHLD handler "DEFAULT" not
defined.
Jul 6 13:29:50 localhost spamd[4016]: spamd: child 4019 killed successfully
Jul 6 13:29:50 localhost spamd[4016]: spamd: child 4018 killed successfully
Jul 6 13:29:51 localhost spamd[4016]: persistent_udp: no such method at
/usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/DnsResolver.pm line 98
Jul 6 13:29:51 localhost spamd[4016]: spamd: server started on port 783/tcp
(running version 3.1.3)
Jul 6 13:29:51 localhost spamd[4016]: spamd: server pid: 4016
Jul 6 13:29:51 localhost spamd[4016]: spamd: server successfully spawned
child process, pid 4088
Jul 6 13:29:51 localhost spamd[4016]: spamd: server successfully spawned
child process, pid 4089
Jul 6 13:29:51 localhost spamd[4016]: prefork: child states: II
How can i solve the problems On permissions:
Jul 6 13:29:36 localhost spamd[4018]: mkdir /root/.spamassassin: No
permision
Jul 6 13:29:36 localhost spamd[4018]: locker: safe_lock: cannot create tmp
lockfile /root/.spamassassin/auto-whitelist.lock.ProdecoBoy.4018 for
/root/.spamassassin/auto-whitelist.lock: No permision
Jul 6 13:29:36 localhost spamd[4018]: auto-whitelist: open of
auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile
/root/.spamassassin/auto-whitelist.lock.ProdecoBoy.4018 for
/root/.spamassassin/auto-whitelist.lock: No permision
I did make a usser and say spamd -u spambucked whate did i forgot ore did
wrong to set spamd permissions to usr (spambucked).
--
View this message in context: http://www.nabble.com/Realy-mixed-up-tf1897643.html#a5198056
Sent from the SpamAssassin - Users forum at Nabble.com.
Re: Realy mixed up
Posted by Jim Knuth <jk...@jkart.de>.
Heute (06.07.2006/01:20 Uhr) schrieb Matt Kettler,
>> Problem 3: mkdir /root/.spamassassin: Toegang geweigerd at
>> /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin.pm line 1486
>>
> Care to translate "Toegang geweigerd"? I don't speak Dutch.
;) Access/Permission denied or so
> That said, it looks like it's still trying to access
> /root/.spamassassin, despite running as spambucket.
> What's spambucket's home dir in /etc/passwd? Does this user have a
> /home/spambucket, and is it correctly mentioned in the passwd config?
> Do you have a bayes_path statement in any of your config files?
>> Problem 4: mkdir locker: safe_lock: cannot create tmp lockfile
>> /root/.spamassassin/auto-whitelist.lock.ProdecoBoy.3525 for
>> /root/.spamassassin/auto-whitelist.lock: Toegang geweigerd
>> Problem 5: etc... etc..
> Repeats of 3..
--
Viele Gruesse, Kind regards,
Jim Knuth
jk@jkart.de
ICQ #277289867
----------
Zufalls-Zitat
----------
Bücher sind oft die besten Freunde. Aber sie sollten nicht
die einzigen in unserem Leben sein. (Marie von Ebner-
Eschenbach)
----------
Der Text hat nichts mit dem Empfaenger der Mail zu tun
----------
Virus free. Checked by NOD32 Version 1.1645 Build 7626 05.07.2006
Re: Realy mixed up
Posted by Matt Kettler <mk...@comcast.net>.
hansje2000 wrote:
> Realy mixed up.
>
> Okey i have read some post at this topic and seems to be a more than i
> person have the same problem.
>
> first of all i gonna tel whate i have in the box.
>
> ---redhat 9
> ---sendmail
> ---today YUM update
>
> have root permission, and maked a usr for spamassassin like "spambucked"
>
>
<snip>
> Problem 1: no such method at
> /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/DnsResolver.pm line 98
> Problem 2: dns: Net::DNS version is 0.31, but need 0.34 at
> /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Dns.pm line 589.
>
Both 1 and 2 can be solved by upgrading the perl Net::DNS module to 0.34
or higher. Check your distro packages, or update it from CPAN. Odds are
you'll have to go the CPAN path.. RedHat 9 is pretty ancient, and is
weakly supported by fedora legacy for critical security issues only.
> Problem 3: mkdir /root/.spamassassin: Toegang geweigerd at
> /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin.pm line 1486
>
Care to translate "Toegang geweigerd"? I don't speak Dutch.
That said, it looks like it's still trying to access
/root/.spamassassin, despite running as spambucket.
What's spambucket's home dir in /etc/passwd? Does this user have a
/home/spambucket, and is it correctly mentioned in the passwd config?
Do you have a bayes_path statement in any of your config files?
> Problem 4: mkdir locker: safe_lock: cannot create tmp lockfile
> /root/.spamassassin/auto-whitelist.lock.ProdecoBoy.3525 for
> /root/.spamassassin/auto-whitelist.lock: Toegang geweigerd
> Problem 5: etc... etc..
Repeats of 3..