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 :)

-- 
Raphaël Halimi

Attachment: signature.asc
Description: OpenPGP digital 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
Dspam-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-user

Reply via email to