Re: [Exim] Exim and Cyrus shared folders

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tom
Dátum:  
Címzett: Jody Hay
CC: exim-users
Tárgy: Re: [Exim] Exim and Cyrus shared folders
On Tue, 23 Sep 2003, Jody Hay wrote:

>     I am running debian testing with Exim (3.36) and Cyrus Imap (1.5.19).

>
>     I'm having difficulty configuring exim to deliver mail to a shared
> folder.

>
>     I created a shared folder with cyradm, like this:

>
> linux:/var/spool/cyrus/mail# cyradm -u mailadmin 127.0.0.1
> 127.0.0.1 password:
> 127.0.0.1> cm shared
> 127.0.0.1> sam shared anyone lrswipcda
> 127.0.0.1> lam shared
> anyone lrswipcda
>
>     I can use cyrdeliver to send email to the folder:
> linux:/var/spool/cyrus/mail# cat sample_mail |cyrdeliver -m shared

>
>     However, this will not work:
> linux:/var/spool/cyrus/mail# mail shared -s "Sample" < sample_mail

>
>     Neither does this
> linux:/var/spool/cyrus/mail# mail bb+shared -s "Sample" < sample_mail

>
>     They both result in error messages in the /var/log/exim/mainlog:
>  ** shared: unknown local-part "shared" in domain "linux"

>


The mail is probably being rejected by Exim, since "shared" is not a
local user, so the local-part is unknown. You'll probably need a special
router that matches local-parts of shared folders.

"bb+shared" has the same problem. Unless you have a router that matches
that, Exim will reject it as an unknown local-part too.

>     Here is the transport section of exim.conf
> local_delivery:
>   driver = pipe
>   command = "/usr/sbin/cyrdeliver ${local_part}"
>   return_path_add
>   return_output
>   prefix = ""
>   user = cyrus

>
>     Am I missing something else in the exim.conf?


You are using "cyrdeliver -m" to deliver to shared mailboxes, but your
transport does not do that. You probably want to create a new tranport
for delivery to shared mailboxes. And then use one or more new routers to
match mail to your shared folders, and send the messages to your new
router.

Tom