Re: [Exim] Using cyrus-imapd for local deivery

Top Page
Delete this message
Reply to this message
Author: Peter Radcliffe
Date:  
To: exim-users
Subject: Re: [Exim] Using cyrus-imapd for local deivery
baldey <baldrick@???> probably said:
> i have created a user whilst logged into cyradm as cyrus called
> user.brent and set a passwd for the user via saslpasswd


> i get the following reply, it doesnt recognise brent as a local user:


> What am i doing wrong?? Has anyone seen this before?


If you only created 'brent' at the cyrus level then to exim it isn't a
local user. It's checking the password file for local users, it
doesn't know you want it to look at wherever cyrus is checking from.

The best solution for this I found is setting up cyrus to authenticate
from a method that exim supports and then you can point them both at
the same authentication method.

Something like;

LCHAR = [^a-zA-Z0-9+._%#@\\$-]
DSUFFIX = -

# cyrus imap/pop server director
cyrus_director:
driver = aliasfile
search_type = WHATEVER-YOUR-SEARCHTYPE-IS
hide query = WHATEVER-YOUR-QUERY-IS
transport = cyrus_pipe
local_parts = !postmaster : !root : !news : !exim : !cyrus : *
user = cyrus
group = cyrus
suffix = DSUFFIX*
suffix_optional
no_more

# cyrus transport
cyrus_pipe:
  driver = pipe
  return_path_add = true
  path = "CYRUSDIR/bin:/usr/local/bin:/usr/bin"
  command = "deliver -e -a ${sg{${local_part}}{LCHAR}{}} \
             -m ${sg{${substr_1:${local_part_suffix}}}{LCHAR}{}} \
             -- ${sg{${local_part}}{LCHAR}{}}"
  user = cyrus
  group = cyrus
  return_output
  log_output
  prefix =
  suffix =



I also would not replace the local_delivery transport. That gets
painful if you ever want to also do traditional local delivery and
won't work if they are not traditional local users. Add a new
transport/director pair for it.

P.

-- 
pir                pir-sig@???                 pir-sig@???