Subject: Re: Does mail/dspam play nice with postfix?
To: Paul Goyette <paul@whooppee.com>
From: Quentin Garnier <cube@cubidou.net>
List: pkgsrc-users
Date: 12/29/2007 15:39:35
--FCuugMFkClbJLl1L
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 27, 2007 at 06:32:31PM -0800, Paul Goyette wrote:
[...]
> and bounce the message there.  It tells me that it cannot establish a=20
> context because the sender (me? postfix? postfix's default_privs user?)=
=20
> is not trusted and cannot user the --user option.

There is a setting dspam.conf where you can add root as a trusted user.

> Anyone got any clue-by-fours for me?

Personally I use a transport, e.g.:

dspam-relearn-spam     unix - n  n      -       10      pipe
  flags=3DRu user=3Ddspam argv=3D/usr/pkg/bin/dspam --user ${user} --class=
=3Dspam --source=3Derror
dspam-relearn-innocent     unix - n  n      -       10      pipe
  flags=3DRu user=3Ddspam argv=3D/usr/pkg/bin/dspam --user ${user} --class=
=3Dinnocent --source=3Derror

That way I avoid any limitations of postfix on |cmd aliases, and I can
use a non-root user for the actual dspam command.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

--FCuugMFkClbJLl1L
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)

iQEVAwUBR3ZcJ9goQloHrPnoAQKvIQf9EDM5ffQQusrtZNJwYRWoIlr4avVTH/Qa
tJha1bLBpLJLLA8yGU7U8H+zv9EUnVat17x2iaz2tXWa0MjZX2UFKX0EkeN6Tuaf
C0VhOdWQSLQk8W3DKNK+4XQLqkhIj+HGoTDTGnjhfznuKoOKUhKY/4KjDt+IaZm5
i6Vo8pa7fPHL4/89qfeol3/0Vpw60XoUQsszdIOtnQRIMnT+TWqQFu8uXu3Z6IUt
X1W9Xyenccik41SqOj9AlMpXqvyqwv7oz8w+qY4sMU7cKlo20VFfbw5Vy4tqDSbc
Eml9IV1HsCSJNniK0lUTRa/7Z0FZFjhOCAFtFVbHVpKMvwd5+xCTVg==
=tjXi
-----END PGP SIGNATURE-----

--FCuugMFkClbJLl1L--