Re: Postfix, Cyrus, and virtual domains : verify_user failed: Mailbox does not exist - Help !

2008-04-12 Thread Simon Matter
>>
>> Do you have a good reason to use the deprecated 'cyrus' transport?
>> Otherwise you may try 'mailbox_transport =
>> lmtp:unix:/var/lib/imap/socket/lmtp' instead.
>>
>> Simon
>>
>
> You're right, just didn't see it...and working perfectly with that :-)
> In fact for my case, I used : virtual_transport =
> lmtp:unix:/var/lib/imap/socket/lmtp
>
> With lmtp transport, do I still need cyrus_destination_recipient_limit = 1
> ?
>
> Thanx a lot...do you have ideas for my two other questions ?
>
>>> My Cyrus-imapd configuration is :
>>>   [EMAIL PROTECTED] ~]# more /etc/cyrus.conf
>>>   # standard standalone server implementation
>>>
>>>   START {
>>> # do not delete this entry!
>>> recover   cmd="ctl_cyrusdb -r"
>>>
>>> # this is only necessary if using idled for IMAP IDLE
>>> idled cmd="idled"
>>>   }
>>>
>>>   # UNIX sockets start with a slash and are put into
>>> /var/lib/imap/sockets
>>>   SERVICES {
>>> # add or remove based on preferences
>>> imap  cmd="imapd" listen="localhost:imap" prefork=0
>>> imaps cmd="imapd -s" listen="imaps" prefork=5
>>>   #  pop3 cmd="pop3d" listen="pop3" prefork=3
>>>   #  pop3scmd="pop3d -s" listen="pop3s" prefork=1
>>> sieve cmd="timsieved" listen="sieve" prefork=0
>>>
>>> # these are only necessary if receiving/exporting usenet via NNTP
>>>   #  nntp cmd="nntpd" listen="nntp" prefork=3
>>>   #  nntpscmd="nntpd -s" listen="nntps" prefork=1
>>>
>>> # at least one LMTP is required for delivery
>>>   #  lmtp cmd="lmtpd" listen="localhost:lmtp" prefork=0
>>> lmtpunix  cmd="lmtpd" listen="/var/lib/imap/socket/lmtp"
>>> prefork=1
>>>
>>> # this is only necessary if using notifications
>>>   #  notify   cmd="notifyd" listen="/var/lib/imap/socket/notify"
>>> proto="udp" prefork=1
>>>   }
>>>
>>>   EVENTS {
>>> # this is required
>>> checkpointcmd="ctl_cyrusdb -c" period=30
>>>
>>> # this is only necessary if using duplicate delivery suppression,
>>> # Sieve or NNTP
>>> delprune  cmd="cyr_expire -E 3" at=0400
>>>
>>> # this is only necessary if caching TLS sessions
>>> tlsprune  cmd="tls_prune" at=0400
>>>   }
>
> (I only want imaps for remote access, imap is only here for cyradmBTW,
> if someone can tell me how to use cyradm with imaps, so that I can comment
> out imap, it would be great !)

Something like this works for me:
cyradm --tls --user cyrus --auth login localhost

>
>>>
>>>
>>>   [EMAIL PROTECTED] ~]# more /etc/postfix/vmailbox
>>>   [EMAIL PROTECTED]virtual
>>>   [EMAIL PROTECTED]virtual
>
> (Here, according to doc, "virtual" can be anything else, just a random
> word to have right-hand valueright ?)

I have never used that kind of setup but I have used a relay_recipients
map where the right-hand value simply was 'OK'. As the docs state, the
right-hand part is simply ignored.

Simon

>



Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Postfix, Cyrus, and virtual domains : verify_user failed: Mailbox does not exist - Help !

2008-04-12 Thread Sébastien Rozier
> 
> Do you have a good reason to use the deprecated 'cyrus' transport?
> Otherwise you may try 'mailbox_transport =
> lmtp:unix:/var/lib/imap/socket/lmtp' instead.
> 
> Simon
> 

You're right, just didn't see it...and working perfectly with that :-)
In fact for my case, I used : virtual_transport = 
lmtp:unix:/var/lib/imap/socket/lmtp

