Which version of OpenMail do you have installed on your machine and is your /etc/aliases file on the same machine ?
If so, you don't need to have so many aliases defined as the ommapsmtp process will handle this for you (if you have sendmail listening) or it will be handled by the SMTP relay (if that is your primary SMTP listener).
Scalix users can have multiple internet addresses defined so an entry for Test User/Openmail would be
S=User/G=Test/OU1=Openmail/IA=testuser@hostname=tuser@hostname
and both addresses will be routed to the same mailbox.
Creation of multiple addresses can be handled through the Web Admin interface by going to the Settings menu. This will set up the rules to determine auto creation, it will not affect existing users.
To update existing users (if you don't mind having all the addresses regenerated), you can use a short script such as:
Code: Select all
omshowu -m all | while read username
do
ommodu -o "$username" -A
done
Assuming you have sendmail listening on port 25 of your external IP address, an incoming message will be checked against the SYSTEM directory via the ommapsmtp lookup. If the message is destined for a Scalix user, the Scalix mailer (unix.in) will be invoked. If it is not destined for a Scalix user, the message will be processed further by the sendmail rules which also includes the alias lookup. This allows you to retain your aliases for external users.
Please come back if you have any more questions.
Cheers
Dave