Is there a way to import users with aliases and passwords into thevirtusertable from a CSV or TAB delimited text file?
Passwords aren't necessary in that file. Just email addresses and what they map to...
Tab-delimited would be nicest, as that's what virtusertable is... just make sure you get the left and right sides correct ("source" on the left, "destination" on the right). When you're done, just make the hashtable by doing:
makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable (one line command; not sure what the mail wrap will do to this)You may need to adjust the /etc/mail directory depending on where your file actually lives.
CSV file would be ok too - just open virtusertable in your favorite editor, import the CSV file, then do a global sub-and-replace changing the , to a \t (or maybe do it before you import the file, just to make sure you don't accidentally affect something else already in the file containing a comma, although I don't think there is anything like that...)