On Thursday 22 April 2004 10:17, Kevin Bailey wrote:
my question is - if i have set up two accounts
in...@example.com
use...@example.com
how do i redirect email from info to user1's maildir
or if there is a better way this redirection can be achieved,
Dear Kevin,
There's several ways to get mail from one user to another. You've hit on one
- you set info's mailbox to be the same as user1's mailbox so that mail for
either is delivered to the same place.
Another option is to define an alias. In /etc/courier/aliases create a file
that has one line in it
in...@example.com: use...@example.com
Then run "mailaliases". Now you don't even have to have an userdb entry for
info. When mail arrives for that account courier will deliver it to the
other address.
But if I understand your question right you're asking what to do if you have
two separate accounts with separate HOME directories, Maildir's, etc. In
that case you can use a .courier file in the HOME directory of info to
redirect the mail to user1. So create the file ".courier" in the HOME
directory for info that says
use...@example.com
Now mail that is "delivered" to the account "info" will be forwarded to user1.
In this case it will NOT be delivered to that user's INBOX. You could have a
copy sent to user1 and keep a copy by putting
./Maildir
use...@example.com
in the .courier file. Now mail will first be delivered to info's INBOX and
then forwarded to user1.
HTH.