With lmtp transport, do I still need cyrus_destination_recipient_limit = 1 ?

Thanx a lot...do you have ideas for my two other questions ?

>> My Cyrus-imapd configuration is :
>>   [EMAIL PROTECTED] ~]# more /etc/cyrus.conf
>>   # standard standalone server implementation
>>
>>   START {
>> # do not delete this entry!
>> recover   cmd="ctl_cyrusdb -r"
>>
>> # this is only necessary if using idled for IMAP IDLE
>> idled cmd="idled"
>>   }
>>
>>   # UNIX sockets start with a slash and are put into /var/lib/imap/sockets
>>   SERVICES {
>> # add or remove based on preferences
>> imap  cmd="imapd" listen="localhost:imap" prefork=0
>> imaps cmd="imapd -s" listen="imaps" prefork=5
>>   #  pop3 cmd="pop3d" listen="pop3" prefork=3
>>   #  pop3scmd="pop3d -s" listen="pop3s" prefork=1
>> sieve cmd="timsieved" listen="sieve" prefork=0
>>
>> # these are only necessary if receiving/exporting usenet via NNTP
>>   #  nntp cmd="nntpd" listen="nntp" prefork=3
>>   #  nntpscmd="nntpd -s" listen="nntps" prefork=1
>>
>> # at least one LMTP is required for delivery
>>   #  lmtp cmd="lmtpd" listen="localhost:lmtp" prefork=0
>> lmtpunix  cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1
>>
>> # this is only necessary if using notifications
>>   #  notify   cmd="notifyd" listen="/var/lib/imap/socket/notify"
>> proto="udp" prefork=1
>>   }
>>
>>   EVENTS {
>> # this is required
>> checkpointcmd="ctl_cyrusdb -c" period=30
>>
>> # this is only necessary if using duplicate delivery suppression,
>> # Sieve or NNTP
>> delprune  cmd="cyr_expire -E 3" at=0400
>>
>> # this is only necessary if caching TLS sessions
>> tlsprune  cmd="tls_prune" at=0400
>>   }

(I only want imaps for remote access, imap is only here for cyradmBTW,
if someone can tell me how to use cyradm with imaps, so that I can comment
out imap, it would be great !)

>>
>>
>>   [EMAIL PROTECTED] ~]# more /etc/postfix/vmailbox
>>   [EMAIL PROTECTED]virtual
>>   [EMAIL PROTECTED]virtual

(Here, according to doc, "virtual" can be anything else, just a random
word to have right-hand valueright ?)

Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Re: Postfix, Cyrus, and virtual domains : verify_user failed: Mailbox does not exist - Help !

