Discussion:
Cyrus - can't create user mailbox
Stephen Liu
2008-06-08 13:15:58 UTC
Permalink
Hi folks,


Ubuntu 6.06 drake amd64


I'm following;

Cyrus
https://help.ubuntu.com/community/Cyrus

building IMAP/POP servers.


Packages installed;

postfix

cyrus-admin-2.2
cyrus-clients-2.2
cyrus-imapd-2.2
sasl2-bin
cyrus-pop3d-2.2

libc-client-dev
gamin
* end *


Everything is going on smoothly w/o problem.


Coming to creating Mailbox I can't proceed further;


$ cyradm -u cyrus localhost
Password:
localhost> cm user.satimiscyrus
createmailbox: Permission denied
* end *


$ tail /var/log/mail.log
Jun 8 18:09:16 lampserver cyrus/imap[4478]: executed
Jun 8 18:09:16 lampserver cyrus/imap[4478]: accepted connection
Jun 8 18:09:16 lampserver cyrus/imap[4478]: badlogin: localhost
[127.0.0.1] plaintext satimis SASL(-1): generic failure: checkpass
failed
Jun 8 18:10:19 lampserver cyrus/master[3881]: process 4478 exited,
status 0
Jun 8 18:11:04 lampserver cyrus/master[4480]: about to exec
/usr/lib/cyrus/bin/imapd
Jun 8 18:11:04 lampserver cyrus/imap[4480]: executed
Jun 8 18:11:04 lampserver cyrus/imap[4480]: accepted connection
Jun 8 18:11:13 lampserver cyrus/imap[4480]: badlogin: localhost
[127.0.0.1] DIGEST-MD5 [SASL(-13): authentication failure: client
response doesn't match what we generated]
Jun 8 18:11:16 lampserver cyrus/imap[4480]: login: localhost
[127.0.0.1] anonymous ANONYMOUS User logged in
Jun 8 18:12:54 lampserver cyrus/master[3881]: process 4480 exited,
status 0
* end *


$ su - cyrus -c cyradm localhost
Password:
localhost> cm user.satimiscyrus
createmailbox: Permission denied
* end *


$ tail /var/log/mail.log
Jun 8 18:27:14 lampserver cyrus/ctl_cyrusdb[4497]: archiving log file:
/var/lib/cyrus/db/log.0000000001
Jun 8 18:27:14 lampserver cyrus/ctl_cyrusdb[4497]: archiving database
file: /var/lib/cyrus/mailboxes.db
Jun 8 18:27:14 lampserver cyrus/ctl_cyrusdb[4497]: archiving log file:
/var/lib/cyrus/db/log.0000000001
Jun 8 18:27:14 lampserver cyrus/ctl_cyrusdb[4497]: done checkpointing
cyrus databases
Jun 8 18:27:14 lampserver cyrus/master[3881]: process 4497 exited,
status 0
Jun 8 18:42:51 lampserver cyrus/master[4511]: about to exec
/usr/lib/cyrus/bin/imapd
Jun 8 18:42:51 lampserver cyrus/imap[4511]: executed
Jun 8 18:42:51 lampserver cyrus/imap[4511]: accepted connection
Jun 8 18:43:00 lampserver cyrus/imap[4511]: badlogin: localhost
[127.0.0.1] DIGEST-MD5 [SASL(-13): authentication failure: client
response doesn't match what we generated]
Jun 8 18:43:03 lampserver cyrus/imap[4511]: login: localhost
[127.0.0.1] anonymous ANONYMOUS User logged in
[/code]


I can't resolve
badlogin: localhost [127.0.0.1] DIGEST-MD5 [SASL(-13): authentication
failure: client response doesn't match what we generated



I have been trying a day w/o breakthrough


$ sudo grep "^partition-" /etc/imapd.conf
partition-default: /var/spool/cyrus/mail
partition-news: /var/spool/cyrus/news



$ sudo ls -ld /var/spool/cyrus/mail
drwxr-x--- 29 cyrus mail 4096 2008-05-24 21:46 /var/spool/cyrus/mail



$ sudo ls -ld /var/spool/cyrus/news
drwxr-x--- 29 cyrus mail 4096 2008-05-24 21:46 /var/spool/cyrus/news



Please help. TIA


B.R.
Stephen L

Send instant messages to your online friends http://uk.messenger.yahoo.com
Dick Hoogendijk
2008-06-08 15:36:06 UTC
Permalink
On Sun, 8 Jun 2008 21:15:58 +0800 (CST)
Post by Stephen Liu
$ cyradm -u cyrus localhost
localhost> cm user.satimiscyrus
createmailbox: Permission denied
* end *
Does the user cyrus exist w/ it's password in sasldb2?
Did you check all the permissions?
--
Dick Hoogendijk -- PGP/GnuPG key: 01D2433D
++ http://nagual.nl/ + SunOS sxde 01/08 ++
Stephen Liu
2008-06-08 16:26:41 UTC
Permalink
Hi folks,


Further to my 1st posting listed at the bottom, I found out the trick.
I must use the password created on running;

# saslpasswd2 -c cyrus


NOT on running;
# passwd cyrus


What will be the use of the 2nd password? Thanks.


Now on running;


$ cyradm -u cyrus localhost
Password:
localhost> cm user.satimiscyrus
localhost> quit

it works. But I can't find this new user NOR its mailbox.


$ locate satimiscyrus
No printout


$ sudo ls -la /var/spool/cyrus/
Password:
total 20
drwxr-xr-x 4 cyrus mail 4096 2008-06-07 16:44 .
drwxr-xr-x 9 root root 4096 2008-05-24 21:46 ..
-rw------- 1 cyrus mail 126 2008-06-07 17:32 .bash_history
drwxr-x--- 29 cyrus mail 4096 2008-05-24 21:46 mail
drwxr-x--- 29 cyrus mail 4096 2008-05-24 21:46 news
* end *


$ sudo ls -la /var/spool/cyrus/mail
total 116
drwxr-x--- 29 cyrus mail 4096 2008-05-24 21:46 .
drwxr-xr-x 4 cyrus mail 4096 2008-06-07 16:44 ..
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 a
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 b
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 c
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 d
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 e
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 f
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 g
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 h
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 i
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 j
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 k
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 l
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 m
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 n
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 o
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 p
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 q
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 r
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 s
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 stage.
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 t
drwxr-xr-x 3 cyrus mail 4096 2008-06-08 22:52 u
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 v
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 w
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 x
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 y
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 z
* end *


sudo cat /etc/sasldb2 | grep cyrus
Binary file (standard input) matches


Please help. TIA


B.R.
Stephen L
Post by Stephen Liu
Hi folks,
Ubuntu 6.06 drake amd64
I'm following;
Cyrus
https://help.ubuntu.com/community/Cyrus
building IMAP/POP servers.
Packages installed;
postfix
cyrus-admin-2.2
cyrus-clients-2.2
cyrus-imapd-2.2
sasl2-bin
cyrus-pop3d-2.2
libc-client-dev
gamin
* end *
Everything is going on smoothly w/o problem.
Coming to creating Mailbox I can't proceed further;
$ cyradm -u cyrus localhost
localhost> cm user.satimiscyrus
createmailbox: Permission denied
* end *
$ tail /var/log/mail.log
Jun 8 18:09:16 lampserver cyrus/imap[4478]: executed
Jun 8 18:09:16 lampserver cyrus/imap[4478]: accepted connection
Jun 8 18:09:16 lampserver cyrus/imap[4478]: badlogin: localhost
[127.0.0.1] plaintext satimis SASL(-1): generic failure: checkpass
failed
Jun 8 18:10:19 lampserver cyrus/master[3881]: process 4478 exited,
status 0
Jun 8 18:11:04 lampserver cyrus/master[4480]: about to exec
/usr/lib/cyrus/bin/imapd
Jun 8 18:11:04 lampserver cyrus/imap[4480]: executed
Jun 8 18:11:04 lampserver cyrus/imap[4480]: accepted connection
Jun 8 18:11:13 lampserver cyrus/imap[4480]: badlogin: localhost
[127.0.0.1] DIGEST-MD5 [SASL(-13): authentication failure: client
response doesn't match what we generated]
Jun 8 18:11:16 lampserver cyrus/imap[4480]: login: localhost
[127.0.0.1] anonymous ANONYMOUS User logged in
Jun 8 18:12:54 lampserver cyrus/master[3881]: process 4480 exited,
status 0
* end *
$ su - cyrus -c cyradm localhost
localhost> cm user.satimiscyrus
createmailbox: Permission denied
* end *
$ tail /var/log/mail.log
Jun 8 18:27:14 lampserver cyrus/ctl_cyrusdb[4497]: archiving log
/var/lib/cyrus/db/log.0000000001
Jun 8 18:27:14 lampserver cyrus/ctl_cyrusdb[4497]: archiving
database
file: /var/lib/cyrus/mailboxes.db
Jun 8 18:27:14 lampserver cyrus/ctl_cyrusdb[4497]: archiving log
/var/lib/cyrus/db/log.0000000001
Jun 8 18:27:14 lampserver cyrus/ctl_cyrusdb[4497]: done
checkpointing
cyrus databases
Jun 8 18:27:14 lampserver cyrus/master[3881]: process 4497 exited,
status 0
Jun 8 18:42:51 lampserver cyrus/master[4511]: about to exec
/usr/lib/cyrus/bin/imapd
Jun 8 18:42:51 lampserver cyrus/imap[4511]: executed
Jun 8 18:42:51 lampserver cyrus/imap[4511]: accepted connection
Jun 8 18:43:00 lampserver cyrus/imap[4511]: badlogin: localhost
[127.0.0.1] DIGEST-MD5 [SASL(-13): authentication failure: client
response doesn't match what we generated]
Jun 8 18:43:03 lampserver cyrus/imap[4511]: login: localhost
[127.0.0.1] anonymous ANONYMOUS User logged in
[/code]
I can't resolve
badlogin: localhost [127.0.0.1] DIGEST-MD5 [SASL(-13): authentication
failure: client response doesn't match what we generated
I have been trying a day w/o breakthrough
$ sudo grep "^partition-" /etc/imapd.conf
partition-default: /var/spool/cyrus/mail
partition-news: /var/spool/cyrus/news
$ sudo ls -ld /var/spool/cyrus/mail
drwxr-x--- 29 cyrus mail 4096 2008-05-24 21:46 /var/spool/cyrus/mail
$ sudo ls -ld /var/spool/cyrus/news
drwxr-x--- 29 cyrus mail 4096 2008-05-24 21:46 /var/spool/cyrus/news
Please help. TIA
B.R.
Stephen L
Send instant messages to your online friends
http://uk.messenger.yahoo.com
----
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
Send instant messages to your online friends http://uk.messenger.yahoo.com
Simon Matter
2008-06-08 16:54:00 UTC
Permalink
Post by Stephen Liu
Hi folks,
Further to my 1st posting listed at the bottom, I found out the trick.
I must use the password created on running;
# saslpasswd2 -c cyrus
NOT on running;
# passwd cyrus
What will be the use of the 2nd password? Thanks.
Now on running;
$ cyradm -u cyrus localhost
localhost> cm user.satimiscyrus
localhost> quit
it works. But I can't find this new user NOR its mailbox.
Login via IMAP and your mailbox is there (locate is only useful after
updatedb has run so don't expect it to show anything immediately).
You can also try the cyradm command 'lm' and it should show your mailbox.

Simon
Post by Stephen Liu
$ locate satimiscyrus
No printout
$ sudo ls -la /var/spool/cyrus/
total 20
drwxr-xr-x 4 cyrus mail 4096 2008-06-07 16:44 .
drwxr-xr-x 9 root root 4096 2008-05-24 21:46 ..
-rw------- 1 cyrus mail 126 2008-06-07 17:32 .bash_history
drwxr-x--- 29 cyrus mail 4096 2008-05-24 21:46 mail
drwxr-x--- 29 cyrus mail 4096 2008-05-24 21:46 news
* end *
$ sudo ls -la /var/spool/cyrus/mail
total 116
drwxr-x--- 29 cyrus mail 4096 2008-05-24 21:46 .
drwxr-xr-x 4 cyrus mail 4096 2008-06-07 16:44 ..
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 a
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 b
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 c
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 d
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 e
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 f
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 g
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 h
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 i
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 j
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 k
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 l
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 m
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 n
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 o
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 p
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 q
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 r
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 s
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 stage.
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 t
drwxr-xr-x 3 cyrus mail 4096 2008-06-08 22:52 u
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 v
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 w
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 x
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 y
drwxr-xr-x 2 cyrus mail 4096 2008-05-24 21:46 z
* end *
sudo cat /etc/sasldb2 | grep cyrus
Binary file (standard input) matches
Please help. TIA
B.R.
Stephen L
Post by Stephen Liu
Hi folks,
Ubuntu 6.06 drake amd64
I'm following;
Cyrus
https://help.ubuntu.com/community/Cyrus
building IMAP/POP servers.
Packages installed;
postfix
cyrus-admin-2.2
cyrus-clients-2.2
cyrus-imapd-2.2
sasl2-bin
cyrus-pop3d-2.2
libc-client-dev
gamin
* end *
Everything is going on smoothly w/o problem.
Coming to creating Mailbox I can't proceed further;
$ cyradm -u cyrus localhost
localhost> cm user.satimiscyrus
createmailbox: Permission denied
* end *
$ tail /var/log/mail.log
Jun 8 18:09:16 lampserver cyrus/imap[4478]: executed
Jun 8 18:09:16 lampserver cyrus/imap[4478]: accepted connection
Jun 8 18:09:16 lampserver cyrus/imap[4478]: badlogin: localhost
[127.0.0.1] plaintext satimis SASL(-1): generic failure: checkpass
failed
Jun 8 18:10:19 lampserver cyrus/master[3881]: process 4478 exited,
status 0
Jun 8 18:11:04 lampserver cyrus/master[4480]: about to exec
/usr/lib/cyrus/bin/imapd
Jun 8 18:11:04 lampserver cyrus/imap[4480]: executed
Jun 8 18:11:04 lampserver cyrus/imap[4480]: accepted connection
Jun 8 18:11:13 lampserver cyrus/imap[4480]: badlogin: localhost
[127.0.0.1] DIGEST-MD5 [SASL(-13): authentication failure: client
response doesn't match what we generated]
Jun 8 18:11:16 lampserver cyrus/imap[4480]: login: localhost
[127.0.0.1] anonymous ANONYMOUS User logged in
Jun 8 18:12:54 lampserver cyrus/master[3881]: process 4480 exited,
status 0
* end *
$ su - cyrus -c cyradm localhost
localhost> cm user.satimiscyrus
createmailbox: Permission denied
* end *
$ tail /var/log/mail.log
Jun 8 18:27:14 lampserver cyrus/ctl_cyrusdb[4497]: archiving log
/var/lib/cyrus/db/log.0000000001
Jun 8 18:27:14 lampserver cyrus/ctl_cyrusdb[4497]: archiving
database
file: /var/lib/cyrus/mailboxes.db
Jun 8 18:27:14 lampserver cyrus/ctl_cyrusdb[4497]: archiving log
/var/lib/cyrus/db/log.0000000001
Jun 8 18:27:14 lampserver cyrus/ctl_cyrusdb[4497]: done
checkpointing
cyrus databases
Jun 8 18:27:14 lampserver cyrus/master[3881]: process 4497 exited,
status 0
Jun 8 18:42:51 lampserver cyrus/master[4511]: about to exec
/usr/lib/cyrus/bin/imapd
Jun 8 18:42:51 lampserver cyrus/imap[4511]: executed
Jun 8 18:42:51 lampserver cyrus/imap[4511]: accepted connection
Jun 8 18:43:00 lampserver cyrus/imap[4511]: badlogin: localhost
[127.0.0.1] DIGEST-MD5 [SASL(-13): authentication failure: client
response doesn't match what we generated]
Jun 8 18:43:03 lampserver cyrus/imap[4511]: login: localhost
[127.0.0.1] anonymous ANONYMOUS User logged in
[/code]
I can't resolve
badlogin: localhost [127.0.0.1] DIGEST-MD5 [SASL(-13): authentication
failure: client response doesn't match what we generated
I have been trying a day w/o breakthrough
$ sudo grep "^partition-" /etc/imapd.conf
partition-default: /var/spool/cyrus/mail
partition-news: /var/spool/cyrus/news
$ sudo ls -ld /var/spool/cyrus/mail
drwxr-x--- 29 cyrus mail 4096 2008-05-24 21:46 /var/spool/cyrus/mail
$ sudo ls -ld /var/spool/cyrus/news
drwxr-x--- 29 cyrus mail 4096 2008-05-24 21:46 /var/spool/cyrus/news
Please help. TIA
B.R.
Stephen L
Send instant messages to your online friends
http://uk.messenger.yahoo.com
----
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
Send instant messages to your online friends http://uk.messenger.yahoo.com
----
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
Stephen Liu
2008-06-08 16:32:05 UTC
Permalink
Post by Dick Hoogendijk
On Sun, 8 Jun 2008 21:15:58 +0800 (CST)
Post by Stephen Liu
$ cyradm -u cyrus localhost
localhost> cm user.satimiscyrus
createmailbox: Permission denied
* end *
Does the user cyrus exist w/ it's password in sasldb2?
Did you check all the permissions?
Hi Dick,


/etc/sasldb2 is a command file. I don't understand its content, only
codes.


However on running;

$ sudo cat /etc/sasldb2 | grep cyrus
Binary file (standard input) matches


B.R.
Stephen

Send instant messages to your online friends http://uk.messenger.yahoo.com
Stephen Liu
2008-06-09 02:39:23 UTC
Permalink
Hi Simon,


Thanks for your advice.


It is my first time running cyrus-imap to setup a LAMP server. Most
times I run courier-imap. This is a test running headless on
installation and w/o X packages installed. The server is working.
Postfix can send mails via telnet. I suppose it can also receive mail
because the mail sent to "satimiscyrus" has not been rejected so far.
But I can't locate the mail.


Also neither I can login on SquirrelMail.


On /etc/postfix/main.cf
mailbox_transport = cyrus
mailbox_transport = lmtp:unix:/var/run/lmtp


User "satimiscyrus" is created with "useradd"


$ sudo ls -la /home/satimiscyrus/
total 24
drwxr-xr-x 2 satimiscyrus users 4096 2008-06-09 09:47 .
drwxr-xr-x 7 root root 4096 2008-06-09 09:29 ..
-rw------- 1 satimiscyrus users 74 2008-06-09 09:47 .bash_history
-rw-r--r-- 1 satimiscyrus users 220 2008-06-09 09:29 .bash_logout
-rw-r--r-- 1 satimiscyrus users 414 2008-06-09 09:29 .bash_profile
-rw-r--r-- 1 satimiscyrus users 2227 2008-06-09 09:29 .bashrc


- snip -
Post by Simon Matter
Post by Stephen Liu
$ cyradm -u cyrus localhost
localhost> cm user.satimiscyrus
localhost> quit
it works. But I can't find this new user NOR its mailbox.
Login via IMAP and your mailbox is there (locate is only useful after
updatedb has run so don't expect it to show anything immediately).
You can also try the cyradm command 'lm' and it should show your
mailbox.
$ sudo updatedb
$ locate satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.cache
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.header
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.index


The mailbox is there. What is user^ for?


$ sudo ls /var/spool/cyrus/mail/
a c e g i k m o q s t v x z
b d f h j l n p r stage. u w y


$ sudo ls /var/spool/cyrus/mail/u/user^satimiscyrus
cyrus.cache cyrus.header cyrus.index


$ cyradm -u satimiscyrus localhost
Password:
localhost> lm user.satimiscyrus
user.satimiscyrus (\HasNoChildren)


What does (\HasNoChildren) indicate ?


localhost> lm satimiscyrus
localhost> lm satimiscyrus.%
both without printout.


I can't find the mailbox with 'lm'


Please help. TIA


P.S. Where can I find a relevant document other than;

http://cyrusimap.web.cmu.edu/twiki/bin/view/Cyrus/WebHome


B.R.
Stephen L



Send instant messages to your online friends http://uk.messenger.yahoo.com
Michael Menge
2008-06-09 06:31:58 UTC
Permalink
Hi Stephen,
Post by Stephen Liu
Post by Stephen Liu
$ cyradm -u cyrus localhost
localhost> cm user.satimiscyrus
localhost> quit
it works. But I can't find this new user NOR its mailbox.
$ locate satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.cache
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.header
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.index
The mailbox is there. What is user^ for?
This indicates that you have set unixhierarchysep: 1 in /etc/imapd.conf
To create a Inbox for the user satimiscyrus you have to use
cm user/satimiscyrus

The ^ is the reperentation of the . on filesystem.
Post by Stephen Liu
$ cyradm -u satimiscyrus localhost
localhost> lm user.satimiscyrus
user.satimiscyrus (HasNoChildren)
What does (HasNoChildren) indicate ?
This means there are no subfolders
Post by Stephen Liu
localhost> lm satimiscyrus
localhost> lm satimiscyrus.%
both without printout.
--------------------------------------------------------------------------------
M.Menge Tel.: (49) 7071/29-70316
Universitaet Tuebingen Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung mail:
***@zdv.uni-tuebingen.de
Waechterstrasse 76
72074 Tuebingen
Stephen Liu
2008-06-09 09:36:37 UTC
Permalink
Hi Michael,


Thanks for your advice.
Post by Michael Menge
Post by Stephen Liu
Post by Stephen Liu
$ cyradm -u cyrus localhost
localhost> cm user.satimiscyrus
localhost> quit
it works. But I can't find this new user NOR its mailbox.
$ locate satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.cache
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.header
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.index
The mailbox is there. What is user^ for?
This indicates that you have set unixhierarchysep: 1 in
/etc/imapd.conf
$ cat /etc/imapd.conf | grep unixhierarchysep
unixhierarchysep: yes


It is set as "yes"
Post by Michael Menge
To create a Inbox for the user satimiscyrus you have to use
cm user/satimiscyrus
The ^ is the reperentation of the . on filesystem.
Tried to delete the mailbox without success. Performed following
steps;


$ su - cyrus
Password:

$ cyradm -u cyrus localhost
Password:
localhost> dm user.satimiscyrus
deletemailbox: Permission denied

I can't delete the mailbox created previously.


Continued

localhost> cm user/satimiscyrus
localhost> lm
user.groupware (\HasNoChildren) user/satimiscyrus (\HasNoChildren)

user.satimiscyrus (\HasNoChildren)

Still can't create the subdirectory.


Continued
localhost> quit
$ exit
logout


$ sudo updatedb


$ locate satimiscyrus
/home/satimiscyrus
/home/satimiscyrus/.bash_history
/home/satimiscyrus/.bash_logout
/home/satimiscyrus/.bash_profile
/home/satimiscyrus/.bashrc
/var/spool/cyrus/mail/s/user/satimiscyrus
/var/spool/cyrus/mail/s/user/satimiscyrus/cyrus.cache
/var/spool/cyrus/mail/s/user/satimiscyrus/cyrus.header
/var/spool/cyrus/mail/s/user/satimiscyrus/cyrus.index
/var/spool/cyrus/mail/u/user^satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.cache
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.header
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.index
* end *


Send a webmail to satimiscyrus on Gmail. The mail never arrives.



B.R.
Stephen L

Send instant messages to your online friends http://uk.messenger.yahoo.com
Alain Spineux
2008-06-09 11:15:39 UTC
Permalink
Post by Stephen Liu
Hi Michael,
Thanks for your advice.
Post by Michael Menge
Post by Stephen Liu
Post by Stephen Liu
$ cyradm -u cyrus localhost
localhost> cm user.satimiscyrus
localhost> quit
it works. But I can't find this new user NOR its mailbox.
$ locate satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.cache
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.header
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.index
The mailbox is there. What is user^ for?
This indicates that you have set unixhierarchysep: 1 in
/etc/imapd.conf
$ cat /etc/imapd.conf | grep unixhierarchysep
unixhierarchysep: yes
It is set as "yes"
Post by Michael Menge
To create a Inbox for the user satimiscyrus you have to use
cm user/satimiscyrus
The ^ is the reperentation of the . on filesystem.
Tried to delete the mailbox without success. Performed following
steps;
$ su - cyrus
$ cyradm -u cyrus localhost
localhost> dm user.satimiscyrus
deletemailbox: Permission denied
I can't delete the mailbox created previously.
Because you need to give yourself the right before
Post by Stephen Liu
sam user.satimiscyrus manager x
or maybe
Post by Stephen Liu
sam user.satimiscyrus manager c
then
Post by Stephen Liu
dm user.satimiscyrus
Continued
localhost> cm user/satimiscyrus
localhost> lm
user.groupware (\HasNoChildren) user/satimiscyrus (\HasNoChildren)
user.satimiscyrus (\HasNoChildren)
Still can't create the subdirectory.
I dont understand !
Post by Stephen Liu
Continued
localhost> quit
$ exit
logout
$ sudo updatedb
in this case 'find' is more appropriate than locate
Post by Stephen Liu
$ locate satimiscyrus
find / -iname "*satimiscyrus*"
Post by Stephen Liu
/home/satimiscyrus
/home/satimiscyrus/.bash_history
/home/satimiscyrus/.bash_logout
/home/satimiscyrus/.bash_profile
/home/satimiscyrus/.bashrc
/var/spool/cyrus/mail/s/user/satimiscyrus
/var/spool/cyrus/mail/s/user/satimiscyrus/cyrus.cache
/var/spool/cyrus/mail/s/user/satimiscyrus/cyrus.header
/var/spool/cyrus/mail/s/user/satimiscyrus/cyrus.index
/var/spool/cyrus/mail/u/user^satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.cache
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.header
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.index
* end *
Send a webmail to satimiscyrus on Gmail. The mail never arrives.
Is your MX pointers configured ? Is your SMTP reachable from outside ?
Did you look in postfix log ?
Post by Stephen Liu
B.R.
Stephen L
Send instant messages to your online friends http://uk.messenger.yahoo.com
----
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
--
Alain Spineux
aspineux gmail com
May the sources be with you
Michael Menge
2008-06-09 11:22:39 UTC
Permalink
Post by Stephen Liu
$ cat /etc/imapd.conf | grep unixhierarchysep
unixhierarchysep: yes
It is set as "yes"
yes and 1 mean the same, unixhierarchsep is used.
Post by Stephen Liu
Post by Michael Menge
To create a Inbox for the user satimiscyrus you have to use
cm user/satimiscyrus
The ^ is the reperentation of the . on filesystem.
Tried to delete the mailbox without success. Performed following
steps;
$ su - cyrus
$ cyradm -u cyrus localhost
localhost> dm user.satimiscyrus
deletemailbox: Permission denied
I can't delete the mailbox created previously.
as stated from cyradm the user cyrus does not have the permission to delete
the mailbox. Use "sam user.satimiscyrus cyrus c" or
"sam user.satimiscyrus cyrus all" the first will only set the
permission to create subfolders and to delete the folder, the seconds
gives cyrus all permissions
Post by Stephen Liu
Continued
localhost> cm user/satimiscyrus
localhost> lm
user.groupware (\HasNoChildren) user/satimiscyrus (\HasNoChildren)
user.satimiscyrus (\HasNoChildren)
Still can't create the subdirectory.
which subdirectory? user/satimiscyrus has been created
(second solder on first line)
Post by Stephen Liu
Continued
localhost> quit
$ exit
logout
$ sudo updatedb
$ locate satimiscyrus
/home/satimiscyrus
/home/satimiscyrus/.bash_history
/home/satimiscyrus/.bash_logout
/home/satimiscyrus/.bash_profile
/home/satimiscyrus/.bashrc
/var/spool/cyrus/mail/s/user/satimiscyrus
/var/spool/cyrus/mail/s/user/satimiscyrus/cyrus.cache
/var/spool/cyrus/mail/s/user/satimiscyrus/cyrus.header
/var/spool/cyrus/mail/s/user/satimiscyrus/cyrus.index
/var/spool/cyrus/mail/u/user^satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.cache
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.header
/var/spool/cyrus/mail/u/user^satimiscyrus/cyrus.index
* end *
Send a webmail to satimiscyrus on Gmail. The mail never arrives.
Did you recieve a bounce or is the message still queued? Are there
related entries in you maillogs and cyruslogs?




--------------------------------------------------------------------------------
M.Menge Tel.: (49) 7071/29-70316
Universitaet Tuebingen Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung mail:
***@zdv.uni-tuebingen.de
Waechterstrasse 76
72074 Tuebingen
Stephen Liu
2008-06-09 11:41:35 UTC
Permalink
Hi Alain,


Thanks for your advice.
Post by Alain Spineux
Post by Stephen Liu
$ cyradm -u cyrus localhost
localhost> dm user.satimiscyrus
deletemailbox: Permission denied
I can't delete the mailbox created previously.
Because you need to give yourself the right before
Whether I have to run the command as root?
Post by Alain Spineux
Post by Stephen Liu
localhost> cm user/satimiscyrus
localhost> lm
user.groupware (\HasNoChildren) user/satimiscyrus
(\HasNoChildren)
Post by Stephen Liu
user.satimiscyrus (\HasNoChildren)
Still can't create the subdirectory.
I dont understand !
The maildir and subdir haven't been created. (\HasNoChildren)
Post by Alain Spineux
Post by Stephen Liu
$ sudo updatedb
in this case 'find' is more appropriate than locate
Post by Stephen Liu
$ locate satimiscyrus
find / -iname "*satimiscyrus*"
$ sudo find / -name "*satimiscyrus*"
Password:
/var/spool/cyrus/mail/s/user/satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus
/home/satimiscyrus
Post by Alain Spineux
Post by Stephen Liu
Send a webmail to satimiscyrus on Gmail. The mail never arrives.
Is your MX pointers configured ? Is your SMTP reachable from outside
?
Did you look in postfix log ?
Yes.

$ tail /var/log/mail.log
Jun 9 19:11:28 lampserver cyrus/ctl_cyrusdb[4753]: archiving log file:
/var/lib/cyrus/db/log.000000
0001
Jun 9 19:11:28 lampserver cyrus/ctl_cyrusdb[4753]: done checkpointing
cyrus databases
Jun 9 19:11:28 lampserver cyrus/master[3881]: process 4753 exited,
status 0
Jun 9 19:18:53 lampserver cyrus/master[4798]: about to exec
/usr/lib/cyrus/bin/imapd
Jun 9 19:18:53 lampserver cyrus/imap[4798]: executed
Jun 9 19:18:53 lampserver cyrus/imap[4798]: accepted connection
Jun 9 19:19:42 lampserver cyrus/imap[4798]: badlogin: localhost
[127.0.0.1] plaintext satimis SASL(
-1): generic failure: checkpass failed
Jun 9 19:21:53 lampserver cyrus/master[3881]: process 4798 exited,
status 0
Jun 9 19:31:36 lampserver postfix/qmgr[4188]: C18198781EC:
from=<***@gmail.com>, size=1834,
nrcpt=1 (queue active)
Jun 9 19:31:36 lampserver postfix/lmtp[4835]: C18198781EC:
to=<***@satimis.com>, relay=non
e, delay=7874, status=deferred (connect to
/var/run/lmtp[/var/run/lmtp]: No such file or directory)
* end *


B.R.
satimis

Send instant messages to your online friends http://uk.messenger.yahoo.com
Simon Matter
2008-06-09 13:05:17 UTC
Permalink
Post by Stephen Liu
Hi Alain,
Thanks for your advice.
Post by Alain Spineux
Post by Stephen Liu
$ cyradm -u cyrus localhost
localhost> dm user.satimiscyrus
deletemailbox: Permission denied
I can't delete the mailbox created previously.
Because you need to give yourself the right before
Whether I have to run the command as root?
NO, you shouldn't run this as root!
If you want to delete a cyrus mailbox you have to give the cyrus admin
user the rights to do so (as someone else already stated).
Post by Stephen Liu
Post by Alain Spineux
Post by Stephen Liu
localhost> cm user/satimiscyrus
localhost> lm
user.groupware (\HasNoChildren) user/satimiscyrus
(\HasNoChildren)
Post by Stephen Liu
user.satimiscyrus (\HasNoChildren)
Still can't create the subdirectory.
I dont understand !
The maildir and subdir haven't been created. (\HasNoChildren)
Post by Alain Spineux
Post by Stephen Liu
$ sudo updatedb
in this case 'find' is more appropriate than locate
Post by Stephen Liu
$ locate satimiscyrus
find / -iname "*satimiscyrus*"
$ sudo find / -name "*satimiscyrus*"
/var/spool/cyrus/mail/s/user/satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus
/home/satimiscyrus
Post by Alain Spineux
Post by Stephen Liu
Send a webmail to satimiscyrus on Gmail. The mail never arrives.
Is your MX pointers configured ? Is your SMTP reachable from outside
?
Did you look in postfix log ?
Yes.
$ tail /var/log/mail.log
/var/lib/cyrus/db/log.000000
0001
Jun 9 19:11:28 lampserver cyrus/ctl_cyrusdb[4753]: done checkpointing
cyrus databases
Jun 9 19:11:28 lampserver cyrus/master[3881]: process 4753 exited,
status 0
Jun 9 19:18:53 lampserver cyrus/master[4798]: about to exec
/usr/lib/cyrus/bin/imapd
Jun 9 19:18:53 lampserver cyrus/imap[4798]: executed
Jun 9 19:18:53 lampserver cyrus/imap[4798]: accepted connection
Jun 9 19:19:42 lampserver cyrus/imap[4798]: badlogin: localhost
[127.0.0.1] plaintext satimis SASL(
-1): generic failure: checkpass failed
Jun 9 19:21:53 lampserver cyrus/master[3881]: process 4798 exited,
status 0
nrcpt=1 (queue active)
e, delay=7874, status=deferred (connect to
/var/run/lmtp[/var/run/lmtp]: No such file or directory)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Try to find out where you cyrus creates it's lmtp socket and point your
postfix config to it.

I don't know Debian but I think it should come with some docs to get
things to work. (Ubuntu ins mainly a copy of Debian so the same should
apply there as well). Maybe some Debian/Ubuntu user can point you to the
right docs.

Simon
Post by Stephen Liu
* end *
B.R.
satimis
Send instant messages to your online friends http://uk.messenger.yahoo.com
----
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
Joseph Brennan
2008-06-09 13:04:55 UTC
Permalink
Post by Stephen Liu
Post by Alain Spineux
Post by Stephen Liu
$ cyradm -u cyrus localhost
localhost> dm user.satimiscyrus
deletemailbox: Permission denied
I can't delete the mailbox created previously.
Because you need to give yourself the right before
Whether I have to run the command as root?
Root doesn't matter. The cyrus user needs permission to delete.
This is a safety feature. sam user.satimiscyrus cyrus all
Post by Stephen Liu
Post by Alain Spineux
Post by Stephen Liu
localhost> cm user/satimiscyrus
localhost> lm
user.groupware (\HasNoChildren)
user/satimiscyrus (\HasNoChildren)
user.satimiscyrus (\HasNoChildren)
Still can't create the subdirectory.
It did what you asked, but I don't think you asked for what
you wanted.
Post by Stephen Liu
$ sudo find / -name "*satimiscyrus*"
/var/spool/cyrus/mail/s/user/satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus
/home/satimiscyrus
This looks correct. Note:
(1) Cyrus user.satimiscyrus = filesystem user/satimiscyrus
(2) Cyrus user/satimiscyrus = filesystem user^satimiscyrus
(3) is not a Cyrus mailbox

I would expect mail addressed to satimiscyrus to end up in (1).

(2) is not a user mailbox. It could work as a bboard mailbox but
that's not what you want in this case.



Joseph Brennan
Columbia University Information Technology
Stephen Liu
2008-06-09 13:53:21 UTC
Permalink
Hi Michael,
Post by Michael Menge
Post by Stephen Liu
$ cat /etc/imapd.conf | grep unixhierarchysep
unixhierarchysep: yes
It is set as "yes"
yes and 1 mean the same, unixhierarchsep is used.
Noted with thanks.
Post by Michael Menge
Post by Stephen Liu
I can't delete the mailbox created previously.
as stated from cyradm the user cyrus does not have the permission to
delete
the mailbox. Use "sam user.satimiscyrus cyrus c" or
"sam user.satimiscyrus cyrus all" the first will only set the
permission to create subfolders and to delete the folder, the seconds
gives cyrus all permissions
Performed following steps;


$ cyradm -u cyrus localhost
Password:
localhost> sam user.satimiscyrus cyrus c
localhost> dm user.satimiscyrus
localhost> lm
user.groupware (\HasNoChildren) user/satimiscyrus (\HasNoChildren)

localhost> quit

Done.
Post by Michael Menge
Did you recieve a bounce or is the message still queued?
The mail sent from Yahoo several hours ago has already been returned to
the sender. I think the second mail sent from Gmail is still bouncing
on Internet.
Post by Michael Menge
Are there
related entries in you maillogs and cyruslogs?
$ sudo ls /var/log/ | grep mail
Password:
mail.err
mail.info
mail.log
mail.warn


$ tail /var/log/mail.err
No printout


$ tail /var/log/mail.info
Jun 9 21:26:17 lampserver cyrus/tls_prune[3887]: tls_prune: purged 0
out of 0 entries
Jun 9 21:26:17 lampserver cyrus/master[3881]: ready for work
Jun 9 21:26:17 lampserver cyrus/ctl_cyrusdb[3888]: checkpointing cyrus
databases
Jun 9 21:26:17 lampserver cyrus/ctl_cyrusdb[3888]: done checkpointing
cyrus databases
Jun 9 21:26:25 lampserver postfix/master[4183]: daemon started --
version 2.2.10, configu
ration /etc/postfix
Jun 9 21:26:25 lampserver postfix/qmgr[4188]: C18198781EC:
from=<***@gmail.com>, s
ize=1834, nrcpt=1 (queue active)
Jun 9 21:26:25 lampserver postfix/lmtp[4196]: C18198781EC:
to=<***@satimis.com>,
relay=none, delay=14763, status=deferred (connect to
/var/run/lmtp[/var/run/lmtp]: No suc
h file or directory)
Jun 9 21:34:17 lampserver cyrus/imap[4447]: badlogin: localhost
[127.0.0.1] DIGEST-MD5 [S
ASL(-13): user not found: no secret in database]
Jun 9 21:34:20 lampserver cyrus/imap[4447]: login: localhost
[127.0.0.1] anonymous ANONYM
OUS User logged in
Jun 9 21:37:31 lampserver cyrus/imap[4447]: login: localhost
[127.0.0.1] cyrus DIGEST-MD5
User logged in
* end *


$ tail /var/log/mail.warn
Jun 2 18:32:06 lampserver cyrus/master[3881]: WARNING: cannot find
executable for service 'imap' -- ignored
Jun 2 18:32:06 lampserver cyrus/master[3881]: WARNING: cannot find
executable for service 'pop3' -- ignored
Jun 2 18:32:06 lampserver cyrus/master[3881]: WARNING: cannot find
executable for service 'nntp' -- ignored
Jun 3 22:35:08 lampserver cyrus/master[3881]: WARNING: cannot find
executable for service 'imap' -- ignored
Jun 3 22:35:08 lampserver cyrus/master[3881]: WARNING: cannot find
executable for service 'pop3' -- ignored
Jun 3 22:35:08 lampserver cyrus/master[3881]: WARNING: cannot find
executable for service 'nntp' -- ignored
Jun 6 18:47:50 lampserver cyrus/master[3881]: WARNING: cannot find
executable for service 'imap' -- ignored
Jun 6 18:47:50 lampserver cyrus/master[3881]: WARNING: cannot find
executable for service 'pop3' -- ignored
Jun 6 18:47:50 lampserver cyrus/master[3881]: WARNING: cannot find
executable for service 'nntp' -- ignored
Jun 9 18:15:12 lampserver cyrus/imap[4675]: idle for too long, closing
connection
* end *


$ sudo ls /var/log/ | grep cyrus
No printout


B.R.
Stephen

Send instant messages to your online friends http://uk.messenger.yahoo.com
Michael Menge
2008-06-09 14:19:48 UTC
Permalink
Post by Stephen Liu
$ tail /var/log/mail.info
....
Post by Stephen Liu
ize=1834, nrcpt=1 (queue active)
relay=none, delay=14763, status=deferred (connect to
/var/run/lmtp[/var/run/lmtp]: No such file or directory)
here is the problem, postfix and cyrus must be configured to use the
same socket and it must exist and have the correct permissions
Post by Stephen Liu
$ sudo ls /var/log/ | grep cyrus
No printout
the maillogs show that syslogd/syslog-ng is configured that cyruslogs
are written to mail.*



--------------------------------------------------------------------------------
M.Menge Tel.: (49) 7071/29-70316
Universitaet Tuebingen Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung mail:
***@zdv.uni-tuebingen.de
Waechterstrasse 76
72074 Tuebingen
Robert Annandale
2008-06-09 14:23:17 UTC
Permalink
unsubscribe
Stephen Liu
2008-06-09 14:07:47 UTC
Permalink
Hi Simon,
Post by Simon Matter
Post by Stephen Liu
Whether I have to run the command as root?
NO, you shouldn't run this as root!
If you want to delete a cyrus mailbox you have to give the cyrus
admin
user the rights to do so (as someone else already stated).
Noted with thanks.
Post by Simon Matter
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Try to find out where you cyrus creates it's lmtp socket and point
your
postfix config to it.
I don't know Debian but I think it should come with some docs to get
things to work. (Ubuntu ins mainly a copy of Debian so the same
should
apply there as well). Maybe some Debian/Ubuntu user can point you to
the
right docs.
$ cat /etc/cyrus.conf | grep socket
# UNIX sockets start with a slash and are absolute paths
# (you must keep the Unix socket name in sync with imap.conf)
lmtpunix cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp"
prefork=0 maxchild=20
notify cmd="notifyd"
listen="/var/run/cyrus/socket/notify" proto="udp" prefork=1
* end *


Would it be /var/run/cyrus/socket/lmtp ?


$ sudo ls -la /var/run/cyrus/socket | grep lmtp
srwxrwxrwx 1 root root 0 2008-06-09 21:26 lmtp


$ sudo ls -la /var/run/cyrus/socket/
total 0
drwxr-x--- 2 cyrus mail 80 2008-06-09 21:26 .
drwxr-xr-x 3 cyrus mail 60 2008-06-09 21:26 ..
srwxrwxrwx 1 root root 0 2008-06-09 21:26 lmtp
srwxrwxrwx 1 root root 0 2008-06-09 21:26 notify
* end *


How to link it to postfix config? Thanks



B.R.
Stephen


Send instant messages to your online friends http://uk.messenger.yahoo.com
Jens Hoffrichter
2008-06-09 14:44:41 UTC
Permalink
This mail accidently went off-list....So here a resend


---------- Forwarded message ----------
From: Jens Hoffrichter <***@gmail.com>
Date: 2008/6/9
Subject: Re: Cyrus - can't create user mailbox
To: Stephen Liu <***@yahoo.com>


Hi Stephen,
Post by Stephen Liu
Post by Simon Matter
Try to find out where you cyrus creates it's lmtp socket and point your
postfix config to it.
I don't know Debian but I think it should come with some docs to get
things to work. (Ubuntu ins mainly a copy of Debian so the same should
apply there as well). Maybe some Debian/Ubuntu user can point you to the
right docs.
$ cat /etc/cyrus.conf | grep socket
# UNIX sockets start with a slash and are absolute paths
# (you must keep the Unix socket name in sync with imap.conf)
lmtpunix cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp"
prefork=0 maxchild=20
notify cmd="notifyd"
listen="/var/run/cyrus/socket/notify" proto="udp" prefork=1
* end *
Would it be /var/run/cyrus/socket/lmtp ?
Yep, it would be it.

But please note that the postfix smtpd under Debian (and probably
Ubuntu as well) runs in a chroot environment. You can see this by
looking in your /etc/postfix/master.cf file, look at the line with
smtp in the beginning and look in the right column for the chroot.
Which one that is should be documented in the top of the file.

If the smtpd runs in a chroot environment, it will expect the lmtp
socket relative to the chroot path, normally /var/spool/postfix, so
the correct complete path for the socket would be
/var/spool/postfix/var/run/cyrus/socket/notify ;) This created a lot
of headache for me when configuring sasl, until I figured it out.

Regards,
Jens
Alain Spineux
2008-06-09 16:54:01 UTC
Permalink
Post by Stephen Liu
Hi Simon,
Post by Simon Matter
Post by Stephen Liu
Whether I have to run the command as root?
NO, you shouldn't run this as root!
If you want to delete a cyrus mailbox you have to give the cyrus admin
user the rights to do so (as someone else already stated).
Noted with thanks.
Post by Simon Matter
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Try to find out where you cyrus creates it's lmtp socket and point your
postfix config to it.
I don't know Debian but I think it should come with some docs to get
things to work. (Ubuntu ins mainly a copy of Debian so the same should
apply there as well). Maybe some Debian/Ubuntu user can point you to the
right docs.
$ cat /etc/cyrus.conf | grep socket
# UNIX sockets start with a slash and are absolute paths
# (you must keep the Unix socket name in sync with imap.conf)
lmtpunix cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp"
prefork=0 maxchild=20
notify cmd="notifyd"
listen="/var/run/cyrus/socket/notify" proto="udp" prefork=1
* end *
Would it be /var/run/cyrus/socket/lmtp ?
You have somewhere int your postfix main.cf "/var/run/lmtp", probably
a mailbox_transport=... or a local_transport=....
You must replace it by the cyrus path : /var/run/cyrus/socket/lmtp

If smtpd daemon is chrooted this become more difficult !
You have 2 possibilities
- just try to replace the 'y' in master.cf by a 'n' to make smtpd not chrooted
- change the path in cyrus.conf to move the socket somewhere bellow the
postfix chroot jail. Be carefull cyrus must have enough right in the
postfix directory to create the socket.
Post by Stephen Liu
$ sudo ls -la /var/run/cyrus/socket | grep lmtp
srwxrwxrwx 1 root root 0 2008-06-09 21:26 lmtp
$ sudo ls -la /var/run/cyrus/socket/
total 0
drwxr-x--- 2 cyrus mail 80 2008-06-09 21:26 .
drwxr-xr-x 3 cyrus mail 60 2008-06-09 21:26 ..
srwxrwxrwx 1 root root 0 2008-06-09 21:26 lmtp
srwxrwxrwx 1 root root 0 2008-06-09 21:26 notify
* end *
How to link it to postfix config? Thanks
B.R.
Stephen
Send instant messages to your online friends http://uk.messenger.yahoo.com
----
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
--
Alain Spineux
aspineux gmail com
May the sources be with you
Stephen Liu
2008-06-09 14:11:59 UTC
Permalink
Hi Joseph,
Post by Joseph Brennan
Post by Stephen Liu
Whether I have to run the command as root?
Root doesn't matter. The cyrus user needs permission to delete.
This is a safety feature. sam user.satimiscyrus cyrus all
Noted with thanks.
Post by Joseph Brennan
Post by Stephen Liu
Post by Stephen Liu
localhost> cm user/satimiscyrus
localhost> lm
user.groupware (\HasNoChildren)
user/satimiscyrus (\HasNoChildren)
user.satimiscyrus (\HasNoChildren)
Still can't create the subdirectory.
It did what you asked, but I don't think you asked for what
you wanted.
Noted.
Post by Joseph Brennan
Post by Stephen Liu
$ sudo find / -name "*satimiscyrus*"
/var/spool/cyrus/mail/s/user/satimiscyrus
/var/spool/cyrus/mail/u/user^satimiscyrus
/home/satimiscyrus
(1) Cyrus user.satimiscyrus = filesystem user/satimiscyrus
(2) Cyrus user/satimiscyrus = filesystem user^satimiscyrus
(3) is not a Cyrus mailbox
I would expect mail addressed to satimiscyrus to end up in (1).
(2) is not a user mailbox. It could work as a bboard mailbox but
that's not what you want in this case.
What is a bboard mailbox? Thanks


B.R.
Stephen

Send instant messages to your online friends http://uk.messenger.yahoo.com
Stephen Liu
2008-06-09 16:49:21 UTC
Permalink
Hi Jens,


Thanks for your advice.


- snip -
Post by Jens Hoffrichter
Post by Stephen Liu
Would it be /var/run/cyrus/socket/lmtp ?
Yep, it would be it.
But please note that the postfix smtpd under Debian (and probably
Ubuntu as well) runs in a chroot environment. You can see this by
looking in your /etc/postfix/master.cf file, look at the line with
smtp in the beginning and look in the right column for the chroot.
Which one that is should be documented in the top of the file.
$ cat /etc/postfix/master.cf | grep smtp
smtp inet n - - - - smtpd

smtp unix - - - - - smtp
relay unix - - - - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender
$recipient
* end *

There are only 2 lines there with smtp in the beginning.
Post by Jens Hoffrichter
If the smtpd runs in a chroot environment, it will expect the lmtp
socket relative to the chroot path, normally /var/spool/postfix, so
the correct complete path for the socket would be
/var/spool/postfix/var/run/cyrus/socket/notify ;) This created a lot
of headache for me when configuring sasl, until I figured it out.
$ sudo nano /etc/cyrus.conf

change both lines.

changing;
lmtpunix cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp"
prefork=0 maxchild=20

as;
lmtpunix cmd="lmtpd"
listen="/var/spool/postfix/var/run/cyrus/socket/lmtp" prefork=0
maxchild=20


changing;
notify cmd="notifyd" listen="/var/run/cyrus/socket/notify"
proto="udp" prefork=1

as;
notify cmd="notifyd"
listen="/var/spool/postfix/var/run/cyrus/socket/notify" proto="udp"
prefork=1


Still can't receive mails.


$ sudo ls -la /var/spool/cyrus/mail/s/user/satimiscyrus
Password:
total 20
drwx------ 2 cyrus mail 4096 2008-06-09 16:35 .
drwx------ 3 cyrus mail 4096 2008-06-09 16:35 ..
-rw------- 1 cyrus mail 4 2008-06-09 16:35 cyrus.cache
-rw------- 1 cyrus mail 158 2008-06-09 16:35 cyrus.header
-rw------- 1 cyrus mail 76 2008-06-09 16:35 cyrus.index
* end *


$ tail /var/log/mail.log
Jun 10 00:35:41 lampserver cyrus/ctl_cyrusdb[4952]: archiving log file:
/var/lib/cyrus/db/log.0000000001
Jun 10 00:35:41 lampserver cyrus/ctl_cyrusdb[4952]: archiving database
file: /var/lib/cyrus/mailboxes.db
Jun 10 00:35:41 lampserver cyrus/ctl_cyrusdb[4952]: archiving log file:
/var/lib/cyrus/db/log.0000000001
Jun 10 00:35:41 lampserver cyrus/ctl_cyrusdb[4952]: done checkpointing
cyrus databases
Jun 10 00:35:41 lampserver cyrus/master[4948]: process 4952 exited,
status 0
Jun 10 00:36:30 lampserver postfix/smtpd[4955]: connect from
ti-out-0910.google.com[209.85.142.187]
Jun 10 00:36:30 lampserver postfix/smtpd[4955]: D21EA87820E:
client=ti-out-0910.google.com[209.85.142.187]
Jun 10 00:36:30 lampserver postfix/cleanup[4956]: D21EA87820E:
message-id=<***@mail.gmail.com>
Jun 10 00:36:30 lampserver postfix/qmgr[4188]: D21EA87820E:
from=<***@gmail.com>, size=1842, nrcpt=1 (queue active)
Jun 10 00:36:30 lampserver postfix/lmtp[4958]: D21EA87820E:
to=<***@satimis.com>, relay=none, delay=0, status=deferred
(connect to /var/run/lmtp[/var/run/lmtp]: No such file or directory)
* end *


$ tail /var/log/mail.warn
Jun 6 18:47:50 lampserver cyrus/master[3881]: WARNING: cannot find
executable for service 'nntp' -- ignored
Jun 9 18:15:12 lampserver cyrus/imap[4675]: idle for too long, closing
connection
Jun 9 23:48:17 lampserver cyrus/master[4594]: unable to create notify
listener socket: No such file or directory
Jun 10 00:08:08 lampserver cyrus/master[4745]: unable to create
lmtpunix listener socket: No such file or directory
Jun 10 00:08:08 lampserver cyrus/master[4745]: unable to create notify
listener socket: No such file or directory
Jun 10 00:12:38 lampserver cyrus/master[4805]: unable to create
lmtpunix listener socket: No such file or directory
Jun 10 00:12:39 lampserver cyrus/master[4805]: unable to create notify
listener socket: No such file or directory
Jun 10 00:32:46 lampserver cyrus/master[4902]: unable to create notify
listener socket: No such file or directory
Jun 10 00:35:41 lampserver cyrus/master[4948]: unable to create
lmtpunix listener socket: No such file or directory
Jun 10 00:35:41 lampserver cyrus/master[4948]: unable to create notify
listener socket: No such file or directory
* end *


B.R.
Stephen

Send instant messages to your online friends http://uk.messenger.yahoo.com
Jens Hoffrichter
2008-06-09 17:26:51 UTC
Permalink
Hi Stephen,
Post by Stephen Liu
Thanks for your advice.
No problem - we all struggled at some point and were glad for help :)
Post by Stephen Liu
$ cat /etc/postfix/master.cf | grep smtp
smtp inet n - - - - smtpd
smtp unix - - - - - smtp
relay unix - - - - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender
$recipient
* end *
There are only 2 lines there with smtp in the beginning.
Stephen Liu
2008-06-09 17:19:07 UTC
Permalink
Hi Alain,


- snip -
Post by Alain Spineux
Post by Stephen Liu
Would it be /var/run/cyrus/socket/lmtp ?
You have somewhere int your postfix main.cf "/var/run/lmtp",
probably
a mailbox_transport=... or a local_transport=....
You must replace it by the cyrus path : /var/run/cyrus/socket/lmtp
$ cat /etc/postfix/main.cf | grep /var/run/lmtp
mailbox_transport = lmtp:unix:/var/run/lmtp

I suppose you meant this line?
Post by Alain Spineux
If smtpd daemon is chrooted this become more difficult !
You have 2 possibilities
- just try to replace the 'y' in master.cf by a 'n' to make smtpd not
chrooted
$ cat /etc/postfix/master.cf | grep y
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
verify unix - - - - 1 verify
proxymap unix - - n - - proxymap
# When relaying mail as backup MX, disable fallback_relay to avoid MX
loops
relay unix - - - - - smtp
-o fallback_relay=
# Many of the following services use the Postfix pipe(8) delivery
# Also specify in main.cf: maildrop_destination_recipient_limit=1
# Other external delivery methods.
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
# The Cyrus deliver program has changed incompatibly, multiple times.
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m "${extension}"
${user}
* end *

No 'y' found.
Post by Alain Spineux
- change the path in cyrus.conf to move the socket somewhere bellow
the
postfix chroot jail. Be carefull cyrus must have enough right in the
postfix directory to create the socket.
Could you please explain in more detail how to make it? TIA


B.R.
Stephen


Send instant messages to your online friends http://uk.messenger.yahoo.com
Jorey Bump
2008-06-09 17:42:08 UTC
Permalink
Post by Stephen Liu
$ cat /etc/postfix/master.cf | grep y
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
The chroot setting defaults to yes, so a 'y' does not need to be
explicitly set.
Post by Stephen Liu
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
verify unix - - - - 1 verify
proxymap unix - - n - - proxymap
# When relaying mail as backup MX, disable fallback_relay to avoid MX
loops
relay unix - - - - - smtp
-o fallback_relay=
All those dashes represent the specified defaults for that column.
Post by Stephen Liu
No 'y' found.
Stop guessing. Post your entire master.cf.
Post by Stephen Liu
Post by Alain Spineux
- change the path in cyrus.conf to move the socket somewhere bellow
the
postfix chroot jail. Be carefull cyrus must have enough right in the
postfix directory to create the socket.
Could you please explain in more detail how to make it? TIA
There's no need to run Postfix in a chroot jail. You are better off
disabling chroot entirely (explicitly with an 'n' in master.cf).
Alain Spineux
2008-06-09 21:27:35 UTC
Permalink
Post by Jorey Bump
There's no need to run Postfix in a chroot jail. You are better off
disabling chroot entirely (explicitly with an 'n' in master.cf).
----
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
I agree. Make a copy of your master.cf and replace all '-' in the 5th
column by 'n'
Then the possible problem is that master.cf or main.cf could contains
some configuration stuff to run
in a chroot jail. run the folowing command and report the result

# postconf -n


Then in main.cf replace

mailbox_transport = lmtp:unix:/var/run/lmtp
by
mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp


Restart all, and try to send an email,
look in the postfix log to see what is the next problem :-)
--
Alain Spineux
aspineux gmail com
May the sources be with you
Stephen Liu
2008-06-09 23:03:54 UTC
Permalink
Hi Jorey,


- snip -
Post by Jorey Bump
All those dashes represent the specified defaults for that column.
Post by Stephen Liu
No 'y' found.
Stop guessing. Post your entire master.cf.
$ cat /etc/postfix/master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the Postfix master(5) manual page.
#
#
==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
#
==========================================================================
smtp inet n - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - - - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX
loops
relay unix - - - - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender
$recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}

# The Cyrus deliver program has changed incompatibly, multiple times.
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m "${extension}"
${user}
* end *


Others noted with thanks


B.R.
Stephen


Send instant messages to your online friends http://uk.messenger.yahoo.com
Stephen Liu
2008-06-09 23:57:30 UTC
Permalink
Hi Alain,
Post by Alain Spineux
Post by Jorey Bump
There's no need to run Postfix in a chroot jail. You are better off
disabling chroot entirely (explicitly with an 'n' in master.cf).
----
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
I agree. Make a copy of your master.cf and replace all '-' in the 5th
column by 'n'
Then the possible problem is that master.cf or main.cf could contains
some configuration stuff to run
in a chroot jail. run the folowing command and report the result
# postconf -n
$ sudo cp -p /etc/postfix/main.cf /etc/postfix/main.cf.bak.20080610


$ sudo nano /etc/postfix/master.cf
On the 5th column changing all '-' to 'n'


$ sudo postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
mailbox_transport = lmtp:unix:/var/run/lmtp
mydestination = satimis.com, localhost.localdomain,
localhost.satimis.com
myhostname = lampserver
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtp_tls_note_starttls_offer = yes
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions =
permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database =
btree:${queue_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
* end *
Post by Alain Spineux
Then in main.cf replace
mailbox_transport = lmtp:unix:/var/run/lmtp
by
mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp
Restart all, and try to send an email,
look in the postfix log to see what is the next problem :-)
$ sudo cp -p /etc/postfix/main.cf /etc/postfix/main.cf.bak.20080610


$ sudo nano /etc/postfix/main.cf
Change;
mailbox_transport = lmtp:unix:/var/run/lmtp


to;
mailbox_transport = lmtp:unix:/var/run/cyrus/socket/lmtp


$ sudo /etc/init.d/postfix restart
* Stopping Postfix Mail Transport Agent postfix
[ ok ]
* Starting Postfix Mail Transport Agent postfix
[ ok ]



Send a webmail on GMail to satimiscyrus. It doesn't arrive.


$ sudo ls -la /var/spool/cyrus/mail/s/user/satimiscyrus
total 20
drwx------ 2 cyrus mail 4096 2008-06-09 16:35 .
drwx------ 3 cyrus mail 4096 2008-06-09 16:35 ..
-rw------- 1 cyrus mail 4 2008-06-09 16:35 cyrus.cache
-rw------- 1 cyrus mail 158 2008-06-09 16:35 cyrus.header
-rw------- 1 cyrus mail 76 2008-06-09 16:35 cyrus.index
* end *


$ tail /var/log/mail.log
Jun 10 07:25:04 lampserver cyrus/ctl_cyrusdb[4652]: archiving log file:
/var/lib/cyrus/db/log.0000000001
Jun 10 07:25:04 lampserver cyrus/ctl_cyrusdb[4652]: done checkpointing
cyrus databases
Jun 10 07:25:04 lampserver cyrus/master[3881]: process 4652 exited,
status 0
Jun 10 07:32:15 lampserver postfix/master[4183]: terminating on signal
15
Jun 10 07:32:16 lampserver postfix/master[4733]: daemon started --
version 2.2.10, configuration /etc/postfix
Jun 10 07:35:30 lampserver postfix/smtpd[4737]: connect from
ti-out-0910.google.com[209.85.142.191]
Jun 10 07:35:30 lampserver postfix/smtpd[4737]: 61C00878214:
client=ti-out-0910.google.com[209.85.142.191]
Jun 10 07:35:30 lampserver postfix/cleanup[4742]: 61C00878214:
message-id=<ca46cd50806091635p2335a340l487b88404
***@mail.gmail.com>
Jun 10 07:35:30 lampserver postfix/qmgr[4735]: 61C00878214:
from=<***@gmail.com>, size=1842, nrcpt=1 (qu
eue active)
Jun 10 07:35:30 lampserver postfix/lmtp[4744]: 61C00878214:
to=<***@satimis.com>, relay=none, delay=0,
status=deferred (connect to
/var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp]: Permission
denied)
* end *


$ tail /var/log/mail.warn
Jun 10 00:59:52 lampserver cyrus/imap[31720]: Fatal error: invalid
option name on line 322 of configuration file /etc/imapd.conf
Jun 10 00:59:52 lampserver cyrus/master[4948]: service imap pid 31720
in READY state: terminated abnormally
Jun 10 00:59:52 lampserver cyrus/imap[31721]: Fatal error: invalid
option name on line 322 of configuration file /etc/imapd.conf
Jun 10 00:59:52 lampserver cyrus/master[4948]: service imap pid 31721
in READY state: terminated abnormally
Jun 10 00:59:52 lampserver cyrus/imap[31722]: Fatal error: invalid
option name on line 322 of configuration file /etc/imapd.conf
Jun 10 00:59:52 lampserver cyrus/master[4948]: service imap pid 31722
in READY state: terminated abnormally
Jun 10 00:59:52 lampserver cyrus/imap[31723]: Fatal error: invalid
option name on line 322 of configuration file /etc/imapd.conf
Jun 10 00:59:52 lampserver cyrus/master[4948]: service imap pid 31723
in READY state: terminated abnormally
Jun 10 00:59:52 lampserver cyrus/imap[31724]: Fatal error: invalid
option name on line 322 of configuration file /etc/imapd.conf
Jun 10 00:59:52 lampserver cyrus/master[4948]: service imap pid 31724
in READY state: terminated abnormally
* end *


On /etc/imapd line 322 is already at the bottom of the file, an empty
space.


B.R.
Stephen


Send instant messages to your online friends http://uk.messenger.yahoo.com
Stephen Liu
2008-06-10 01:55:56 UTC
Permalink
Post by Stephen Liu
Post by Stephen Liu
$ cat /etc/postfix/master.cf | grep smtp
smtp inet n - - - - smtpd
smtp unix - - - - - smtp
relay unix - - - - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop
-f$sender
Post by Stephen Liu
$recipient
* end *
There are only 2 lines there with smtp in the beginning.
Jorey Bump
2008-06-10 03:50:29 UTC
Permalink
Post by Stephen Liu
(connect to
/var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp]: Permission
denied)
$ sudo ls -l /var/run/cyrus/socket
total 0
srwxrwxrwx 1 root root 0 2008-06-10 06:55 lmtp
$ sudo ls -ld /var/run/cyrus/socket
drwxr-x--- 2 cyrus mail 80 2008-06-10 09:09 /var/run/cyrus/socket
$ id postfix
uid=107(postfix) gid=111(postfix) groups=111(postfix)
Now just add the user postfix to the mail group.
Stephen Liu
2008-06-10 11:42:45 UTC
Permalink
Post by Jorey Bump
Post by Stephen Liu
(connect to
/var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp]: Permission
denied)
$ sudo ls -l /var/run/cyrus/socket
total 0
srwxrwxrwx 1 root root 0 2008-06-10 06:55 lmtp
$ sudo ls -ld /var/run/cyrus/socket
drwxr-x--- 2 cyrus mail 80 2008-06-10 09:09 /var/run/cyrus/socket
$ id postfix
uid=107(postfix) gid=111(postfix) groups=111(postfix)
Now just add the user postfix to the mail group.
Hi Jorey,


Sorry I'm not very clear. Whether follow the guy's suggestion running;

$ sudo adduser postfix lmtp

??? Thanks


On
http://unixadmintalk.com/f11/postfix-cyrus21-89421/


His output is;

$ id postfix
uid=101(postfix) gid=103(postfix)
groups=103(postfix),45(sasl),1001(lmtp)


The output here is;
$ id postfix
uid=107(postfix) gid=111(postfix) groups=111(postfix)


How about sasl?


B.R.
Stephen


Send instant messages to your online friends http://uk.messenger.yahoo.com
Jorey Bump
2008-06-10 12:30:12 UTC
Permalink
Post by Stephen Liu
Post by Jorey Bump
Post by Stephen Liu
(connect to
/var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp]: Permission
denied)
Postfix can't access your socket.
Post by Stephen Liu
Post by Jorey Bump
Post by Stephen Liu
$ sudo ls -l /var/run/cyrus/socket
total 0
srwxrwxrwx 1 root root 0 2008-06-10 06:55 lmtp
$ sudo ls -ld /var/run/cyrus/socket
drwxr-x--- 2 cyrus mail 80 2008-06-10 09:09 /var/run/cyrus/socket
Only the cyrus user and members of the mail group can access your socket.
Post by Stephen Liu
Post by Jorey Bump
Post by Stephen Liu
$ id postfix
uid=107(postfix) gid=111(postfix) groups=111(postfix)
Now just add the user postfix to the mail group.
Currently, the postfix user only belongs to the postfix group. Users can
belong to multiple groups. Add the postfix user to the mail group, so it
can access your socket.
Post by Stephen Liu
Sorry I'm not very clear. Whether follow the guy's suggestion running;
$ sudo adduser postfix lmtp
??? Thanks
I see no lmtp group in your configuration, so I don't expect this to
have any effect.
Post by Stephen Liu
On
http://unixadmintalk.com/f11/postfix-cyrus21-89421/
Don't blindly follow howtos without understanding the underlying concepts.
Post by Stephen Liu
His output is;
$ id postfix
uid=101(postfix) gid=103(postfix)
groups=103(postfix),45(sasl),1001(lmtp)
He is apparently creating specialized groups that presumably have
differing needs, which is fine, but you don't need to add this
complexity at this stage. You can revisit this once you have a working
solution and understand the reasoning behind it, but I wouldn't bother
unless your platform imposes this on you.
Post by Stephen Liu
The output here is;
$ id postfix
uid=107(postfix) gid=111(postfix) groups=111(postfix)
Yes. Now add the postfix user to the mail group, and the permissions
error should disappear.
Post by Stephen Liu
How about sasl?
Concentrate on fixing one error at a time. I don't use a special sasl
group on my system. You might not need one, either.
Stephen Liu
2008-06-10 13:21:09 UTC
Permalink
Hi Jorey,


- snip -
Post by Jorey Bump
Post by Stephen Liu
The output here is;
$ id postfix
uid=107(postfix) gid=111(postfix) groups=111(postfix)
Yes. Now add the postfix user to the mail group, and the permissions
error should disappear.
I'm prepared to run;

$ sudo groupadd mail -g 1001
$ useradd postfix -u 1001 -g 1001

Shall I use number 1001? OR another number?


However on /etc/group I found following entries;

mail:x:8:dovecot
dovecot:x:113:


I don't have dovecot-* running. Shall I remove them manually? Thanks


Other advice noted with thanks



B.R.
Stephen

Send instant messages to your online friends http://uk.messenger.yahoo.com
Jorey Bump
2008-06-10 15:53:29 UTC
Permalink
Post by Stephen Liu
Post by Jorey Bump
Post by Stephen Liu
The output here is;
$ id postfix
uid=107(postfix) gid=111(postfix) groups=111(postfix)
Yes. Now add the postfix user to the mail group, and the permissions
error should disappear.
I'm prepared to run;
$ sudo groupadd mail -g 1001
I didn't say add the mail group.
Post by Stephen Liu
$ useradd postfix -u 1001 -g 1001
I didn't say add the postfix user.
Post by Stephen Liu
Shall I use number 1001? OR another number?
Don't. Stop guessing.
Post by Stephen Liu
However on /etc/group I found following entries;
mail:x:8:dovecot
See, you already have a mail group. Leave it.
And you seem to have dovecot installed, which shouldn't be a problem if
you're not using it.
Post by Stephen Liu
I don't have dovecot-* running. Shall I remove them manually? Thanks
No, you should avoid manually removing applications on systems like
Debian. Use the package manager to remove it. There's also a chance that
Debian has some utilities for managing your mail system that you may
want to look into. Personally, I don't like Debian's wizards, tools, or
over-reaching modifications, so I don't use it. But if you like the
system they offer, it can be easy to maintain.

All you need to do is add the (existing) postfix user to the (existing)
mail group. This can be as easy as editing /etc/groups, using the more
secure vigr command, or any other number of ways your system provides.
You should also be aware of your platform's documentation, especially if
it's going to back you into certain corners. In any case, refer to it to
learn about permissions, ownership, and how to add a user to a group.
Then simply add postfix to the mail group and report back any new errors
or success.
Alain Spineux
2008-06-10 16:42:37 UTC
Permalink
Post by Stephen Liu
Hi Jorey,
- snip -
Post by Jorey Bump
Post by Stephen Liu
The output here is;
$ id postfix
uid=107(postfix) gid=111(postfix) groups=111(postfix)
Yes. Now add the postfix user to the mail group, and the permissions
error should disappear.
I'm prepared to run;
$ sudo groupadd mail -g 1001
$ useradd postfix -u 1001 -g 1001
Shall I use number 1001? OR another number?
However on /etc/group I found following entries;
mail:x:8:dovecot
if you can edit /etc/group, change mail group like that

mail:x:8:dovecot,postfix

and restart postfix


private joke: I dont understand why all ubuntu and debian users use
always the same prompt : "$ sudo " :-)
Post by Stephen Liu
I don't have dovecot-* running. Shall I remove them manually? Thanks
Other advice noted with thanks
B.R.
Stephen
Send instant messages to your online friends http://uk.messenger.yahoo.com
----
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
--
Alain Spineux
aspineux gmail com
May the sources be with you
Stephen Liu
2008-06-11 01:06:35 UTC
Permalink
Hi Alain,


Problem solved. Mail arrives.


- snip -
Post by Alain Spineux
Post by Stephen Liu
However on /etc/group I found following entries;
mail:x:8:dovecot
if you can edit /etc/group, change mail group like that
mail:x:8:dovecot,postfix
and restart postfix
Edit /etc/group and restart postfix


$ sudo nano /etc/cyrus.conf
changing back;
lmtpunix cmd="lmtpd"
listen="/var/spool/postfix/var/run/cyrus/socket/lmtp" prefork=0
maxchild=20

as;
lmtpunix cmd="lmtpd" listen="/var/run/cyrus/socket/lmtp"
prefork=0 maxchild=20

This above step is necessary otherwise mail won't arrive.


$ sudo /etc/init.d/cyrus2.2 restart
Stopping Cyrus IMAPd: cyrmaster.
Waiting for complete shutdown...
Starting Cyrus IMAPd: cyrmaster.


Send satimiscyrus a mail on GMail. Mail arrives NOW.


$ tail /var/log/mail.log
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: executed
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: accepted connection
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: lmtp connection
preauth'd as postman
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: IOERROR: fstating
sieve script /var/spool/sieve/s/satimiscyrus/defaultbc: No such file or
directory
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: duplicate_check:
<***@mail.gmail.com>
user.satimiscyrus 0
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: mystore: starting txn
2147483652
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: mystore: committing
txn 2147483652
Jun 11 08:30:29 lampserver cyrus/lmtpunix[4627]: duplicate_mark:
<***@mail.gmail.com>
user.satimiscyrus 1213144229 1
Jun 11 08:30:29 lampserver postfix/lmtp[4626]: 0208587821B:
to=<***@satimis.com>,
relay=/var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp], delay=1,
status=sent (250 2.1.5 Ok)
Jun 11 08:30:29 lampserver postfix/qmgr[4501]: 0208587821B: removed
* end *


