On Tue, 8 Apr 2003, Enrico wrote:
> i search for a method to get all virtual adresses on my toaster.

> pushd /usr/local/vpopmail/domains;find -type d -maxdepth 3 -name
> "*Maildir"|sed 's/^.*\/\(.*\)\/\(.*\)\/.*$/[EMAIL PROTECTED]/g';popd

This is arguably better as it looks up the names the same way vpopmail
would, rather than relying on the directory structure to mirror the
actual setup:

vdominfo -d | while read i; do sed "s/:.*/@${i##*/}/" "$i/vpasswd"; done

Moshe

-- 
Moshe Jacobson 
http://runslinux.net 
AIM: Jehsom


Reply via email to