Shared folders and virtual domains ?
Christian Schulte
cs at schulte.it
Sat Dec 7 20:57:49 EST 2002
Ken Murchison wrote:
>Christian Schulte wrote:
>
>
>>Ken Murchison wrote:
>>
>>
>>
>>>Christian Schulte wrote:
>>>
>>>
>>>
>>>
>>>>Ken Murchison wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Christian Schulte wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>Ken Murchison wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Christian Schulte wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Ken Murchison wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Christian Schulte wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>Hi,
>>>>>>>>>>
>>>>>>>>>>I am running 2_2 cvs branch with virtual domain support turned on and
>>>>>>>>>>everything seemd to work fine. I now wanted to move my old installation
>>>>>>>>>>to the new one and cannot get delivery to shared folders working.
>>>>>>>>>>If I create a shared folder with cyradm like:
>>>>>>>>>>
>>>>>>>>>>$>cm sharedfolder
>>>>>>>>>>
>>>>>>>>>>I cannot do
>>>>>>>>>>
>>>>>>>>>>$>sam sharedfolder user at domain lrswipcda
>>>>>>>>>>
>>>>>>>>>>and get
>>>>>>>>>>
>>>>>>>>>>setaclmailbox: user at domain: lrswipcda: Invalid identifier
>>>>>>>>>>
>>>>>>>>>>If I create a shared folder with cyradm like:
>>>>>>>>>>
>>>>>>>>>>$>cm sharedfolder at domain
>>>>>>>>>>
>>>>>>>>>>I can do
>>>>>>>>>>
>>>>>>>>>>$>sam sharedfolder at domain user at domain lrswipcda
>>>>>>>>>>
>>>>>>>>>>and the user can subscribe to the folder and sees it on the same level
>>>>>>>>>>than his inbox as expected. If I now setup sendmail to send via the
>>>>>>>>>>cyrusv2 mailer with an address like +sharedfolder at domain I get the
>>>>>>>>>>following errors in the logs which I do not understand ! What is wrong
>>>>>>>>>>here ?
>>>>>>>>>>
>>>>>>>>>>Nov 15 02:55:33 mail lmtpunix[8259]: [ID 921384 local6.debug] accepted
>>>>>>>>>>connection
>>>>>>>>>>Nov 15 02:55:33 mail lmtpunix[8259]: [ID 685068 local6.debug] lmtp
>>>>>>>>>>connection preauth'd as postman
>>>>>>>>>>Nov 15 02:55:33 mail lmtpunix[8259]: [ID 152585 local6.error] couldn't
>>>>>>>>>>create stage directory: : No such file or directory
>>>>>>>>>>Nov 15 02:55:33 mail lmtpunix[8259]: [ID 519036 local6.error] IOERROR:
>>>>>>>>>>creating message file 8259-1037325333: No such file or directory
>>>>>>>>>>Nov 15 02:55:33 mail sendmail[8262]: [ID 801593 mail.info]
>>>>>>>>>>gAF1rq13008256: to=<+sharedfolder at domain>, delay=00:01:41,
>>>>>>>>>>xdelay=00:00:00, mailer=cyrusv2, pri=210378, relay=localhost, dsn=4.2.0,
>>>>>>>>>>stat=Deferred: 451 4.3.2 cannot create temporary file: No such file or
>>>>>>>>>>directory
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>Sorry for the delay, but I finally got a chance to look into this.
>>>>>>>>>Cyrus isn't the problem here, the problem is that the MTA is stripping
>>>>>>>>>the domain off of the recipient address when it gets passed to lmtpd.
>>>>>>>>>
>>>>>>>>>Try changing the cyrusv2 mailer definition to use:
>>>>>>>>>
>>>>>>>>>S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>Does not work either! I had
>>>>>>>>
>>>>>>>>S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrToSMTP
>>>>>>>>
>>>>>>>>in my cyrusv2.m4 file and changing it to
>>>>>>>>
>>>>>>>>S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP
>>>>>>>>
>>>>>>>>produces the same error! sendmail delivers correctly to lmtpd, I think:
>>>>>>>>
>>>>>>>>20776 === CONNECT localhost
>>>>>>>>20776 <<< 220 XXXXXXXX LMTP Cyrus v2.2.prealpha ready
>>>>>>>>20776 >>> LHLO XXXXXXXX
>>>>>>>>20776 <<< 250-XXXXXXX
>>>>>>>>20776 <<< 250-8BITMIME
>>>>>>>>20776 <<< 250-ENHANCEDSTATUSCODES
>>>>>>>>20776 <<< 250-PIPELINING
>>>>>>>>20776 <<< 250-SIZE
>>>>>>>>20776 <<< 250-AUTH EXTERNAL
>>>>>>>>20776 <<< 250 IGNOREQUOTA
>>>>>>>>20776 >>> MAIL From:<test at test.it> SIZE=1076 BODY=8BITMIME
>>>>>>>>20776 <<< 250 2.1.0 ok
>>>>>>>>20776 >>> RCPT To:<+sharedfolder at domain>
>>>>>>>>20776 >>> DATA
>>>>>>>>20776 <<< 250 2.1.5 ok
>>>>>>>>20776 <<< 451 4.3.2 cannot create temporary file: No such file or directory
>>>>>>>>20776 >>> QUIT
>>>>>>>>20776 <<< 221 2.0.0 bye
>>>>>>>>20776 <<< [EOF]
>>>>>>>>
>>>>>>>>And the logfile states the same errors ! What makes me a bit confused is
>>>>>>>>the error message itself. lmtpd is trying to create a temporary file but
>>>>>>>>the error is "No such file or directory". Is it a missing directory or
>>>>>>>>wrong permissions on a directory ?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>Sorry, I missed this in your original message. This error is a result
>>>>>>>of lmtpd's failure to create a spoolfile for the message. Most of the
>>>>>>>time this will be in the staging area of the recipient's partition (eg,
>>>>>>>/var/spool/imap/stage.), otherwise this will be in your temp space (call
>>>>>>>to tmpfile()). Check the ownership/permissions on the 'stage.'
>>>>>>>directory on your Cyrus partitions. It should look something like:
>>>>>>>
>>>>>>>[root at eagle imap]# ls -l /var/spool/imap/
>>>>>>>total 8
>>>>>>>drwx------ 3 cyrus mail 24 Jul 10 12:10 domain
>>>>>>>drwx------ 8 cyrus mail 73 Nov 5 12:51 netnews
>>>>>>>drwx------ 10 cyrus mail 4096 Oct 4 13:14 public
>>>>>>>drwx------ 2 cyrus mail 6 Dec 3 10:18 stage.
>>>>>>>drwx------ 22 cyrus mail 4096 Aug 27 11:49 user
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>I cannot get it to work. Still the same problem! I configured cyrus with
>>>>>>--with-cyrus-user=cyrus and --with-cyrus-group=smmsp
>>>>>>
>>>>>>schulte-01:48:30:/var >ls -l /var
>>>>>>...
>>>>>>drwxr-xr-x 8 root bin 512 Sep 20 21:27 spool
>>>>>>....
>>>>>>
>>>>>>schulte-01:48:33:/var >ls -l /var/spool/
>>>>>>...
>>>>>>drwxrwx--- 4 cyrus smmsp 512 Nov 15 03:06 imap
>>>>>>...
>>>>>>
>>>>>>schulte-01:49:54:/var >ls -l /var/spool/imap/
>>>>>>total 4
>>>>>>drwxrwxr-x 15 cyrus smmsp 512 Dez 3 22:15 domain
>>>>>>drwxrwxr-x 2 cyrus smmsp 512 Dez 5 01:44 stage.
>>>>>>
>>>>>>If I do a ./mkimap -d domain I have to chmod 0770 /var/imap/db.backup*
>>>>>>afterwards to get rid of DBERROR logentries during cyrus startup, so I
>>>>>>think I have a permission problem but where ?
>>>>>>
>>>>>>--Christian--
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>Do you only get this problem when trying to deliver to a shared folder?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>Yes!
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Or does it happen when trying to deliver to any folder, including a
>>>>>user's INBOX?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>No! Sieves' file into works correctly and delivery to all other folders
>>>>than a shared folder also works for me! If I investigate the lmtpd
>>>>process during delivery to a shared folder I can see the following in
>>>>truss output (lines with comments from me start with >>>; hope this will
>>>>be readable after sending it):
>>>>The error occures at the lines:
>>>>
>>>>20225: open(0x08043280, 01402, 0666) Err#13 EACCES
>>>>20225: 0x08043280: "20225-1039130904"
>>>>20225: mkdir(0x08043680, 0755) Err#2 ENOENT
>>>>20225: 0x08043680: ""
>>>>
>>>>Err#13 EACCES to a file called "20225-1039130904" which I think is the temporay file not being created or not being able to read in again...
>>>>
>>>>Here is the whole output of the transcation:
>>>>
>>>>20225: psargs: lmtpd -C /etc/imapd.conf.v2
>>>>20225: accept(4, 0x00000000, 0x00000000, 1) (sleeping...)
>>>>20225: accept(4, 0x00000000, 0x00000000, 1) = 13
>>>>20225: fcntl(12, 7, 0x0804758C) = 0
>>>>20225: typ=F_UNLCK whence=SEEK_SET start=0 len=0 sys=1 pid=134510128
>>>>20225: alarm(0) = 0
>>>>20225: write(3, 0x080475F8, 4) = 4
>>>>20225: 0x080475F8: "02\0\0\0"
>>>>20225: fxstat(2, 5, 0x08047374) = 0
>>>>20225: d=0x00740480 i=194451 m=0020666 l=1 u=0 g=3 rdev=0x00540000
>>>>20225: at = Jun 6 20:22:13 MEST 2002 [ 1023387733 ]
>>>>20225: mt = Jan 9 00:24:27 MET 2002 [ 1010532267 ]
>>>>20225: ct = Jun 6 20:22:13 MEST 2002 [ 1023387733 ]
>>>>20225: bsz=8192 blks=0 fs=ufs
>>>>20225: time() = 1039130904
>>>>20225: getpid() = 20225 [27804]
>>>>20225: putmsg(5, 0x08046A2C, 0x08046A20, 0) = 0
>>>>20225: ctl: maxlen=24 len=24 buf=0x0804735C: "\0\0\0\0\0BF10\0"..
>>>>20225: \0\0\0\0\0BF10\0B081\0\001\0\0\0 h\0\0\0B7\0\0\0
>>>>20225: dat: maxlen=1280 len=88 buf=0x08046E5C: " D e c 6 0"..
>>>>20225: D e c 6 0 0 : 2 8 : 2 4 l m t p u n i x [ 2 0 2 2 5 ] :
>>>>20225: [ I D 9 2 1 3 8 4 F A C I L I T Y _ A N D _ P R I O R I T
>>>>20225: Y ] a c c e p t e d c o n n e c t i o n\n\0
>>>>20225: open(0xDF800030, 0) = 14
>>>>20225: 0xDF800030: "/var/run/syslog_door"
>>>>20225: door(14, 0x080469BC) = 0
>>>>20225: getpid() = 20225 [27804]
>>>>20225: door(14, 0x080469A4) = 0
>>>>20225: close(14) = 0
>>>>20225: fcntl(13, 9, 0x00000000) = 0
>>>>20225: fcntl(13, 9, 0x00000001) = 1
>>>>20225: fcntl(13, 9, 0x00000002) = 2
>>>>20225: close(13) = 0
>>>>20225: write(3, 0x080475F4, 4) = 4
>>>>20225: 0x080475F4: "03\0\0\0"
>>>>20225: brk(0x0814F830) = 0
>>>>20225: brk(0x08153830) = 0
>>>>20225: getpeername(0, 0x08045F44, 0x08045D4C, 1) = 0
>>>>20225: AF_UNIX name =
>>>>20225: fxstat(2, 5, 0x08045AB4) = 0
>>>>20225: d=0x00740480 i=194451 m=0020666 l=1 u=0 g=3 rdev=0x00540000
>>>>20225: at = Jun 6 20:22:13 MEST 2002 [ 1023387733 ]
>>>>20225: mt = Jan 9 00:24:27 MET 2002 [ 1010532267 ]
>>>>20225: ct = Jun 6 20:22:13 MEST 2002 [ 1023387733 ]
>>>>20225: bsz=8192 blks=0 fs=ufs
>>>>20225: time() = 1039130904
>>>>20225: getpid() = 20225 [27804]
>>>>20225: putmsg(5, 0x0804516C, 0x08045160, 0) = 0
>>>>20225: ctl: maxlen=24 len=24 buf=0x08045A9C: "\0\0\0\0\0\n10\0"..
>>>>20225: \0\0\0\0\0\n10\0 lE2BEDF\0C8 xDF r11 /DEB7\0\0\0
>>>>20225: dat: maxlen=1280 len=105 buf=0x0804559C: " D e c 6 0"..
>>>>20225: D e c 6 0 0 : 2 8 : 2 4 l m t p u n i x [ 2 0 2 2 5 ] :
>>>>20225: [ I D 6 8 5 0 6 8 F A C I L I T Y _ A N D _ P R I O R I T
>>>>20225: Y ] l m t p c o n n e c t i o n p r e a u t h ' d a s
>>>>20225: p o s t m a n\n\0
>>>>20225: open(0xDF800030, 0) = 13
>>>>20225: 0xDF800030: "/var/run/syslog_door"
>>>>20225: door(13, 0x080450FC) = 0
>>>>20225: getpid() = 20225 [27804]
>>>>20225: door(13, 0x080450E4) = 0
>>>>20225: close(13) = 0
>>>>20225: uname(0x08045638) = 1
>>>>20225: sys=SunOS nod=mail rel=5.8 ver=Generic_108529-11 mch=i86pc
>>>>20225: poll(0x08045A74, 1, 0) = 0
>>>>20225: fd=0 ev=POLLRDNORM rev=0
>>>>20225: write(1, 0x0814CB20, 62) = 62
>>>>
>>>>
>>>>
>>>>
>>>>>>>Removed Servername here:20225: 2 2 0 i m a p . X X X X X X . X X L M
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>20225: T P C y r u s v 2 . 2 . p r e a l p h a r e a d y\r\n
>>>>20225: time() = 1039130904
>>>>20225: poll(0x08045A74, 1, 360000) = 1
>>>>20225: fd=0 ev=POLLRDNORM rev=POLLRDNORM
>>>>20225: time() = 1039130904
>>>>20225: read(0, 0x0814BB18, 4096) = 32
>>>>
>>>>
>>>>
>>>>
>>>>>>>Removed Servername here:20225: L H L O s m t p . X X X X . X X\r\n
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>20225: poll(0x08045A74, 1, 0) = 0
>>>>20225: fd=0 ev=POLLRDNORM rev=0
>>>>20225: write(1, 0x0814CB20, 132) = 132
>>>>
>>>>
>>>>
>>>>
>>>>>>>Removed Servername here:20225: 2 5 0 - i m a p . X X X . X X\r\n 2
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>20225: 5 0 - 8 B I T M I M E\r\n 2 5 0 - E N H A N C E D S T A T U S C
>>>>20225: O D E S\r\n 2 5 0 - P I P E L I N I N G\r\n 2 5 0 - S I Z E\r\n
>>>>20225: 2 5 0 - A U T H E X T E R N A L\r\n 2 5 0 I G N O R E Q U O
>>>>20225: T A\r\n
>>>>20225: time() = 1039130904
>>>>20225: poll(0x08045A74, 1, 360000) = 1
>>>>20225: fd=0 ev=POLLRDNORM rev=POLLRDNORM
>>>>20225: time() = 1039130904
>>>>20225: read(0, 0x0814BB18, 4096) = 36
>>>>20225: M A I L F r o m : < c s @ s c h u l t e . i t > S I Z E = 7
>>>>20225: 5 9\r\n
>>>>
>>>>
>>>>
>>>>
>>>>>>>Ceck for the suthdown textfile:20225: open(0x08047170, 0) Err#2 ENOENT
>>>>>>>No file found!:20225: 0x08047170: "/var/imap/msg/shutdown"
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>20225: poll(0x08045A74, 1, 0) = 0
>>>>20225: fd=0 ev=POLLRDNORM rev=0
>>>>20225: write(1, 0x0814CB20, 14) = 14
>>>>20225: 2 5 0 2 . 1 . 0 o k\r\n
>>>>20225: time() = 1039130904
>>>>20225: poll(0x08045A74, 1, 360000) = 1
>>>>20225: fd=0 ev=POLLRDNORM rev=POLLRDNORM
>>>>20225: time() = 1039130904
>>>>20225: read(0, 0x0814BB18, 4096) = 47
>>>>
>>>>
>>>>
>>>>
>>>>>>>Changed from real foldername:20225: R C P T T o : < + s h a r e d f o l d e r @ d o m a
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>20225: i n >\r\n D A T A\r\n
>>>>20225: open(0x08047170, 0) Err#2 ENOENT
>>>>20225: 0x08047170: "/var/imap/msg/shutdown"
>>>>20225: fcntl(10, 7, 0x0804547C) = 0
>>>>20225: typ=F_RDLCK whence=SEEK_SET start=0 len=0 sys=0 pid=0
>>>>20225: fxstat(2, 10, 0x08045558) = 0
>>>>20225: d=0x00740480 i=1687531 m=0100660 l=1 u=104 g=104 sz=24404
>>>>20225: at = Dec 6 00:26:43 MET 2002 [ 1039130803 ]
>>>>20225: mt = Dec 5 11:41:46 MET 2002 [ 1039084906 ]
>>>>20225: ct = Dec 5 11:41:46 MET 2002 [ 1039084906 ]
>>>>20225: bsz=8192 blks=48 fs=ufs
>>>>20225: xstat(2, 0x08140A08, 0x080454D0) = 0
>>>>20225: 0x08140A08: "/var/imap/mailboxes.db"
>>>>20225: d=0x00740480 i=1687531 m=0100660 l=1 u=104 g=104 sz=24404
>>>>20225: at = Dec 6 00:26:43 MET 2002 [ 1039130803 ]
>>>>20225: mt = Dec 5 11:41:46 MET 2002 [ 1039084906 ]
>>>>20225: ct = Dec 5 11:41:46 MET 2002 [ 1039084906 ]
>>>>20225: bsz=8192 blks=48 fs=ufs
>>>>20225: fcntl(10, 7, 0x080455BC) = 0
>>>>20225: typ=F_UNLCK whence=SEEK_SET start=0 len=0 sys=0 pid=44
>>>>20225: fcntl(10, 7, 0x0804545C) = 0
>>>>20225: typ=F_RDLCK whence=SEEK_SET start=0 len=0 sys=134503092 pid=135537376
>>>>20225: fxstat(2, 10, 0x08045538) = 0
>>>>20225: d=0x00740480 i=1687531 m=0100660 l=1 u=104 g=104 sz=24404
>>>>20225: at = Dec 6 00:26:43 MET 2002 [ 1039130803 ]
>>>>20225: mt = Dec 5 11:41:46 MET 2002 [ 1039084906 ]
>>>>20225: ct = Dec 5 11:41:46 MET 2002 [ 1039084906 ]
>>>>20225: bsz=8192 blks=48 fs=ufs
>>>>20225: xstat(2, 0x08140A08, 0x080454B0) = 0
>>>>20225: 0x08140A08: "/var/imap/mailboxes.db"
>>>>20225: d=0x00740480 i=1687531 m=0100660 l=1 u=104 g=104 sz=24404
>>>>20225: at = Dec 6 00:26:43 MET 2002 [ 1039130803 ]
>>>>20225: mt = Dec 5 11:41:46 MET 2002 [ 1039084906 ]
>>>>20225: ct = Dec 5 11:41:46 MET 2002 [ 1039084906 ]
>>>>20225: bsz=8192 blks=48 fs=ufs
>>>>20225: fcntl(10, 7, 0x0804559C) = 0
>>>>20225: typ=F_UNLCK whence=SEEK_SET start=0 len=0 sys=0 pid=44
>>>>20225: open(0x08044730, 02) = 13
>>>>
>>>>
>>>>
>>>>
>>>>>>>Changed the names:20225: 0x08044730: "/var/spool/imap/domain/domain/sharedfolder/cyrus.header"
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>20225: fxstat(2, 13, 0x080446A8) = 0
>>>>20225: d=0x00740480 i=2728633 m=0100600 l=1 u=104 g=104 sz=169
>>>>20225: at = Dec 6 00:26:43 MET 2002 [ 1039130803 ]
>>>>20225: mt = Nov 15 02:52:31 MET 2002 [ 1037325151 ]
>>>>20225: ct = Nov 15 02:52:31 MET 2002 [ 1037325151 ]
>>>>20225: bsz=8192 blks=2 fs=ufs
>>>>20225: mmap(0x00000000, 169, 0x0001, 0x0001, 13, 0) = 0xDE2E0000
>>>>20225: open(0x08044770, 02) = 14
>>>>
>>>>
>>>>
>>>>
>>>>>>>Changed foldername:20225: 0x08044770: "/var/spool/imap/domain/domain/sharedfolder/cyrus.index"
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>20225: fxstat(2, 14, 0x08044618) = 0
>>>>20225: d=0x00740480 i=2728490 m=0100600 l=1 u=104 g=104 sz=10320
>>>>20225: at = Dec 6 00:26:43 MET 2002 [ 1039130803 ]
>>>>20225: mt = Dec 6 00:16:36 MET 2002 [ 1039130196 ]
>>>>20225: ct = Dec 6 00:16:36 MET 2002 [ 1039130196 ]
>>>>20225: bsz=8192 blks=22 fs=ufs
>>>>20225: mmap(0x00000000, 24576, 0x0001, 0x0001, 14, 0) = 0xDE2D0000
>>>>20225: open(0x08044770, 02) = 15
>>>>
>>>>
>>>>
>>>>
>>>>>>>Changed foldername:20225: 0x08044770: "/var/spool/imap/domain/domain/sharedfolder/cyrus.cache"
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>20225: fxstat(2, 15, 0x080446E8) = 0
>>>>20225: d=0x00740480 i=2728617 m=0100600 l=1 u=104 g=104 sz=360304
>>>>20225: at = Dec 6 00:26:43 MET 2002 [ 1039130803 ]
>>>>20225: mt = Dec 6 00:16:36 MET 2002 [ 1039130196 ]
>>>>20225: ct = Dec 6 00:16:36 MET 2002 [ 1039130196 ]
>>>>20225: bsz=8192 blks=720 fs=ufs
>>>>20225: mmap(0x00000000, 368640, 0x0001, 0x0001, 15, 0) = 0xDE270000
>>>>20225: fxstat(2, 14, 0x08044628) = 0
>>>>20225: d=0x00740480 i=2728490 m=0100600 l=1 u=104 g=104 sz=10320
>>>>20225: at = Dec 6 00:28:24 MET 2002 [ 1039130904 ]
>>>>20225: mt = Dec 6 00:16:36 MET 2002 [ 1039130196 ]
>>>>20225: ct = Dec 6 00:16:36 MET 2002 [ 1039130196 ]
>>>>20225: bsz=8192 blks=22 fs=ufs
>>>>20225: close(13) = 0
>>>>20225: munmap(0xDE2E0000, 169) = 0
>>>>20225: close(14) = 0
>>>>20225: munmap(0xDE2D0000, 24576) = 0
>>>>20225: close(15) = 0
>>>>20225: munmap(0xDE270000, 368640) = 0
>>>>20225: open(0x08047170, 0) Err#2 ENOENT
>>>>20225: 0x08047170: "/var/imap/msg/shutdown"
>>>>20225: time() = 1039130904
>>>>20225: brk(0x08153830) = 0
>>>>20225: brk(0x08159830) = 0
>>>>20225: getpid() = 20225 [27804]
>>>>20225: fcntl(10, 7, 0x08042F5C) = 0
>>>>20225: typ=F_RDLCK whence=SEEK_SET start=0 len=0 sys=0 pid=0
>>>>20225: fxstat(2, 10, 0x08043038) = 0
>>>>20225: d=0x00740480 i=1687531 m=0100660 l=1 u=104 g=104 sz=24404
>>>>20225: at = Dec 6 00:26:43 MET 2002 [ 1039130803 ]
>>>>20225: mt = Dec 5 11:41:46 MET 2002 [ 1039084906 ]
>>>>20225: ct = Dec 5 11:41:46 MET 2002 [ 1039084906 ]
>>>>20225: bsz=8192 blks=48 fs=ufs
>>>>20225: xstat(2, 0x08140A08, 0x08042FB0) = 0
>>>>20225: 0x08140A08: "/var/imap/mailboxes.db"
>>>>20225: d=0x00740480 i=1687531 m=0100660 l=1 u=104 g=104 sz=24404
>>>>20225: at = Dec 6 00:26:43 MET 2002 [ 1039130803 ]
>>>>20225: mt = Dec 5 11:41:46 MET 2002 [ 1039084906 ]
>>>>20225: ct = Dec 5 11:41:46 MET 2002 [ 1039084906 ]
>>>>20225: bsz=8192 blks=48 fs=ufs
>>>>20225: fcntl(10, 7, 0x0804309C) = 0
>>>>20225: typ=F_UNLCK whence=SEEK_SET start=0 len=0 sys=0 pid=-1
>>>>
>>>>
>>>>
>>>>
>>>>>>>I think here is the error!!!:20225: open(0x08043280, 01402, 0666) Err#13 EACCES
>>>>>>>No access to this filename here:20225: 0x08043280: "20225-1039130904"
>>>>>>>And here also!!!:20225: mkdir(0x08043680, 0755) Err#2 ENOENT
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>20225: 0x08043680: ""
>>>>20225: fxstat(2, 5, 0x08043024) = 0
>>>>20225: d=0x00740480 i=194451 m=0020666 l=1 u=0 g=3 rdev=0x00540000
>>>>20225: at = Jun 6 20:22:13 MEST 2002 [ 1023387733 ]
>>>>20225: mt = Jan 9 00:24:27 MET 2002 [ 1010532267 ]
>>>>20225: ct = Jun 6 20:22:13 MEST 2002 [ 1023387733 ]
>>>>20225: bsz=8192 blks=0 fs=ufs
>>>>20225: time() = 1039130904
>>>>20225: getpid() = 20225 [27804]
>>>>20225: putmsg(5, 0x080426DC, 0x080426D0, 0) = 0
>>>>20225: ctl: maxlen=24 len=24 buf=0x0804300C: "\0\0\0\0\0\010\0"..
>>>>20225: \0\0\0\0\0\010\0\0\0\0\0\0\0\0\0\0\0\0\0B3\0\0\0
>>>>20225: dat: maxlen=1280 len=129 buf=0x08042B0C: " D e c 6 0"..
>>>>20225: D e c 6 0 0 : 2 8 : 2 4 l m t p u n i x [ 2 0 2 2 5 ] :
>>>>20225: [ I D 1 5 2 5 8 5 F A C I L I T Y _ A N D _ P R I O R I T
>>>>20225: Y ] c o u l d n ' t c r e a t e s t a g e d i r e c t o
>>>>20225: r y : : N o s u c h f i l e o r d i r e c t o r y\n
>>>>20225: \0
>>>>20225: open(0xDF800030, 0) = 13
>>>>20225: 0xDF800030: "/var/run/syslog_door"
>>>>20225: door(13, 0x0804266C) = 0
>>>>20225: getpid() = 20225 [27804]
>>>>20225: door(13, 0x08042654) = 0
>>>>20225: close(13) = 0
>>>>20225: fxstat(2, 5, 0x08043024) = 0
>>>>20225: d=0x00740480 i=194451 m=0020666 l=1 u=0 g=3 rdev=0x00540000
>>>>20225: at = Jun 6 20:22:13 MEST 2002 [ 1023387733 ]
>>>>20225: mt = Jan 9 00:24:27 MET 2002 [ 1010532267 ]
>>>>20225: ct = Jun 6 20:22:13 MEST 2002 [ 1023387733 ]
>>>>20225: bsz=8192 blks=0 fs=ufs
>>>>20225: time() = 1039130904
>>>>20225: getpid() = 20225 [27804]
>>>>20225: putmsg(5, 0x080426DC, 0x080426D0, 0) = 0
>>>>20225: ctl: maxlen=24 len=24 buf=0x0804300C: "\0\0\0\0\0\010\0"..
>>>>20225: \0\0\0\0\0\010\0\0\0\0\0\0\0\0\0\0\0\0\0B3\0\0\0
>>>>20225: dat: maxlen=1280 len=143 buf=0x08042B0C: " D e c 6 0"..
>>>>20225: D e c 6 0 0 : 2 8 : 2 4 l m t p u n i x [ 2 0 2 2 5 ] :
>>>>20225: [ I D 5 1 9 0 3 6 F A C I L I T Y _ A N D _ P R I O R I T
>>>>20225: Y ] I O E R R O R : c r e a t i n g m e s s a g e f i l
>>>>20225: e 2 0 2 2 5 - 1 0 3 9 1 3 0 9 0 4 : N o s u c h f i l e
>>>>20225: o r d i r e c t o r y\n\0
>>>>20225: open(0xDF800030, 0) = 13
>>>>20225: 0xDF800030: "/var/run/syslog_door"
>>>>20225: door(13, 0x0804266C) = 0
>>>>20225: getpid() = 20225 [27804]
>>>>20225: door(13, 0x08042654) = 0
>>>>20225: close(13) = 0
>>>>20225: poll(0x08045A74, 1, 0) = 0
>>>>20225: fd=0 ev=POLLRDNORM rev=0
>>>>20225: write(1, 0x0814CB20, 81) = 81
>>>>20225: 2 5 0 2 . 1 . 5 o k\r\n 4 5 1 4 . 3 . 2 c a n n o t c
>>>>20225: r e a t e t e m p o r a r y f i l e : N o s u c h f i
>>>>20225: l e o r d i r e c t o r y\r\n
>>>>20225: time() = 1039130904
>>>>20225: poll(0x08045A74, 1, 360000) = 1
>>>>20225: fd=0 ev=POLLRDNORM rev=POLLRDNORM
>>>>20225: time() = 1039130904
>>>>20225: read(0, 0x0814BB18, 4096) = 6
>>>>20225: 0x0814BB18: " Q U I T\r\n"
>>>>20225: write(1, 0x0814CB20, 15) = 15
>>>>20225: 2 2 1 2 . 0 . 0 b y e\r\n
>>>>20225: close(0) = 0
>>>>20225: close(1) = 0
>>>>20225: close(2) = 0
>>>>20225: write(3, 0x080475F0, 4) = 4
>>>>20225: 0x080475F0: "01\0\0\0"
>>>>20225: sigaction(0x0000000E, 0x08047554, 0x00000000) = 0
>>>>20225: new: hand = 0xDF7AA3A4 mask = 0 0 0 0 flags = 0x0002
>>>>20225: alarm(60) = 0
>>>>20225: fcntl(12, 7, 0x0804758C) = 0
>>>>20225: typ=F_WRLCK whence=SEEK_SET start=0 len=0 sys=60 pid=134510128
>>>>20225: accept(4, 0x00000000, 0x00000000, 1) (sleeping...)
>>>>
>>>>
>>>>
>>>>
>>>Its kind of hard to diagnose this without seeing the actual
>>>mailbox/domain info. If you don't want the list to see it (I don't know
>>>why you would care), then send it to me directly.
>>>
>>>Have you tried any other shared folder? Have you tried deleting this
>>>folder and then recreating it?
>>>
>>>What other options are you using in imapd.conf? altnamespace,
>>>unixhiersep?
>>>
>>>
>>>
>>>
>>>
>>I actually had a look at the code and found out the following:
>>
>>Dec 6 23:15:00 mail lmtpunix[3329]: [ID 152585 local6.error] couldn't
>>create stage directory: : No such file or directory
>>Dec 6 23:15:00 mail lmtpunix[3329]: [ID 519036 local6.error] IOERROR:
>>creating message file 3329-1039212900: No such file or directory
>>
>>I think these logentries get logged in the append_newstage function
>>defined in imap/append.c
>>The code which does that seems to be:
>>
>>/* xxx check errors */
>> mboxlist_findstage(mailboxname, stagedir);
>> strcpy(stagefile, stagedir);
>> strcat(stagefile, stage->fname);
>>
>> /* create this file and put it into stage->parts[0] */
>> f = fopen(stagefile, "w+");
>> if (!f) {
>> if (mkdir(stagedir, 0755) != 0) {
>> syslog(LOG_ERR, "couldn't create stage directory: %s: %m",
>> stagedir);
>> } else {
>> syslog(LOG_NOTICE, "created stage directory %s",
>> stagedir);
>> f = fopen(stagefile, "w+");
>> }
>> }
>> if (!f) {
>> syslog(LOG_ERR, "IOERROR: creating message file %s: %m",
>> stagefile);
>> *stagep = NULL;
>> return NULL;
>> }
>>
>>So:
>>
>>syslog(LOG_ERR, "couldn't create stage directory: %s: %m",
>> stagedir);
>>
>>with stagedir containing no data! Else its' value would have been
>>printed in the syslog:
>>
>>syslog(LOG_ERR, "IOERROR: creating message file %s: %m",
>> stagefile);
>>
>>the value of stagefile is 3329-1039212900 and trying to create a file
>>like that cyrus would create it in its' actual working directory, right
>>? But shouldnt there be something like /var/spool/imap/stage. or so in
>>front of the actual filename ?
>>
>>The communication between sendmail and lmtpd is exactly as it should be
>>but produces these errors. The shared folder exists, I can subscribe to
>>it and drag messages into it. Only delivery fails...
>>
>>My imapd.conf file looks like:
>>
>>configdirectory: /var/imap
>>partition-default: /var/spool/imap
>>admins: schulte
>>defaultdomain: epag.net
>>sasl_pwcheck_method: auxprop
>>sasl_auxprop_plugin: mysql
>>sasl_allowanonymouslogin: no
>>sasl_allowplaintext: yes
>>sasl_mech_list: PLAIN LOGIN
>>sasl_mysql_user: sasl
>>sasl_mysql_passwd: ********
>>sasl_mysql_hostnames: localhost
>>sasl_mysql_database: admin
>>sasl_mysql_statement: select password from SASLUser where login='%u' and
>>domain='%r' and IMAP='YES'
>>tls_cert_file: /usr/local/var/imap/server.pem
>>tls_key_file: /usr/local/var/imap/server.pem
>>tls_ca_file: /usr/local/var/imap/CAcert.pem
>>idlesocket: /var/imap/socket/idle
>>unixhierarchysep: yes
>>
>>
>
>^^^^^^^^^^^^^^^^^^^^^^^
>
>You've finally given me enough info to go on! Apply this patch or
>update from CVS:
>
>http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imap/lmtpd.c.diff?r1=1.99.2.17&r2=1.99.2.18&f=u
>
>
>
Thanks a lot! After cvs update delivery now works! Great....
If I only would know how to use the gdb to step through sourcecode I
could have provided you with more detailed information or even a patch
but I am totally not used in using this thing...
--Christian--
More information about the Info-cyrus
mailing list