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.
Any hints?
Thanx
Mirko
---
mailto:[EMAIL PROTECTED]
http://sites.inka.de/sites/picard

Reply via email to