Shared folders and virtual domains ?
Jonathan Marsden
jonathan at bach.xc.org
Mon Dec 2 20:55:48 EST 2002
On 3 Dec 2002, Christian Schulte writes:
> 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
> 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 ?
"No such file or directory" is a standard Unix error text for a single
error code, ENOENT, defined in /usr/include/asm/errno.h on my Linux
boxes. Don't read too much into the "or directory" part if the code
concerned is not trying to work with a directory :-)
I think this issue may be a version of something I tried to report
some weeks back, which someone (Ken? I forget) thought might be
hardware related, and then found a workaround for that was 'good
enough' for me for the moment.
The issue for me was that (based on my experiments) the default domain
should not be passed to LMTP, only the other non-default ones. Any
other approach generated the error message you are reporting. I
suspect that had your RCPT TO: line read
> 20776 >>> RCPT To:<+sharedfolder>
it would have been accepted just fine! I do not know why that is -- I
suspect some form of attempted backward compatibility?
What I did to "fix" this here was a small, quick and slightly ugly
patch to the sendmail sendmail-cf/m4/proto.m4 file, causing it to send
the @domain part of the recipient address on to LMTP for all domains
*except* the default one. I had every intention of going back and
really figuring out what is going on well enough to report it in a
clear way that makes more sense to the developers at some stage... but
so far I have not found (or made?) time to do so.
In case it helps, here is my patch. It helped for my situation.
Jonathan
------------------------------------------------------------------------
--- /usr/share/sendmail-cf/m4.orig/proto.m4 Thu Jun 13 11:53:24 2002
+++ /usr/share/sendmail-cf/m4/proto.m4 Thu Oct 3 15:11:10 2002
@@ -1092,8 +1092,10 @@
dnl $H empty (but @$=w.)
R< > $+ + $* < $+ > $#_LOCAL_ $: $1 + $2 plussed name?
R< > $+ < $+ > $#_LOCAL_ $: @ $1 nope, local address',
-`R$=L < @ $=w . > $#_LOCAL_ $: @ $1 special local names
-R$+ < @ $=w . > $#_LOCAL_ $: $1 regular local name')
+`R$+ < @ $m . > $#_LOCAL_ $: $1 regular local name default domain')
+R$+ < @ $j . > $#_LOCAL_ $: $1 regular local name default host')
+R$=L < @ $=w . > $#_LOCAL_ $: @ $1`@'$2 special local names
+R$+ < @ $=w . > $#_LOCAL_ $: $1`@'$2 regular local name')
ifdef(`_MAILER_TABLE_', `dnl
# not local -- try mailer table lookup
------------------------------------------------------------------------
--
Jonathan Marsden | Internet: jonathan at xc.org | Making electronic
1252 Judson Street | Phone: +1 (909) 795-3877 | communications work
Redlands, CA 92374 | Fax: +1 (909) 795-0327 | reliably for Christian
USA | http://www.xc.org/jonathan | missions worldwide
More information about the Info-cyrus
mailing list