atom feed12 messages in net.sourceforge.lists.courier-usersRe: [courier-users] redirecting a vir...
FromSent OnAttachments
Chris PetersenApr 21, 2004 8:43 am 
Tim HunterApr 21, 2004 9:09 am 
Chris PetersenApr 21, 2004 9:38 am 
Tim HunterApr 21, 2004 9:51 am 
Chris PetersenApr 21, 2004 10:36 am 
David NewallApr 21, 2004 7:51 pm 
Chris PetersenApr 22, 2004 12:21 am 
Kevin BaileyApr 22, 2004 3:17 am 
Bowie BaileyApr 22, 2004 6:36 am 
Jeff JansenApr 22, 2004 8:07 am 
Kevin BaileyApr 22, 2004 4:05 pm 
Kevin BaileyApr 22, 2004 4:11 pm 
Subject:Re: [courier-users] redirecting a virtual email account
From:Jeff Jansen (ivb_@sil.org)
Date:Apr 22, 2004 8:07:00 am
List:net.sourceforge.lists.courier-users

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.