How can I make an alias expand to a list of recipients returned by a command?
Posted
by
Frerich Raabe
on Server Fault
See other posts from Server Fault
or by Frerich Raabe
Published on 2012-10-08T08:55:39Z
Indexed on
2012/10/08
9:38 UTC
Read the original article
Hit count: 243
I have an rarely used /etc/aliases
entry
vmailusers: :include:/usr/local/etc/vmailusers
The /usr/local/etc/vmailusers
file is generated by a cronjob executing
ls /home/vmail | grep -v lists > /usr/locale/etc/vmailusers
chmod 0640 /usr/local/etc/vmailusers
chmod mailnull:mail /usr/local/etc/vmailusers
Is there a way to avoid having to run a cron job but rather execute the ls
command in the very moment the vmailusers
alias is used?
© Server Fault or respective owner