2008-04-12 Thread Simon Matter
> Hello,
>
> I'm trying to setup a Postfix+Cyrus installation (no SQL nor LDAP, only
> hash files).
> I only want to handle virtual domains, no local accounts
> My cyrus imap version is 2.3.7 since this is the packaged version for
> centos/redhat.
> My postfix version is 2.3.3 for the same reason.
> I'm still having the same problem, after hours and hours of researchs,
> surfing, and doc reading :
> lmtpunix[11333]: verify_user(user.test) failed: Mailbox does not exist
> And then mail bounces...
>
> I'm not sure if this is a postfix or cyrus problem, it seems like postfix,
> through cyrus deliver, doesn't pass @myothervirtualdomain1.com
> (This is explained here but I don't know how to make it work :
> http://cyrusimap.web.cmu.edu/twiki/bin/view/Cyrus/CyrusDeliverWithAt )

Do you have a good reason to use the deprecated 'cyrus' transport?
Otherwise you may try 'mailbox_transport =
lmtp:unix:/var/lib/imap/socket/lmtp' instead.

Simon

>
> Apr 12 15:31:07 atlantis postfix/smtpd[12091]: connect from
> smtp5-g19.free.fr[212.27.42.35]
> Apr 12 15:31:07 atlantis postfix/smtpd[12091]: 8A2F4587D4:
> client=smtp5-g19.free.fr[212.27.42.35]
> Apr 12 15:31:07 atlantis postfix/cleanup[12098]: 8A2F4587D4:
> message-id=<[EMAIL PROTECTED]>
> Apr 12 15:31:07 atlantis postfix/qmgr[9964]: 8A2F4587D4:
> from=<[EMAIL PROTECTED]>, size=1772, nrcpt=1 (queue active)
> Apr 12 15:31:07 atlantis postfix/smtpd[12091]: disconnect from
> smtp5-g19.free.fr[212.27.42.35]
> Apr 12 15:31:07 atlantis lmtpunix[11333]: accepted connection
> Apr 12 15:31:07 atlantis lmtpunix[11333]: lmtp connection preauth'd as
> postman
> Apr 12 15:31:07 atlantis lmtpunix[11333]: verify_user(user.test) failed:
> Mailbox does not exist
> Apr 12 15:31:07 atlantis postfix/pipe[12099]: 8A2F4587D4:
> to=<[EMAIL PROTECTED]>, relay=cyrus, delay=0.03,
> delays=0.02/0/0/0.01, dsn=5.6.0, status=bounced (data format error.
> Command output: test: Mailbox does not exist )
> Apr 12 15:31:07 atlantis postfix/cleanup[12098]: 916EB587FA:
> message-id=<[EMAIL PROTECTED]>
> Apr 12 15:31:07 atlantis postfix/bounce[12102]: 8A2F4587D4: sender
> non-delivery notification: 916EB587FA
> Apr 12 15:31:07 atlantis postfix/qmgr[9964]: 916EB587FA: from=<>,
> size=3604, nrcpt=1 (queue active)
> Apr 12 15:31:07 atlantis postfix/qmgr[9964]: 8A2F4587D4: removed
> Apr 12 15:31:08 atlantis postfix/smtp[12103]: 916EB587FA:
> to=<[EMAIL PROTECTED]>,
> relay=mail.cybergaia.org[82.247.77.102]:25, delay=0.77,
> delays=0/0/0.59/0.17, dsn=2.0.0, status=sent (250 ok 1208010902 qp 20643)
> Apr 12 15:31:08 atlantis postfix/qmgr[9964]: 916EB587FA: removed
>
> I created my mailbox with :
>   [EMAIL PROTECTED] ~]# su - cyrus
>   -bash-3.1$ cyradm -u [EMAIL PROTECTED] localhost
>   IMAP Password:
> localhost.localdomain> lm
>   localhost.localdomain> cm [EMAIL PROTECTED]
>   localhost.localdomain> lm
>   user.test (\HasNoChildren)
>   localhost.localdomain> exit
>   -bash-3.1$ ls -laR /var/spool/imap/
>   /var/spool/imap/:
>   total 12
>   drwx--  3 cyrus mail 4096 Apr 12 15:18 .
>   drwxr-xr-x 13 root  root 4096 Apr 10 23:28 ..
>   drwx--  3 cyrus mail 4096 Apr 12 15:18 domain
>
>   /var/spool/imap/domain:
>   total 12
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 .
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 ..
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 m
>
>   /var/spool/imap/domain/m:
>   total 12
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 .
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 ..
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 myothervirtualdomain1.com
>
>   /var/spool/imap/domain/m/myothervirtualdomain1.com :
>   total 12
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 .
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 ..
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 t
>
>   /var/spool/imap/domain/m/myothervirtualdomain1.com/t:
>   total 12
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 .
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 ..
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 user
>
>   /var/spool/imap/domain/m/myothervirtualdomain1.com/t/user:
>   total 12
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 .
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 ..
>   drwx-- 2 cyrus mail 4096 Apr 12 15:18 test
>
>   /var/spool/imap/domain/m/myothervirtualdomain1.com/t/user/test:
>   total 20
>   drwx-- 2 cyrus mail 4096 Apr 12 15:18 .
>   drwx-- 3 cyrus mail 4096 Apr 12 15:18 ..
>   -rw--- 1 cyrus mail4 Apr 12 15:18 cyrus.cache
>   -rw--- 1 cyrus mail  164 Apr 12 15:18 cyrus.header
>   -rw--- 1 cyrus mail   96 Apr 12 15:18 cyrus.index
>   -bash-3.1$
> My Cyrus-imapd configuration is :
>   [EMAIL PROTECTED] ~]# more /etc/cyrus.conf
>   # standard standalone server implementation
>
>   START {
> # do not delete this entry!
> recover   cmd="ctl_cyrusdb -r"
>
> # this is only necessary if using idled for IMAP IDLE
> idled cmd="idled"
>   }
>
>   # UNIX sockets start with a slash and are put into /var/lib/imap/sockets
>   SE

