Re: [Dovecot] antispam plugin problem
With it I have already understood having added the user vmail in mail group, but all the same mutt produces an error "Failed to call dspam" and does not wish to move the letter to a directory a spam. In log now here so: May 11 14:51:50 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 May 11 14:51:50 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --deliver= --user vmail May 11 14:51:50 evil imap: antispam: plugin initialising (1.2-notgit)
On 12:31 Tue 11 May , Philipp wrote:
Try to add a --debug to dspam, and if that doesn't produce any additional output try to start dspam not with init.d (I assume you do?) but run it manually on the command line as 'sudo dspam --debug --daemon', that should give you a better idea of what's going on. To change the gid just add -g \#1010 to sudo. Maybe also try to add --stdout or leave away the --client in your call to dspam, might make it easier to pin down the error. I'm also experiencing quite a bit of trouble with dspam, memory leaks and stuff but I haven't been able to get in contact with their mailing list (the address I found was deemed non-existent..)
Danila a ?crit :
Nothing happens #> su vmail -c "/usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail" #>
On 10:05 Tue 11 May , Steffen Kaiser wrote: On Tue, 11 May 2010, Danila wrote:
On 01:18 Tue 11 May , Trever L. Adams wrote:
On 05/11/2010 12:02 AM, Danila wrote: > May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 > May 11 10:54:09 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail > May 11 10:54:09 evil imap: antispam: executing /usr/local/bin/dspam failed: 13 (uid=1009, gid=1010) > > uid=1009, gid=1010 is vmail user What happens, if you run the command from the shell as user vmail? E.g.:
sudo -u \#1009 /usr/local/bin/dspam --source=error --class=spam
--signature=4be87a9f953248352114216 --client --user vmailHmm, I don't know if you can also assign the gid...
Regards,
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 11 May 2010, Danila wrote:
With it I have already understood having added the user vmail in mail group, but all the same mutt produces an error "Failed to call dspam" and does not wish to move the letter to a directory a spam. In log now here so: May 11 14:51:50 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 May 11 14:51:50 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --deliver= --user vmail May 11 14:51:50 evil imap: antispam: plugin initialising (1.2-notgit)
There is no error this time, but a "--deliver=" option and it's missing the "--client" option.
Could dspam's error "13" mean that dspam client cannot connect to the server?
On 12:31 Tue 11 May , Philipp wrote:
Try to add a --debug to dspam, and if that doesn't produce any additional output try to start dspam not with init.d (I assume you do?) but run it manually on the command line as 'sudo dspam --debug --daemon', that should give you a better idea of what's going on. To change the gid just add -g \#1010 to sudo. Maybe also try to add --stdout or leave away the --client in your call to dspam, might make it easier to pin down the error. I'm also experiencing quite a bit of trouble with dspam, memory leaks and stuff but I haven't been able to get in contact with their mailing list (the address I found was deemed non-existent..)
Danila a ?crit :
Nothing happens #> su vmail -c "/usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail" #>
On 10:05 Tue 11 May , Steffen Kaiser wrote: On Tue, 11 May 2010, Danila wrote:
On 01:18 Tue 11 May , Trever L. Adams wrote: > On 05/11/2010 12:02 AM, Danila wrote: >> May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 >> May 11 10:54:09 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail >> May 11 10:54:09 evil imap: antispam: executing /usr/local/bin/dspam failed: 13 (uid=1009, gid=1010) >> >> uid=1009, gid=1010 is vmail user What happens, if you run the command from the shell as user vmail? E.g.:
sudo -u \#1009 /usr/local/bin/dspam --source=error --class=spam
--signature=4be87a9f953248352114216 --client --user vmailHmm, I don't know if you can also assign the gid...
Regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS+k/87+Vh58GPL/cAQJvWQf/drQr6D6UTeabdMKwEr278hm4G5hNtMS7 xHOvTdz8dG7u4OG205Emp1clpVg6mTC5u+lrZAx2ADfJqFK+VxFi0N3YXiCfEhzW orVZG0Pdv9FCsjNbiO414z7f48Y0atQM5j2jZaPg4nac9kMLqa8jM+30/VnWHrSh /PisOdYxwOtM0Dj4/NTfoqIKX3BYQ6DyTik2mWUVzYs7X/UOp6+OwbPwaG7ExoKt 0wNooe+4PkZAfn9omkFMRQPv/5NHx9swUGugoq8Y15k29VFjKTlosQdQ4lQonToj B5zToD/M4iC/IRyY+SwUTwLawVbWWQtqaTyrqjXb6koABcb0sY73AA== =YaZE -----END PGP SIGNATURE-----
On 11/05/10 12:57, Danila wrote:
With it I have already understood having added the user vmail in mail group, but all the same mutt produces an error "Failed to call dspam" and does not wish to move the letter to a directory a spam. In log now here so:
The --user option of dspam sets the user that dspam classifies mail for, and has nothing to do with your system accounts.
Does the user 'vmail' exist in your dspam setup, or are you classifying mail per user (i.e. final recipient)? In the latter case, you probably want to pass the mail recipient to --user, and not 'vmail':
dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user atckoe.zlo@gmail.com
For more details on why your dspam call fails, enable dspam debugging, so you can see what is wrong with it.
Tom
May 11 14:51:50 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 May 11 14:51:50 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --deliver= --user vmail May 11 14:51:50 evil imap: antispam: plugin initialising (1.2-notgit)
On 12:31 Tue 11 May , Philipp wrote:
Try to add a --debug to dspam, and if that doesn't produce any additional output try to start dspam not with init.d (I assume you do?) but run it manually on the command line as 'sudo dspam --debug --daemon', that should give you a better idea of what's going on. To change the gid just add -g \#1010 to sudo. Maybe also try to add --stdout or leave away the --client in your call to dspam, might make it easier to pin down the error. I'm also experiencing quite a bit of trouble with dspam, memory leaks and stuff but I haven't been able to get in contact with their mailing list (the address I found was deemed non-existent..)
Danila a ?crit :
Nothing happens #> su vmail -c "/usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail" #>
On 10:05 Tue 11 May , Steffen Kaiser wrote: On Tue, 11 May 2010, Danila wrote:
On 01:18 Tue 11 May , Trever L. Adams wrote: > On 05/11/2010 12:02 AM, Danila wrote: >> May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 >> May 11 10:54:09 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail >> May 11 10:54:09 evil imap: antispam: executing /usr/local/bin/dspam failed: 13 (uid=1009, gid=1010) >> >> uid=1009, gid=1010 is vmail user What happens, if you run the command from the shell as user vmail? E.g.:
sudo -u \#1009 /usr/local/bin/dspam --source=error --class=spam
--signature=4be87a9f953248352114216 --client --user vmailHmm, I don't know if you can also assign the gid...
Regards,
why are dspam error code such a mystery anyways? does anyone know if a somewhat comprehensive listing exists somewhere?
----- Ursprüngliche Mitteilung -----
On 11/05/10 12:57, Danila wrote:
With it I have already understood having added the user vmail in mail group, but all the same mutt produces an error "Failed to call dspam" and does not wish to move the letter to a directory a spam. In log now here so:
The --user option of dspam sets the user that dspam classifies mail for, and has nothing to do with your system accounts.
Does the user 'vmail' exist in your dspam setup, or are you classifying mail per user (i.e. final recipient)? In the latter case, you probably want to pass the mail recipient to --user, and not 'vmail':
dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user atckoe.zlo@gmail.com
For more details on why your dspam call fails, enable dspam debugging, so you can see what is wrong with it.
Tom
May 11 14:51:50 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 May 11 14:51:50 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --deliver= --user vmail May 11 14:51:50 evil imap: antispam: plugin initialising (1.2-notgit)
On 12:31 Tue 11 May , Philipp wrote:
Try to add a --debug to dspam, and if that doesn't produce any additional output try to start dspam not with init.d (I assume you do?) but run it manually on the command line as 'sudo dspam --debug --daemon', that should give you a better idea of what's going on. To change the gid just add -g \#1010 to sudo. Maybe also try to add --stdout or leave away the --client in your call to dspam, might make it easier to pin down the error. I'm also experiencing quite a bit of trouble with dspam, memory leaks and stuff but I haven't been able to get in contact with their mailing list (the address I found was deemed non-existent..)
Danila a ?crit :
Nothing happens #> su vmail -c "/usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail" #>
On 10:05 Tue 11 May , Steffen Kaiser wrote: On Tue, 11 May 2010, Danila wrote:
> On 01:18 Tue 11 May , Trever L. Adams wrote: > > On 05/11/2010 12:02 AM, Danila wrote: > > > May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 > > > May 11 10:54:09 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail > > > May 11 10:54:09 evil imap: antispam: executing /usr/local/bin/dspam failed: 13 (uid=1009, gid=1010) > > > > > > uid=1009, gid=1010 is vmail user What happens, if you run the command from the shell as user vmail? E.g.:
sudo -u \#1009 /usr/local/bin/dspam --source=error --class=spam
--signature=4be87a9f953248352114216 --client --user vmailHmm, I don't know if you can also assign the gid...
Regards,
All has dared addition ";" in an option --user i.e. --user;vmail Regards
On 14:27 Tue 11 May , Philipp Haselwarter wrote:
why are dspam error code such a mystery anyways? does anyone know if a somewhat comprehensive listing exists somewhere?
----- Urspr??ngliche Mitteilung -----
On 11/05/10 12:57, Danila wrote:
With it I have already understood having added the user vmail in mail group, but all the same mutt produces an error "Failed to call dspam" and does not wish to move the letter to a directory a spam. In log now here so:
The --user option of dspam sets the user that dspam classifies mail for, and has nothing to do with your system accounts.
Does the user 'vmail' exist in your dspam setup, or are you classifying mail per user (i.e. final recipient)? In the latter case, you probably want to pass the mail recipient to --user, and not 'vmail':
dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user atckoe.zlo@gmail.com
For more details on why your dspam call fails, enable dspam debugging, so you can see what is wrong with it.
Tom
May 11 14:51:50 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 May 11 14:51:50 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --deliver= --user vmail May 11 14:51:50 evil imap: antispam: plugin initialising (1.2-notgit)
On 12:31 Tue 11 May , Philipp wrote:
Try to add a --debug to dspam, and if that doesn't produce any additional output try to start dspam not with init.d (I assume you do?) but run it manually on the command line as 'sudo dspam --debug --daemon', that should give you a better idea of what's going on. To change the gid just add -g \#1010 to sudo. Maybe also try to add --stdout or leave away the --client in your call to dspam, might make it easier to pin down the error. I'm also experiencing quite a bit of trouble with dspam, memory leaks and stuff but I haven't been able to get in contact with their mailing list (the address I found was deemed non-existent..)
Danila a ?crit :
Nothing happens #> su vmail -c "/usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail" #>
On 10:05 Tue 11 May , Steffen Kaiser wrote: On Tue, 11 May 2010, Danila wrote:
> > On 01:18 Tue 11 May , Trever L. Adams wrote: > > > On 05/11/2010 12:02 AM, Danila wrote: > > > > May 11 10:54:09 evil imap: antispam: mail copy: src spam: 0, dst spam: 1, src unsure: 0 > > > > May 11 10:54:09 evil imap: antispam: /usr/local/bin/dspam --source=error --class=spam --signature=4be87a9f953248352114216 --client --user vmail > > > > May 11 10:54:09 evil imap: antispam: executing /usr/local/bin/dspam failed: 13 (uid=1009, gid=1010) > > > > > > > > uid=1009, gid=1010 is vmail user What happens, if you run the command from the shell as user vmail? E.g.:
sudo -u \#1009 /usr/local/bin/dspam --source=error --class=spam
--signature=4be87a9f953248352114216 --client --user vmailHmm, I don't know if you can also assign the gid...
Regards,
participants (4)
-
Danila
-
Philipp Haselwarter
-
Steffen Kaiser
-
Tom Hendrikx