Mirko Zeibig writes:
> Hello,
> whenever a new user is created, he or she is member of several groups
> (all, adm, dev etc.) to gain rights using samba and to deliver mail
> automatically to every member of the group when mail is sent to all@,
> adm@ etc.
> Now I use to edit ~alias/.qmail-all, .qmail-adm etc. files and add the
> appropriate users manually. I started to write a redirect like this:
> | /var/qmail/bin/qmail-inject $(/bin/cat /etc/group | /bin/grep alle: |
> /bin/awk -F':' '{print $4}' | /bin/sed 's/,/ /g')
> which will alias cause to deliver the message but now the From adress is
> rewritten to alias, which was not my goal of course.
Yes, the envelope sender will match the user which sent the mail. If
you need it to be something else you should use the -f switch to
qmail-inject.
--
-russ nelson <[EMAIL PROTECTED]> http://crynwr.com/~nelson
Crynwr supports Open Source(tm) Software| PGPok | There is good evidence
521 Pleasant Valley Rd. | +1 315 268 1925 voice | that freedom is the
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | cause of world peace.