You are not logged in.

#1 2010-06-30 18:48:58

PoZiTPoH
Member
From: Yekaterinburg
Registered: 2009-08-25
Posts: 64
Website

spamd fail :<

Trying to get simple, one-user mailserver using these instructions. But afted /etc/rc.d/spamd start I get:

[22:34] root@pozitpoh:[ /home/pztrn ] # /etc/rc.d/spamd start
:: Starting spamd                                                                            [BUSY]
defined(%hash) is deprecated at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Dns.pm line 757.
    (Maybe you should just omit the defined()?)
Июн 30 22:34:48.218 [12764] warn: Use of uninitialized value $opt{"syslog-socket"} in lc at /usr/bin/perlbin/vendor/spamd line 444.
child process [12806] exited or timed out without signaling production of a PID file: exit 255 at /usr/bin/perlbin/vendor/spamd line 2588.
                                                                                             [FAIL]

Any help? :<

Last edited by PoZiTPoH (2010-06-30 18:49:15)

Offline

#2 2010-07-01 12:09:18

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: spamd fail :<

show your spamd.conf file, as well as /var/log/everything.log (spamd relevant entries)

Offline

#3 2010-07-03 05:22:45

PoZiTPoH
Member
From: Yekaterinburg
Registered: 2009-08-25
Posts: 64
Website

Re: spamd fail :<

Ok, this is my spamd.conf:

SAHOME="/var/lib/spamassassin/"
SPAMD_OPTS="-c --max-children 1 --username spamd -H ${SAHOME} -s ${SAHOME}spamd.log --pidfile /var/run/spamd.pid"

In everything.log - no entries...

Offline

#4 2010-07-03 07:54:09

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: spamd fail :<

looks like the problem is with the spamd executable itself, try running a sysupgrade with pacman to see if it resolves anything, if the error persists, you can also compile spamassassin from source, or not use it at all in your setup.

Offline

#5 2010-07-03 10:32:30

PoZiTPoH
Member
From: Yekaterinburg
Registered: 2009-08-25
Posts: 64
Website

Re: spamd fail :<

Right now spamd not in use :>
Ok, I'll wait for fix (it's mainstream bug, as google says) :<

Offline

#6 2010-07-14 22:34:51

k2t0f12d
Member
Registered: 2008-02-17
Posts: 31

Re: spamd fail :<

Spamassassin also logs in /var/lib/spamassassin/spamd.log

Try running (as root):

# sa-update

Then:

# /etc/rc.d/spamd restart

Cheers!

Offline

#7 2010-08-10 10:32:32

lord_rel
Member
Registered: 2007-04-04
Posts: 36

Re: spamd fail :<

upstream bug 6392

patch available here

Offline

#8 2010-11-06 11:07:16

Burroughs
Member
From: Naples (Italy)
Registered: 2010-02-15
Posts: 37

Re: spamd fail :<

Hi to everyone!

There's one thing not working, at least for me: I've downloaded the patch, as suggested, the spamassassin tarball (version 3.3), to then proceed to edit the PKGBUILD this way:

# $Id: PKGBUILD 75581 2010-04-01 22:07:41Z giovanni $
# Maintainer: Dale Blount <dale@archlinux.org>
# Contributor: Manolis Tzanidakis

pkgname=spamassassin
pkgver=3.3.1
pkgrel=2
pkgdesc="A mail filter to identify spam."
arch=(i686 x86_64)
license=(APACHE)
url="http://spamassassin.apache.org"
depends=('perl>=5.10.0' 'perl-net-dns' 'perl-uri' 'perl-html-parser' \
        'perl-digest-sha1' 'perl-io-socket-ssl' 'openssl' \
        'perl-libwww' 'perl-io-zlib' 'perl-mail-spf' \
        'perl-archive-tar' 'zlib' 're2c')
makedepends=('razor' 'perl-dbi') 
optdepends=('razor: to identify collaborately-flagged spam'
        'gnupg: gpg support, without this use --nogpg flag for sa-update'
            're2c: regexp compiler, for compiling rules with sa-compile')
backup=(etc/conf.d/spamd etc/mail/spamassassin/local.cf \
    etc/mail/spamassassin/init.pre \
    etc/mail/spamassassin/v310.pre \
    etc/mail/spamassassin/v312.pre \
    etc/mail/spamassassin/v320.pre)
install=${pkgname}.install
options=(!emptydirs)
source=(http://mirrors.devlib.org/apache/${pkgname}/source/Mail-SpamAssassin-${pkgver}.tar.gz \
        spamd.conf.d spamd \ /home/alutri/spamassassin/sa.diff)
md5sums=('5a93f81fda315411560ff5da099382d2'
         'af501c6b0bb937a2775b747cc4b6d150'
         'db5c79722722e56678401ae454b28ece')

build() {
  cd ${srcdir}/Mail-SpamAssassin-${pkgver}

  # install module in vendor directories.
  PERL_MM_USE_DEFAULT=1 /usr/bin/perl Makefile.PL INSTALLDIRS=vendor \
      CONTACT_ADDRESS=root@localhost ENABLE_SSL=yes PERL_TAINT=no

  patch -Np0 -i /home/alutri/spamassassin/sa.diff  
  /usr/bin/make || return 1
  /usr/bin/make DESTDIR=${pkgdir} install || return 1

  # remove perllocal.pod and .packlist
  find ${pkgdir} -name perllocal.pod -delete
  find ${pkgdir} -name .packlist -delete

  /bin/install -D -m644 ${srcdir}/spamd.conf.d ${pkgdir}/etc/conf.d/spamd
  /bin/install -D -m755 ${srcdir}/spamd ${pkgdir}/etc/rc.d/spamd
}
md5sums=('5a93f81fda315411560ff5da099382d2'
         '48e14c28441cd5344a8d2674fdbd31e5'
         'db5c79722722e56678401ae454b28ece'
         '151f02c1177e7b96add07c995986b18a')
md5sums=('5a93f81fda315411560ff5da099382d2'
         'af501c6b0bb937a2775b747cc4b6d150'
         'db5c79722722e56678401ae454b28ece'
         '151f02c1177e7b96add07c995986b18a')

I recreate the checksums by giving:

makepkg -g >> PKGBUILD

create the package with makepkg and install the whole thing with pacman.
When I start the daemon again, I receive the same error message:

[root@andy ~]# /etc/rc.d/spamd start
:: Starting spamd                                               [BUSY] defined(%hash) is deprecated at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Dns.pm line 757.
        (Maybe you should just omit the defined()?)
nov  6 12:05:03.326 [27779] warn: Use of uninitialized value $opt{"syslog-socket"} in lc at /usr/bin/perlbin/vendor/spamd line 444.

It seems like the patch hasn't been applied at all.
Any suggestions?

Burroughs.


"Two things are infinite: the universe and human stupidity; and I'm not sure about the universe" (Albert Einstein)

Offline

#9 2010-11-13 15:52:29

voidzero
Member
Registered: 2007-06-21
Posts: 109

Re: spamd fail :<

Hi,

I saved the patch in /usr/share/perl5/vendor_perl/Mail/SpamAssassin
Then I went to that directory, and did "patch -p3 < somepatch.sa" and I skipped the first patch. That's it smile

Offline

Board footer

Powered by FluxBB