Forwarding addresses to another account using vpopmail

11 Mar 2004 11:03 qmail

Forwarding

Some of the email addresses on peculiar are “vanity addresses”. The people concerned don’t have user accounts on the box and the email is forwarded somewhere else.

This is easy to configure using valias:

# /home/vpopmail/bin/valias -i neil@somewhere.else.com aliens@differentpla.test
# /home/vpopmail/bin/valias -i bob@somewhere.else.com aliens@differentpla.test

This sets up the email address aliens@differentpla.test so that email is forwarded to neil and bob on a different server. To check that it’s set up correctly:

# /home/vpopmail/bin/valias aliens@differentpla.test
aliens@differentpla.test -> neil@somewhere.else.com
aliens@differentpla.test -> bob@somewhere.else.com

valias works by putting a .qmail-aliens file in the relevant domain directory.