mail aliases in dovecot?

Red Squirrel

No Lifer
May 24, 2003
70,328
13,666
126
www.anyf.ca
I have a local server on my lan that uses fetchmail to grab email from my outside accounts and store them in my local accounts. So on my network if I send mail to email_ryan@borg.loc for example, it will land in the same inbox as if someone from the outside sends to ryan@example.com.

I want to make it so that if I send mail locally to ryan@example.com, that it will be aliased to the local one, so the mail will be sent locally instead of externally. Is this possible, and if yes, how is it done?