Postfix, Cyrus, and virtual domains : verify_user failed: Mailbox does not exist - Help !

2008-04-12 Thread Sébastien Rozier
Hello,

I'm trying to setup a Postfix+Cyrus installation (no SQL nor LDAP, only hash 
files).
I only want to handle virtual domains, no local accounts
My cyrus imap version is 2.3.7 since this is the packaged version for 
centos/redhat.
My postfix version is 2.3.3 for the same reason.
I'm still having the same problem, after hours and hours of researchs, surfing, 
and doc reading :
lmtpunix[11333]: verify_user(user.test) failed: Mailbox does not exist
And then mail bounces...

I'm not sure if this is a postfix or cyrus problem, it seems like postfix, 
through cyrus deliver, doesn't pass @myothervirtualdomain1.com
(This is explained here but I don't know how to make it work : 
http://cyrusimap.web.cmu.edu/twiki/bin/view/Cyrus/CyrusDeliverWithAt )

Apr 12 15:31:07 atlantis postfix/smtpd[12091]: connect from 
smtp5-g19.free.fr[212.27.42.35]
Apr 12 15:31:07 atlantis postfix/smtpd[12091]: 8A2F4587D4: 
client=smtp5-g19.free.fr[212.27.42.35]
Apr 12 15:31:07 atlantis postfix/cleanup[12098]: 8A2F4587D4: message-id=<[EMAIL 
PROTECTED]>
Apr 12 15:31:07 atlantis postfix/qmgr[9964]: 8A2F4587D4: from=<[EMAIL 
PROTECTED]>, size=1772, nrcpt=1 (queue active)
Apr 12 15:31:07 atlantis postfix/smtpd[12091]: disconnect from 
smtp5-g19.free.fr[212.27.42.35]
Apr 12 15:31:07 atlantis lmtpunix[11333]: accepted connection
Apr 12 15:31:07 atlantis lmtpunix[11333]: lmtp connection preauth'd as postman
Apr 12 15:31:07 atlantis lmtpunix[11333]: verify_user(user.test) failed: 
Mailbox does not exist
Apr 12 15:31:07 atlantis postfix/pipe[12099]: 8A2F4587D4: to=<[EMAIL 
PROTECTED]>, relay=cyrus, delay=0.03, delays=0.02/0/0/0.01, dsn=5.6.0, 
status=bounced (data format error. Command output: test: Mailbox does not exist 
)
Apr 12 15:31:07 atlantis postfix/cleanup[12098]: 916EB587FA: message-id=<[EMAIL 
PROTECTED]>
Apr 12 15:31:07 atlantis postfix/bounce[12102]: 8A2F4587D4: sender non-delivery 
notification: 916EB587FA
Apr 12 15:31:07 atlantis postfix/qmgr[9964]: 916EB587FA: from=<>, size=3604, 
nrcpt=1 (queue active)
Apr 12 15:31:07 atlantis postfix/qmgr[9964]: 8A2F4587D4: removed
Apr 12 15:31:08 atlantis postfix/smtp[12103]: 916EB587FA: to=<[EMAIL 
PROTECTED]>, relay=mail.cybergaia.org[82.247.77.102]:25, delay=0.77, 
delays=0/0/0.59/0.17, dsn=2.0.0, status=sent (250 ok 1208010902 qp 20643)
Apr 12 15:31:08 atlantis postfix/qmgr[9964]: 916EB587FA: removed

I created my mailbox with :
  [EMAIL PROTECTED] ~]# su - cyrus
  -bash-3.1$ cyradm -u [EMAIL PROTECTED] localhost
  IMAP Password:
