it would be better to create 10 forward
Forward to where?
Your system, one account with multiple domain is not possible, if the domain is on different server or vps
You can forward the default email account to another email address. I don't know what that statement has to do with this thread about email.
abuse and postmaster addresses are both important; if you ever host a client who either accidentally or intentionally gets labeled as a spammer and email to his or your hostname's abuse and/or postmaster accounts bounce you'll find yourself on some anti-spam blocklists that are extremely hard to get off of.Hmm.. I see conflicting issues though.
1) Yes, domains are supposed to have them according to RFCs
2) but that means that they're very easy targets for spammers.
Because it's inconsistent spammers won't mail to it. Neither will recipients complaining about spammers. And that's the problem.The system account is at least not consistent, so spammers have to guess in order to get mail to it, but "postmaster" and "abuse" will be the same for all domans, so spammers would only have to send email there and your account gets filled up.
#!/bin/sh
echo "postmaster: $username" >> /etc/virtual/$domain/aliases
echo "abuse: $username" >> /etc/virtual/$domain/aliases
exit 0;
#!/bin/sh
#Create default mail aliases for the domain
FILE=/etc/virtual/$domain/aliases
mv $FILE $FILE.tmp
echo "abuse: $username" > $FILE
echo "admin: $username" >> $FILE
echo "postmaster: $username" >> $FILE
echo "webmaster: $username" >> $FILE
cat $FILE.tmp >> $FILE
rm -f $FILE.tmp
chown mail:mail $FILE
chmod 600 $FILE