Jesse Keating writes:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 02 March 2004 19:30, Sam Varshavchik wrote:
Since in this case you are delivering to the recipient address "dspam",
$USER will be "dspam".

Hrm, I see how I misworded this, or misset this up.

Since I have only virtual users, I suppose that alias should be:

[EMAIL PROTECTED] |/usr/local/dspam/bin/dspam --user [EMAIL PROTECTED] --addspam

With the [EMAIL PROTECTED], I would like to get the value of the sender. Basically dspam keeps a database for each account, based on their address. Instead of setting up individual aliases for each user, I wanted to create one master alias that feeds dspam the user that is sending the email. I imagine I should be using different variables shouldn't I?

Same answer. When you set up any alias foo: bar, mail addressed to foo gets delivered to bar, so the recipient is "bar".

Now, actually in cases of program aliases, the real recipient is the courier user itself, and program aliases are implemented via .courier files under the courier user; so $USER will be the courier user.



Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to