localhost.localdomain> lm
  localhost.localdomain> cm [EMAIL PROTECTED]
  localhost.localdomain> lm
  user.test (\HasNoChildren)
  localhost.localdomain> exit
  -bash-3.1$ ls -laR /var/spool/imap/
  /var/spool/imap/:
  total 12
  drwx--  3 cyrus mail 4096 Apr 12 15:18 .
  drwxr-xr-x 13 root  root 4096 Apr 10 23:28 ..
  drwx--  3 cyrus mail 4096 Apr 12 15:18 domain

  /var/spool/imap/domain:
  total 12
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 .
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 ..
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 m

  /var/spool/imap/domain/m:
  total 12
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 .
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 ..
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 myothervirtualdomain1.com 

  /var/spool/imap/domain/m/myothervirtualdomain1.com :
  total 12
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 .
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 ..
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 t

  /var/spool/imap/domain/m/myothervirtualdomain1.com/t:
  total 12
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 .
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 ..
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 user

  /var/spool/imap/domain/m/myothervirtualdomain1.com/t/user:
  total 12
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 .
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 ..
  drwx-- 2 cyrus mail 4096 Apr 12 15:18 test

  /var/spool/imap/domain/m/myothervirtualdomain1.com/t/user/test:
  total 20
  drwx-- 2 cyrus mail 4096 Apr 12 15:18 .
  drwx-- 3 cyrus mail 4096 Apr 12 15:18 ..
  -rw--- 1 cyrus mail4 Apr 12 15:18 cyrus.cache
  -rw--- 1 cyrus mail  164 Apr 12 15:18 cyrus.header
  -rw--- 1 cyrus mail   96 Apr 12 15:18 cyrus.index
  -bash-3.1$
My Cyrus-imapd configuration is :
  [EMAIL PROTECTED] ~]# more /etc/cyrus.conf
  # standard standalone server implementation

  START {
# do not delete this entry!
recover   cmd="ctl_cyrusdb -r"

# this is only necessary if using idled for IMAP IDLE
idled cmd="idled"
  }

  # UNIX sockets start with a slash and are put into /var/lib/imap/sockets
  SERVICES {
# add or remove based on preferences
imap  cmd="imapd" listen="localhost:imap" prefork=0
imaps cmd="imapd -s" listen="imaps" prefork=5
  #  pop3 cmd="pop3d" listen="pop3" prefork=3
  #  pop3scmd="pop3d -s" listen="pop3s" prefork=1
sieve cmd="timsieved" listen="sieve" prefork=0

# these are 

Re: Cyrus and Virtual Domains

2003-01-10 Thread Ken Murchison


Felix Cuello wrote:
> 
> Hello!
> 
>   I have two servers in two different works :-). One of this server are
>   running Cyrus 2.1.9 with SASL 2.1.9 with an LDAP. [this server works
>   fine!] [under RedHat 7.3]
> 
>   The second server [the problem :-)] are running a Debian  Linux
>   welll... Debian have Cyrus 1.5.19... using apt-get but in this server
>   I must install virtual domains.
>   Does Cyrus support virtual domains?, what can I read to start with
>   Virtual Domains?

It'll be in Cyrus 2.2 which is in CVS.  You can read some of the docs
here:
http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/~checkout~/src/cyrus/doc/Attic/install-virtdomains.html?rev=1.1.2.5&content-type=text/html&hideattic=0

-- 
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp



Cyrus and Virtual Domains

2003-01-09 Thread Felix Cuello
Hello!

  I have two servers in two different works :-). One of this server are
  running Cyrus 2.1.9 with SASL 2.1.9 with an LDAP. [this server works
  fine!] [under RedHat 7.3]
  
  The second server [the problem :-)] are running a Debian  Linux
  welll... Debian have Cyrus 1.5.19... using apt-get but in this server
  I must install virtual domains.
  Does Cyrus support virtual domains?, what can I read to start with
  Virtual Domains?

  regards...

  Felix
-- 
Felix Cuello
[EMAIL PROTECTED]
Buenos Aires, ARGENTINA

Qodiga/its
http://www.qodiga.com