[prev in list] [next in list] [prev in thread] [next in thread]
List: james-user
Subject: RE: Issue with long domain names
From: "Conrad T. Pino" <Conrad () Pino ! com>
Date: 2015-06-22 16:20:45
Message-ID: 44A641DF062F4340A6E648F3537AE5FC () skyline ! pino ! net
[Download RAW message or body]
By default Windows API has MAX_PATH (260) length limit but the
API has a documented internal work around. Prefix with "\\?\"
for a maximum path length of 32,767 characters (approximate).
See:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).a
spx#maxpath
The above applies to Windows NT descendants (2000, XP, 2003,
Vista, 2008, 7, 2012, 8, 10) somewhere in the chain and may
not apply to Windows 9x, Me series.
> -----Original Message-----
> From: Matt Pryor [mailto:pryor@international-presence.com]
> Sent: Monday, June 22, 2015 04:46
> To: James Users List
> Subject: Re: Issue with long domain names
>
> Hi Ozgur,
>
> Yes you're right, I had already guessed that we were hitting
> a limit to the filename size.
>
> But the problem is that we cannot change the operating
> system. So I was wondering why James decides to use such a
> very long filename, and whether this can be changed.
>
> Thanks
> Matt
>
>
>
> On 16 June 2015 at 09:47, Özgür EROGLU <oeroglu.code@gmail.com> wrote:
>
> > Hi Matt,
> >
> > As far as I see you are using James on Windows. I don't
> know which Win
> > you are using but some of them have file path length
> limits. So your
> > problem may not be directly related to James. Please check
> your OS for
> > that limit; for example try to create a file manually which
> have 255 chars in its path.
> >
> > Ozgur Eroglu
> >
> >
> >
> >
> >
> > On 06/11/2015 05:47 PM, Matt Pryor wrote:
> >
> >> Hi all,
> >>
> >> We're running Apache James 2.3.2.
> >>
> >> Came across a quirk today whereby if an email is submitted to SMTP
> >> with a particularly long domain name, it fails somewhat
> miserably to
> >> create the file in outgoing:
> >>
> >> 11/06/15 13:49:43 WARN mailstore: Exception caught while
> storing a
> >> stream
> >> java.io.FileNotFoundException:
> >>
> >>
> D:\james-2.3.2\apps\james\var\mail\outgoing\4D61696C31343334303236393
> >>
> 5383231342D333437352D746F2D656832387664346D616674356C6265736366623779
> >>
> 6676386673396A756B796265723665707938346C31683669617877342E632D3375736
> >>
> 3686561752E637331342E636173652E73616E64626F782E73616C6573666F7263652E
> >> 636F6D.Repository.FileStreamStore (The filename, directory
> name, or
> >> volume label syntax is incorrect) at
> >> java.io.FileOutputStream.open(Native Method) at
> >> java.io.FileOutputStream.<init>(Unknown Source) at
> >> java.io.FileOutputStream.<init>(Unknown Source) at
> >>
> >>
> org.apache.james.mailrepository.filepair.AbstractFileRepository.getOu
> >> tputStream(AbstractFileRepository.java:268)
> >> at
> >>
> >>
> org.apache.james.mailrepository.filepair.File_Persistent_Stream_Repos
> >> itory.put(File_Persistent_Stream_Repository.java:68)
> >> at
> >>
> >>
> org.apache.james.mailrepository.AvalonMailRepository.store(AvalonMail
> >> Repository.java:301)
> >> at
> >>
> >>
> org.apache.james.transport.mailets.RemoteDelivery.service(RemoteDeliv
> >> ery.java:1025)
> >> at
> >>
> >>
> org.apache.james.transport.LinearProcessor.service(LinearProcessor.ja
> >> va:424)
> >> at
> >>
> >>
> org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManage
> >> r.java:405)
> >> at
> >>
> >>
> org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.ja
> >> va:309) at java.lang.Thread.run(Unknown Source)
> >>
> >>
> >> The address that we were attempting to deliver to was:
> >>
> >> *
> >>
> commsfail@eh28vd4maft5lbescfb7yfv8fs9jukyber6epy84l1h6iaxw4.c3uscheau
> >> .cs14.case.sandbox.salesforce.com
> >> <
> >>
> commsfail@eh28vd4maft5lbescfb7yfv8fs9jukyber6epy84l1h6iaxw4.c3uscheau
> >> .cs14.case.sandbox.salesforce.com
> >> >*
> >>
> >> I've tried sending to a very long user with a shorter
> domain and that
> >> causes no problems. So I'm guessing that the filename it
> generates is
> >> based on an encrypted / hashed version of the domain name, is that
> >> correct?
> >>
> >> Is there a fix available for this?
> >>
> >> Many thanks
> >>
> >> Matt Pryor
> >>
> >>
> >>
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> > For additional commands, e-mail: server-user-help@james.apache.org
> >
> >
>
>
> --
> --
> Matt Pryor
>
> The International Presence Group of Companies Registered
> Office:10 Coppergate Mews, 109 - 111 Brighton Road, Surbiton,
> Surrey KT6 5NE
>
> TEL UK: +44 (0)845 130 6458, FAX: +44 (0)845 130 6459 TEL
> US: +1 321 726 9941, FAX +1 321 726 6210
> EMAIL: pryor@presencebpm.com
>
> URL: www.International-presence.com
>
> International Presence Limited: Registered in England and
> Wales No.3709669
>
> This E-mail and any attachments transmitted with it are
> confidential and intended solely for the use of the
> individual or entity to whom they are addressed. If you are
> not the intended recipient please destroy this message and
> kindly notify the sender by reply E-Mail. Opinions,
> conclusions and other information in this message that do not
> relate to the official business of International Presence
> Limited do not necessarily reflect the views of the company.
>
> International Presence Ltd
> Unit 10, Coppergate Mews
> Surbiton
> Surrey KT6 5NE
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic