NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

postfix experts?

I'm trying to get dspam set up to use a single system-wide alias for "relearning" messages. I've added the following in my aliases database:

is-spam:        "|/usr/pkg/bin/dspam --user $user --class=spam --source=error"
is-not-spam:    "|/usr/pkg/bin/dspam --user $user --class=innocent 

But it seems that postfix/local isn't substituting $user, and I'm getting a non-delivery message.

Here's the entries from /var/log/maillog

Apr  3 14:30:08 screamer postfix/pickup[24401]: 8A6A12471BA: uid=1000 
Apr  3 14:30:08 screamer postfix/cleanup[22173]: 8A6A12471BA: 
Apr  3 14:30:08 screamer postfix/qmgr[366]: 8A6A12471BA: 
from=<>, size=3388, nrcpt=1 (queue active)
Apr  3 14:30:08 screamer dspam[6236]: Unable to determine the destination user
Apr  3 14:30:08 screamer postfix/local[23594]: 8A6A12471BA: 
to=<>, relay=local, delay=0.12, 
delays=0.07/0.02/0/0.04, dsn=5.3.0, status=bounced (Command died with status 1: 
"/usr/pkg/bin/dspam --user $user --class=innocent --source=error". Command output: 
6236: [04/03/2012 14:30:08] Unable to determine the destination user Syntax: dspam 
[--client|--daemon] --mode=[toe|tum|teft|notrain] --user [user1 user2 ... userN] 
[--feature=[ch,no,wh,tb=N,sbph]] [--class=[spam|innocent]] 
[--source=[error|corpus|inoculation]] [--profile=[PROFILE]] [--deliver=[spam,innocent,summary]] 
[--process|--classify] [--stdout] [passthru-arguments] )
Apr  3 14:30:08 screamer postfix/bounce[11399]: 8A6A12471BA: sender 
non-delivery notification: 998292471BC
Apr  3 14:30:08 screamer postfix/qmgr[366]: 8A6A12471BA: removed

I know I can make it work by setting up a pair of aliases for each user, and embed the actual value of $user, but that's not really a scalable solution.

Any hints?

| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at |
| Kernel Developer |                          | pgoyette at  |

Home | Main Index | Thread Index | Old Index