directadmin: list all mail addressess under all acounts

directadmin: serverdaki tum hesaplar altindaki tum mail adreslerini almaca:

#!/bin/sh

for d in `cat /etc/virtual/domains`; do
{
if [ ! -e /etc/virtual/$d/passwd ]; then
continue;
fi

for u in `cat /etc/virtual/$d/passwd | cut -d: -f1`; do
{
echo "$u@$d" >> liste.txt;
}
done;
}
done;