Re: Question about dspam/dspamc
Stevan Bajić <[email protected]> Sat, 06 Dec 2014 08:15:16 +0100
| Newsgroups | gmane.mail.spam.dspam.user |
|---|---|
| Message-ID | <[email protected]> |
On 06.12.2014 05:14, Eric Broch wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Raphaël,
>
> I think 'dspamc' and 'dspam --client' are the same thing.
> I don't think one uses dspamc with the --client option. Someone with
> more experience can correct me if I'm wrong.
> I would not use dspamc as there is a dot-stuffing problem with it
> which truncates email.
>
What dot-stuffig issue are you talking about?
> Eric
>
--
Kind Regards from Switzerland,
Stevan Bajić
>
>
> On 12/5/2014 6:32 PM, Raphaël Halimi wrote:
> > Hi,
> >
> > I use DSPAM in server mode for some years now and relied on LMTP between
> > Postfix/DSPAM/Cyrus to communicate with each other, so I didn't really
> > look into the different modes of operation of the dspam binary itself;
> > but recently it occurred to me that I was calling dspam in
> > self-contained mode for retraining, whereas I could just call it as a
> > thin client which would communicate with the already-running server
> > instance.
> >
> > So I have a question about the difference between dspam and dspamc
> > because the README isn't quite clear on this: it gives two contradicting
> > affirmations.
> >
> > Between lines 1771 and 1784 we have:
> >
> >> The DSPAM agent can then be called the same as if you were running in
> >> standard (non-client/server) mode and adding --client to the set of
> >> parameters. Running dspam without --client specified will cause
> DSPAM to
> >> revert to its normal non-daemon behavior and establish database
> connections
> >> on its own. The client settings will be loaded from dspam.conf,
> and the
> >> agent will act as a thin client instead. For example:
> >>
> >> dspam --client --user dick jane --deliver=innocent -d %u
> >>
> >> Alternatively, if you'd like to use a thinner client, dspamc is
> identical
> >> to the dspam binary in behavior, but has been stripped down to
> only include
> >> the lightweight client.
> >>
> >> dspamc --user dick jane --deliver=innocent -d %u
> >
> > ...which seems to imply that "dspamc" is equivalent to "dspam --client".
> >
> > But later, between lines 1892 and 1895, we can read:
> >
> >> "dspam" mode notes.
> >> In dspam mode, only the dspam client will be connecting to your
> LMTP server.
> >> This can be dspamc (a thin-client) or the dspam binary. In either
> case,
> >> you'll need to specify --client to tell DSPAM to act as a client.
> DLMTP
> >
> > ...which says that dspamc still needs the "--client" option.
> >
> > The logic would dictate that the first affirmation is true, and the
> > second one is false; if that's the case, then the README should be
> > fixed, as well as dspamc man page (if it can work only as a thin client,
> > the man page shouldn't mention the --server option, and stress out that
> > the --client option is useless).
> >
> > To be clear, in main.cf (Postfix), I had:
> >
> >> dspam-retrain unix - n n - 10 pipe
> >> flags=Ru user=dspam argv=/usr/bin/dspam --user ${sender}
> --class=${nexthop} --source=error
> >
> > If I replace /usr/bin/dspam with /usr/bin/dspamc, do I have to use the
> > --client option ? I don't think so, but could someone familiar with the
> > source code confirm ?
> >
> > Thanks :)
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> > from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> > with Interactivity, Sharing, Native Excel Exports, App Integration &
> more
> > Get technology previously reserved for billion-dollar corporations, FREE
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> >
> >
> > _______________________________________________
> > Dspam-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/dspam-user
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (MingW32)
>
> iQIcBAEBAgAGBQJUgoKcAAoJEJStyR+XOvDp8iMP/2+p8wHfuMqasmVAVdp4ec0n
> xitL7gyEP0FGkOqzxSLR8Yynrm8fWOP5MF4bXBcdpmv5S2+wTENiIgscl/XU6PnK
> m4rE35rJJKJ+v6bSrruSOYknKBAgi9zv+mZ5JKZt8+9UDrUoagBqAe/cV25bY1Of
> SPA6UAZwpC5Gp4vYvwF0ZxxhHECMrkuTle1JVkVzxjXdzTwtXgTR7VWK1xWQ4YMh
> N6g5lsI6vTn4Bx+dT8SBFFoJmHhyT296KcZZ1XPgD7Q6hJ0gxpKVUxdvOP/x+Ijf
> la4x4MwKOzlZ+oQxh3+hwDPcesJ2DnHxj3sLRVMFERRur3zaxEdy+jnkmNiIjXGe
> eZPeq34ntrvBuvB+8jLANUN07XHtjdLrfwLjjW50tKAGpZLQNiqBK/xN9Vq3FfWS
> QmJVKhHaxPsAwvhD85s1g9EIMkpUhGWYF4fiTjDHEioLJiaEYjftEsaQfudJPDhz
> kkX9vFXhFBu4qztQYvH468ruas6DuXIIory19VapFVCUtFsugyiDFYwQlUJ/WO8/
> GdDJN2qwNGOmgDKPY7qHEr1tM0Z7ABYBlNE+U3Vo358ro37e+4rI+LAL7PKCzc4Y
> DJc3cb+ZbY+KBMvh+SdXPVqCSOUC+/du65KwT8mDwV+LW1ulx3kgRR2l3OFtqe3R
> Pnc9+UI0TN8++Iymmrt9
> =ddvk
> -----END PGP SIGNATURE-----
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> Dspam-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspam-user
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user