Ok so after wading through documentation that didn;t document so very damn well, and the snide remarks from a few people on this list and suffering through the whole "It was hard to write so it should be hard to use attitude" this works for forwarding.

The following assumes a standard Qmail install on Linux, a standard install of Vpopmail.

Standard install will create: /home/vpopmail/domains

Within the domains directory a sub-driectory for each domain you put onto the system is created it:

New Domain = MyNewDomain.Com

So you will have the following directory structure:


for the obligitory postmaster you will have:


within the above you will have


within Maildir you will have three directories: new, cur & tmp

*=*=*=*=*=*=*=*=*=*=*= THE DEFAULT FORWARD *=*=*=*=*=*=*=*=*=*=*=*

Create a user for the domain MyNewDomain.com, ie: 'info' and you will have:


within Maildir you will have three directories: new, cur & tmp

within the directory: /home/vpopmail/domains/MyNewDomain.com execute the "ls -all" command
and you will see the file '.qmail-default'. This file handles all e-mail comming to this domain that has no valid destination. The contents of this file are:

| /home/vpopmain/bin/vdelivermail '' bounce

To make all e-mail without a valid destination in MyNewDomain.com go to a specific user, replace the word 'bounce' with the fully qualified address of the person you want it to go to. This can be ANYONE! Inside or outside your domain.

So suppose you want all e-mail with no valid destination at MyNewDomain.com to go to your mailbox on hotmail.com change the line to look like this:

| /home/vpopmain/bin/vdelivermail '' [EMAIL PROTECTED]

This is the Catch All!

*=*=*=*=*=*=*=*=*=*=*=*= THE INDIVIDUAL FORWARD *=*=*=*=*=*=*=*=*=*=*=*=*=*=

To forward for a specific user create a file in the DOMAIN directory:


name it .qmail-[user name of the person in this domain for which you would like to do forwarding]

So in the above example, I have a domain called 'MyNewDomain.com' and a user named 'info'. If I want to forward ALL e-mail for the user 'info' to my hotmail address I would use a text editor such as pico since its very simple to use and execute the following command:

pico /home/vpopmail/domains/MyNewDomain.com/.qmail-info

Then add the following to the file:


Save the file and I have just created the forwarding rule for the individual user.

================================= end ============================================

Reply via email to