Carlos Lorenzo Matés wrote:
Hi to All.
Is possible to use a variable user in the pipe option?
Yeees... that is possible. Though I don't know if it is exactly what you
require. "man 8 pipe" will tell you that the pipe deamon expands the localpart
of the recipient address (the part left of the "@" character in the recipient
address) for the macro ${user}.
If that is the information you need, everything works.
ie:
procmail unix - n n - - pipe
flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender}
${recipient}
in this line change the user=nobody to user=${user}
I wouldn't touch that.
If you deliver to a command via mailbox_command (not a pipe) then this comes
to play:
Mailbox delivery can be delegated to an external command
specified with the mailbox_command_maps and mailbox_com-
mand configuration parameters. The command executes with
the privileges of the recipient user (exceptions: sec-
ondary groups are not enabled; in case of delivery as
root, the command executes with the privileges of
default_privs).
Would that help you?
it is not exactly to change the procmail user, but for changing the user in
the emailto fax gateway, the line is similar.
How does the line look?
--
Sandy
List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]