$ sudo ls -la /var/spool/cyrus/mail/s/user/satimiscyrus
total 24
drwx------ 2 cyrus mail 4096 2008-06-11 08:30 .
drwx------ 3 cyrus mail 4096 2008-06-09 16:35 ..
-rw------- 1 cyrus mail 2054 2008-06-11 08:30 1.
-rw------- 1 cyrus mail 1760 2008-06-11 08:30 cyrus.cache
-rw------- 1 cyrus mail 158 2008-06-09 16:35 cyrus.header
-rw------- 1 cyrus mail 136 2008-06-11 08:30 cyrus.index
* end *


$ sudo nano /var/spool/cyrus/mail/s/user/satimiscyrus/1.
read the mail.


Why the arriving mail is numbered as '1.'?


I'll revert the change on chroot to the original state later to see
whether it has effect.



Athentication problem still remains intact.


$ imtest -m login -p imap -u satimiscyrus localhost
S: * OK lampserver Cyrus IMAP4 v2.2.12-Debian-2.2.12-4ubuntu1 server
ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND
BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN satimis {12}
S: + go ahead
C: <omitted>
S: L01 NO Login failed: generic failure
Authentication failed. generic failure
Security strength factor: 0

C: Q01 LOGOUT
Connection closed.
* end *


I'll continue to solve this problem on another thread.
Post by Alain Spineux
private joke: I dont understand why all ubuntu and debian users use
always the same prompt : "$ sudo " :-)
It is Debian/Ubuntu way. They use sudoer instead of "su" changing to
root.


Previously I met another joke. Folks on Internet seeing my postings
asked me why not following Debian/Ubutu way of operation while working
on them.


B.R.
Stephen

Send instant messages to your online friends http://uk.messenger.yahoo.com
Loading...