Hi.

I'm using Cyrus with Postfix, using OpenLDAP to implement the user base. I 
would like to deliver mail to some special addresses to a folder other than 
INBOX for an user.

For example, suppose my user is [EMAIL PROTECTED], and in the IMAP 
structure of myuser I have under INBOX a folder called myfolder, I would 
like to have a way to send mail to something like 
[EMAIL PROTECTED] and have it delivered in the folder myfolder 
of the user myuser, instead of INBOX.

I really don't know if this is a Postfix issue or a Cyrus issue, but I 
think it has something to do with Cyrus' deliver program. Anyway, I'm 
posting this to both mailing lists, Cyrus and Postfix.

I have in Postfix's master.cf the lines

-------------------------------------------------------
     cyrus     unix  -       n       n       -       -       pipe
         flags=R user=cyrus argv=/usr/local/cyrus/bin/deliver -e -m \
                                 ${extension} ${user}
-------------------------------------------------------

And in main.cf I have

-------------------------------------------------------
     ## for OpenLDAP
     alias_maps = ..., ldap:ldapsource, ...
     ldapsource_server_host = localhost
     ldapsource_search_base = o=Organisation, c=US
     ldapsource_query_filter = (&(mail=%s) (objectclass=person))
     ldapsource_result_attribute = uid

     ## for using user+extension
     recipient_delimiter = +

     ## for using Cyrus as local transport
     mailbox_transport = cyrus
     #fallback_transport = cyrus
-------------------------------------------------------

I tried this last line (fallback_transport) because I thought the LDAP 
configuration could not deal with user+extension addresses, this way the 
fallback_transport would deliver to Cyrus even if the address weren't found 
in LDAP, but it didn't work at all. So, I think it's a problem with my 
Cyrus' deliver configuration.

 From my /var/log/maillog:

-------------------------------------------------------
May  8 11:04:01 mailhost postfix/pipe[624]: 500C077:
to=<[EMAIL PROTECTED]>, relay=cyrus, delay=0,
status=bounced (user unknown. Command output: otheruser+test: Mailbox
does not exist _ )
May  8 11:10:19 mailhost postfix/pipe[685]: 8121677:
to=<[EMAIL PROTECTED]>, relay=cyrus, delay=0,
status=bounced (user unknown. Command output: user+test: Mailbox does
not exist _ )
May  8 11:12:12 mailhost postfix/pipe[707]: 5184463:
to=<[EMAIL PROTECTED]>, relay=cyrus, delay=0,
status=bounced (user unknown. Command output: user+test: Mailbox does
not exist _ )
May  8 11:15:59 mailhost postfix/pipe[755]: E11A363:
to=<[EMAIL PROTECTED]>, relay=cyrus, delay=1,
status=bounced (user unknown. Command output: otheruser+test: Mailbox
does not exist _ )
May  8 11:22:44 mailhost postfix/pipe[778]: AE71663:
to=<[EMAIL PROTECTED]>, relay=cyrus, delay=1,
status=bounced (user unknown. Command output: user+test: Mailbox does
not exist _ )
May  8 13:39:01 mailhost postfix/pipe[919]: B0F1E77:
to=<[EMAIL PROTECTED]>, relay=cyrus, delay=1,
status=bounced (user unknown. Command output: otheruser+test: Mailbox
does not exist _ )
-------------------------------------------------------

Both user and otheruser are valid users, and both have a `test' folder 
under INBOX.

I have nothing in /var/log/messages about the failed deliveries, but I have 
lines with
-------------------------------------------------------
May  8 11:02:45 mailhost imapd[617]: login:
long119machine.mydomain.com[387.239.1.412] otheruser plaintext
-------------------------------------------------------
in /var/log/messages for successful logins. `plaintext' is really there, 
not the real password.

Well, anyone ever done such thing, and could give me some light on it?

TIA,

- Branden

Reply via email to