On 2005-02-22 Jerome Alet <[EMAIL PROTECTED]> wrote:
[...]
> if you define an alias in /etc/aliases like for example
> myalias: "|/usr/bin/somecommand"
> then run newaliases, every time you send an email to 'myalias', the
> email message you sent is piped into /usr/bin/somecommand
> somecommand is run as the user defined in the 'system_aliases'
> directive in exim.conf
> but only the primary group for this user is initialized, not the
> additionnal groups this user is a member of.
[...]
This is deliberate, documented and configurable.
Quoting spec.txt:
| When the uid is taken from the transport's configuration, the
| "initgroups()" function is called for the groups associated with that
| uid if the "initgroups" option is set for the transport; "pipe" is the
| only transport that has such an option.
|
| When the uid is not specified by the transport, but is associated with
| the address by a director or router, the option for calling
| "initgroups()" is taken from the director or router configuration. All
| directors and routers have "group", "user", and "initgroups" options,
| which are used as follows:
cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"
http://downhill.aus.cc/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]