You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Anders Norrbring <an...@norrbring.biz> on 2004/03/22 20:03:02 UTC
DCC / SA / Amavis?
I thought I'd set up DCC with my Amavis-New / SpamAssassin setup, but I
don't understand the instructions on how to do it..
Should I just download and install the dcc-dccproc.tar.Z "small" package, or
some of the others? What configs do I need to perform to make it work? I'm
totally lost...
Anders Norrbring
SV: SV: DCC / SA / Amavis?
Posted by Anders Norrbring <an...@norrbring.biz>.
>
> Am Montag, 22. März 2004 20:41 schrieb Anders Norrbring:
>
> > debug: DCCifd is not available: no r/w dccifd socket found.
> > debug: executable for dccproc was found at /usr/local/bin/dccproc
> > debug: DCC is available: /usr/local/bin/dccproc
> > debug: entering helper-app run mode
> > debug: DCC: got response: X-DCC-NIET-Metrics: iris 1080; Body=3112
> > Fuz1=634121 Fuz2=628041
> > debug: leaving helper-app run mode
> >
> should work!
>
> greetz
So, what you're saying is that there's no need for any configuration at all
to DCC? Just install and sit back? *surprised*
Anders.
Re: SV: SV: SV: DCC / SA / Amavis?
Posted by Alex S Moore <as...@edge.net>.
On Mon, 2004-03-22 at 17:03, Anders Norrbring wrote:
> Alright Alex! Thanks! Now I get this in the spamassassin lint run:
>
> debug: DCCifd is available: /var/dcc/dccifd
> debug: dcc_home not defined, should not get here
>
> Not that I know what it means by the 2:nd line, dcc_home shouldn't be
> explicitly defined as of what I can make out of the docs. Anyway, IF I set
> dcc_home /var/dcc in my local.cf file, then I get errors;
>
Well, I have dcc_home defined and it works. Here is the full list that
I have and of course the path will need to be changed.
use_dcc 1
dcc_path /opt/csw/dcc/
dcc_home /opt/csw/dcc/
dcc_dccifd_path /opt/csw/dcc/dccifd
> debug: leaving helper-app run mode
> DCCifd -> check skipped: Connection refused connect: Connection refused
> ...propagated at /usr/lib/perl5/site_perl/5.8.1/Mail/SpamAssassin/Dns.pm
> line 617.
>
This is probably a permission issue with the user running the dcc
process. I use a user and group of dcc and the dccifd process has dcc
listed as the owner. Also, user dcc owns the home directory and most
everything in the directory, except libexec and cgi-bin.
>
> So I let it be undefined, seems like it should work by now.. By the way,
> how do I *stop* dccifd? I can start it simple enough by the start-dccifd
> script, but not stop it? But it should feel "cleaner" to shut it off when
> system is going down for halt or reboot.
What you should use is <dcc_home>/libexec/rcDCC. I copied that file to
/etc/init.d/ and made symlinks in rc2.d. As long as dcc_conf is setup
properly, the script should work as is.
Alex
SV: SV: SV: DCC / SA / Amavis?
Posted by Anders Norrbring <an...@norrbring.biz>.
> > > Am Montag, 22. März 2004 20:41 schrieb Anders Norrbring:
> > >
> > Isn't there a need/use for dccifd when running Amavis-new /
> SpamAssassin?
> > Anyway, when I start it with "start-dccifd" as user 'vscan' I get a
> socket
> > in /var/dcc named dccifd. I guess all is well?
> >
> > But when I run spamassassin --lint -D I get this:
> >
> > debug: DCCifd is not available: no r/w dccifd socket found.
> >
>
> I use DCC and like it. However, the real advantage of DCC is
> greylisting. Anyway, add the following to local.cf and make sure the
> uid running SA has rw rights to the socket.
>
> dcc_dccifd_path /var/dcc/dccifd
>
> Alex
Alright Alex! Thanks! Now I get this in the spamassassin lint run:
debug: DCCifd is available: /var/dcc/dccifd
debug: dcc_home not defined, should not get here
Not that I know what it means by the 2:nd line, dcc_home shouldn't be
explicitly defined as of what I can make out of the docs. Anyway, IF I set
dcc_home /var/dcc in my local.cf file, then I get errors;
debug: leaving helper-app run mode
DCCifd -> check skipped: Connection refused connect: Connection refused
...propagated at /usr/lib/perl5/site_perl/5.8.1/Mail/SpamAssassin/Dns.pm
line 617.
So I let it be undefined, seems like it should work by now.. By the way,
how do I *stop* dccifd? I can start it simple enough by the start-dccifd
script, but not stop it? But it should feel "cleaner" to shut it off when
system is going down for halt or reboot.
Anders.
Re: SV: SV: DCC / SA / Amavis?
Posted by Alex S Moore <as...@edge.net>.
On Mon, 2004-03-22 at 15:15, Anders Norrbring wrote:
> >
> > Am Montag, 22. März 2004 20:41 schrieb Anders Norrbring:
> >
> Isn't there a need/use for dccifd when running Amavis-new / SpamAssassin?
> Anyway, when I start it with "start-dccifd" as user 'vscan' I get a socket
> in /var/dcc named dccifd. I guess all is well?
>
> But when I run spamassassin --lint -D I get this:
>
> debug: DCCifd is not available: no r/w dccifd socket found.
>
I use DCC and like it. However, the real advantage of DCC is
greylisting. Anyway, add the following to local.cf and make sure the
uid running SA has rw rights to the socket.
dcc_dccifd_path /var/dcc/dccifd
Alex
SV: SV: DCC / SA / Amavis?
Posted by Anders Norrbring <an...@norrbring.biz>.
>
> Am Montag, 22. März 2004 20:41 schrieb Anders Norrbring:
>
> > debug: DCCifd is not available: no r/w dccifd socket found.
> > debug: executable for dccproc was found at /usr/local/bin/dccproc
> > debug: DCC is available: /usr/local/bin/dccproc
> > debug: entering helper-app run mode
> > debug: DCC: got response: X-DCC-NIET-Metrics: iris 1080; Body=3112
> > Fuz1=634121 Fuz2=628041
> > debug: leaving helper-app run mode
> >
> should work!
>
> greetz
Isn't there a need/use for dccifd when running Amavis-new / SpamAssassin?
Anyway, when I start it with "start-dccifd" as user 'vscan' I get a socket
in /var/dcc named dccifd. I guess all is well?
But when I run spamassassin --lint -D I get this:
debug: DCCifd is not available: no r/w dccifd socket found.
Now what? Or should I skip dccifd altogether in my setup?
Anders.
Re: SV: DCC / SA / Amavis?
Posted by Stefan Ewert <nu...@gmx.net>.
Am Montag, 22. März 2004 20:41 schrieb Anders Norrbring:
> debug: DCCifd is not available: no r/w dccifd socket found.
> debug: executable for dccproc was found at /usr/local/bin/dccproc
> debug: DCC is available: /usr/local/bin/dccproc
> debug: entering helper-app run mode
> debug: DCC: got response: X-DCC-NIET-Metrics: iris 1080; Body=3112
> Fuz1=634121 Fuz2=628041
> debug: leaving helper-app run mode
>
should work!
greetz
stefan
SV: DCC / SA / Amavis?
Posted by Anders Norrbring <an...@norrbring.biz>.
> Ämne: Re: DCC / SA / Amavis?
>
> Am Montag, 22. März 2004 20:03 schrieb Anders Norrbring:
> > I thought I'd set up DCC with my Amavis-New / SpamAssassin setup, but I
> > don't understand the instructions on how to do it..
> >
> > Should I just download and install the dcc-dccproc.tar.Z "small"
> package,
> > or some of the others? What configs do I need to perform to make it
> work?
> > I'm totally lost...
> download the proc file, extract it, "./configure", "make" , "make
> install", =>
> "spamassassin --lint -D" post the output which has got something to do
> with
> dcc here.
Thanks for wanting to help, Stefan. Here's the output lines that contains
'DCC':
debug: DCCifd is not available: no r/w dccifd socket found.
debug: executable for dccproc was found at /usr/local/bin/dccproc
debug: DCC is available: /usr/local/bin/dccproc
debug: entering helper-app run mode
debug: DCC: got response: X-DCC-NIET-Metrics: iris 1080; Body=3112
Fuz1=634121 Fuz2=628041
debug: leaving helper-app run mode
Anders
Re: DCC / SA / Amavis?
Posted by Stefan Ewert <nu...@gmx.net>.
Am Montag, 22. März 2004 20:03 schrieb Anders Norrbring:
> I thought I'd set up DCC with my Amavis-New / SpamAssassin setup, but I
> don't understand the instructions on how to do it..
>
> Should I just download and install the dcc-dccproc.tar.Z "small" package,
> or some of the others? What configs do I need to perform to make it work?
> I'm totally lost...
download the proc file, extract it, "./configure", "make" , "make install", =>
"spamassassin --lint -D" post the output which has got something to do with
dcc here.