Hi

Sorry Sam. 

I shouldn't have posted the last message. I got a bit confused with the
$HOME/.courier-default and /aliasdir/.courier-default files but I
managed to figure it out. 

Here's what I did.

(1) I created a user imap with a maildir

(1) I created a file /usr/lib/courier/etc/aliasdir/.courier-default with
the following line

|| echo "imap-$[EMAIL PROTECTED]

(2) I create a file /home/imap/.courier-default with the following two
lines

|| x=`echo "$DEFAULT"`; test ! -d "$HOME/Maildir/.$x" || echo
"$HOME/Maildir/.$x"
|| x=`echo "$DEFAULT"`; test ! -d "$HOME/Maildir/.$x" || echo
"[EMAIL PROTECTED]"




When courier is unable to resolve an email address, it attempts to see
if there is an imap folder with the same name. If the imap folder is
found, then the mail is delivery to it. If the folder is not found, then
the email is returned to the postmaster.

This probably isn't the most efficient method of handling the imap
folder but it allows me have emails list [EMAIL PROTECTED] without
creating a user account called anyone. This more or less duplicates the
functionality of public folders in MS Exchange.

Does anyone see any problems with what I have done. 




Thanks for your help.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Sam
Varshavchik
Sent: Thursday, January 03, 2002 2:39 PM
To: [EMAIL PROTECTED]
Subject: [courier-users] Re: IMAP Folders


[EMAIL PROTECTED] writes: 

> Hi
> 
> The sample you provided works for a "courier-{user}-default" file but 
> not a "courier-default" file.

You are incorrect on both cases.  I provide a sample .courier-default
file. 

> courier-{user}-default is run under the {user} account

No it's not.  .courier-{foo} is run under the user's account. 

> courier-default is run under the courier daemon account (i.e. courier)

Not true either. 

> 
> Since any mail delivery to a Maildir by the courier-default file will 
> only be readable by the courier daemon account, what use is a 
> courier-default file?

See the dot-courier(5) man page. 

>  
> 
>  
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Sam 
> Varshavchik
> Sent: Wednesday, January 02, 2002 3:32 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Re: IMAP Folders
> 
> 
> [EMAIL PROTECTED] writes:
> 
>> Hi
>> 
>> When an new IMAP folder is created from an IMAP client connecting to
>> MS Exchange, the folder is assigned an email address (just like a 
>> public folder). 
>> 
>> Does courier have this functionality?
>> 
>> If it not, does the source code need to be modified or can I add a
>> script somewhere that courier will execute when a new folder is 
>> created?
> 
> You can implement this using an intelligent .courier-default file (all

> on one line):
> 
> || x=`echo "$DEFAULT" | tr '/' '.'`; test -d "$HOME/Maildir/.$x" || 
> || exit
> 
> || 0;
> echo "$HOME/Maildir/.$x/." ; exit 99
> 
> Haven't really tested this, but it should work.  Haven't also looked 
> at this closely, but it should be safe from envelope-based attacks.  A

> shell script
> is also not a terribly efficient way to go about this, but you can
> always 
> write some tiny executable binary that does the same thing.  
> 
> To send mail to <[EMAIL PROTECTED]>'s folder INBOX.foo.bar, the address

> would be <[EMAIL PROTECTED]>, or <[EMAIL PROTECTED]>
> 
>  
 

-- 
Sam 


_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to