On Thursday 22 April 2004 10:17, Kevin Bailey wrote:
> my question is - if i have set up two accounts 
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> 
> 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

[EMAIL PROTECTED]:      [EMAIL PROTECTED]

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

[EMAIL PROTECTED]

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
[EMAIL PROTECTED]

in the .courier file.  Now mail will first be delivered to info's INBOX and 
then forwarded to user1.

HTH.

Jeff Jansen


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to