I am porting my /etc/aliases from the old sendmail style email server and trying the best way to recreate them using the Virtualmin GUI.
Under Virtualmin I use Edit User -> Edit Mail Aliases -> Add an alias to this domain.
Under Name I add eg: someuser and check the box to forward to someuser@anotherdomain.org.When
I try to send a email to this alias I get the following:
An error occurred while sending mail. The mail server responded: 5.1.1 someuser@virtualrocks.org: Recipient address rejected: User unknown in local recipient table. Please check the message recipient someuser@virtualrocks.com and try again.
At this point I did not add this alias as a email account. I fiddled with settings and then just deleted the alias.
I recreated my entry in /etc/aliases via Webmin and after newaliases/postfix reload I can forward to the other email domain as before.
How can I add aliases like my original setup by using Virtualmin? Do I have to create a email account and then forward to another domain to get the same result? Or is using Webmin/vi editor the only way to achieve the same functionality as the old sendmail system?