Re: Postfix cyrus virtual mailbox domains problem

2004-07-22 Thread Martin Haywood
It's that easy if it works!  Hmmm...  thanks for the advice though, 
because it's
taken me one step closer.  I've set mailbox transport as you suggest, 
and put
the cyrus stuff back into /var/spool/imap where it belongs, plus 
cleaned up
the postfix locations in /var/mail.  Lo and behold messages appear in
/var/mail/my_v_domain.tld/username as they should (unix format, 
catenated
in a file).

But...  still messages are not being found by cyrus popd and imapd and
delivered.  :(
On 22/07/2004, at 15:07, Simon Matter wrote:
Forget about the virtual maildir stuff in postfix, cyrus doesn't use
maildir but has it's own message store and works more like database 
than
like a fileserver application - you never access any files directly. 
What
you want is using LMTP as mail delivery protocol which you configure
something like
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
It's that easy, no more messing with directories or uids.

Simon
---
Martin [EMAIL PROTECTED]
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Postfix cyrus virtual mailbox domains problem

2004-07-22 Thread Martin Haywood
By chance I see what may be causing this :)  A ps listing just when the 
pop3d is
running shows it's missing the @my_v_domain.tld part of the user 
name.  So
I wonder how to get it passed through without being dropped off.  I 
think I saw
something about it somewhere.
  Martin

On 22/07/2004, at 22:12, Martin Haywood wrote:
It's that easy if it works!  Hmmm...  thanks for the advice though, 
because it's
taken me one step closer.  I've set mailbox transport as you suggest, 
and put
the cyrus stuff back into /var/spool/imap where it belongs, plus 
cleaned up
the postfix locations in /var/mail.  Lo and behold messages appear in
/var/mail/my_v_domain.tld/username as they should (unix format, 
catenated
in a file).

But...  still messages are not being found by cyrus popd and imapd and
delivered.  :(
---
Martin [EMAIL PROTECTED]
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Postfix cyrus virtual mailbox domains problem

2004-07-21 Thread Martin Haywood
I've been going around and around this problem for so long it's making 
me dizzy ...

I have Postfix set up with
  main.cf:
  virtual_mailbox_domains = /usr/local/etc/postfix/virtual_domains
  virtual_mailbox_base = /var/mail/virtual/domain
  virtual_mailbox_maps = hash:/usr/local/etc/postfix/virtual_mailbox
  virtual_minimum_uid = 100
  virtual_uid_maps = static:5000
  virtual_gid_maps = static:5000
  virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
  virtual_mailbox:
  [EMAIL PROTECTED] my_v_domain.tld/user/vuname/
I have set up imapd to use partition as follows:
  imapd.conf
  partition-vpart: /var/mail/virtual
And created mailbox in cyradm as follows:
  localhost cm [EMAIL PROTECTED] vpart
  localhost sam [EMAIL PROTECTED] [EMAIL PROTECTED] all
So when a mail is sent to [EMAIL PROTECTED] it appears in the
directory /var/mail/virtual/domain/my_v_domain/user/vuname
but cyrus cannot see it as it's in the subdirectory new.
Anyway I have a feeling I'm barking up the wrong tree here.  Just how
should I be letting cyrus find mail delivered by postfix virtual 
delivery
agent (as in this case)? Is there something stupid about my setup, other
than I have a feeling cyrus and postfix aren't meant to share the same
directory for mail storage.

Any help greatly appreciated.
  Martin
---
Martin [EMAIL PROTECTED]
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Problem getting email posted to a virtual mailbox domain

2004-07-20 Thread Martin Haywood
I am using cyrus on freeBSD 5.2 with postfix.
Mail to default domain seems to work ok. Mail to virtual mailbox user 
'[EMAIL PROTECTED]' gets put in '/var/mail/foo.bar/example', but logging 
in with pop or imap doesn't retrieve the mail.  There's no error 
messages during delivery or pop login.

I have postfix with virtual_mailbox_maps showing [EMAIL PROTECTED]  as 
mapping to /var/mail/foo.bar/example so I can see how the mail reaches 
that place, but no combination of imapd.conf settings that I've tried 
seems to let cyrus find it there. Maybe it's a stupid question, but I 
somehow don't understand how to set partition-default so that it works 
without permission errors -- it was set to /var/spool/imap which 
contained user/ and domain/ but I can't see how to mesh these with 
/var/mail/

It may be rather dumb of me but I've spent a lot of hours trying a lot 
of permutations of directories etc. without getting this to work, so 
even if it's obvious I'd appreciate any suggestions.

---
Martin [EMAIL PROTECTED]
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html