Default email account created with accounts (why is necessary to create one?)

Add aliases to exisiting accounts

put the following code, then chmod it to 755:
Code:
#!/bin/sh
echo "postmaster: $username" >> /etc/virtual/$domain/aliases
echo "abuse: $username" >> /etc/virtual/$domain/aliases
exit 0;
John

Linux ignorant that I am...what would I need to do to this script to change it to add the postmaster and abuse aliases to exisiting accounts?

thanks

Thom
 
You'd have to put it in a loop, replacing the username and domain variables with variables created by the loop.

You may or may not need two loops, one within another; I'm not sure of the details; maybe someone else, better at scripting than I, will share.

Jeff
 
Back
Top