Shared folders and virtual domains ?

Ken Murchison ken at oceana.com
Tue Dec 3 10:20:59 EST 2002



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


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




More information about the Info-cyrus mailing list