Re: Apache James Limits Message

Ilya Terskov <[email protected]> Mon, 28 Apr 2025 18:19:41 +0700
Newsgroups gmane.comp.jakarta.james.user
Message-ID <CANUmiSiUCnnfD=WNB8cuDHpQMhttomwPUpOjcTA6XmpDAQfnMQ@mail.gmail.com>
--000000000000fbfb3f0633d4dc04
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thanks alot, very users.

=D0=BF=D0=BD, 28 =D0=B0=D0=BF=D1=80. 2025 =D0=B3., 17:24 Quan tran hong <qu=
[email protected]>:

> Hi,
>
> > yeah i get it thats <maxmessagesize>52428800</maxmessagesize> but dont
> get its KB or just Bytes?
>
> The default unit is kbytes cf
>
> https://james.staged.apache.org/james-distributed-app/3.8.0/configure/smt=
p.html
> .
> "It specifies the maximum size, in kbytes, of any message that will be
> transmitted by this SMTP server." - following the docs.
>
> > and its right place
> for edit? also is here i set SMTP on 25 port 50 MB for outside mail
> delivery and for others 465 and 587 for examle 150 MB for local network
> will it work?
>
> It should work IMO.
>
> You can also configure the `SizeGreaterThan` matcher in
> `mailetcontainer.xml` cf
>
> https://james.staged.apache.org/james-distributed-app/3.8.0/configure/mat=
chers.html#_sizegreaterthan
>
> Regards,
>
> Quan
>
>
>
> On Mon, Apr 28, 2025 at 12:04=E2=80=AFPM Ilya Terskov <[email protected]=
om>
> wrote:
>
> > Hi one more time.
> >
> > I am also have question about mail limits.
> >
> > i have now in smtpserver.xml
> >
> > <smtpservers>
> >      <smtpserver enabled=3D"true">
> >          <jmxName>smtpserver-global</jmxName>
> >          <bind>0.0.0.0:25</bind>
> >          <helloName autodetect=3D"false">mail.kps-t.ru</helloName>
> >          <heloEnforcement>true</heloEnforcement>
> >          <connectionBacklog>200</connectionBacklog>
> >          <tls socketTLS=3D"false" startTLS=3D"true">
> > <privateKey>file://../cert/mail.kps-t.ru-key.pem</privateKey>
> > <certificates>file://../cert/mail.kps-t.ru-chain.pem</certificates>
> >          </tls>
> >          <connectiontimeout>360</connectiontimeout>
> >          <connectionLimit>0</connectionLimit>
> >          <connectionLimitPerIP>0</connectionLimitPerIP>
> >          <auth>
> >              <announce>never</announce>
> >              <requireSSL>false</requireSSL>
> >              <plainAuthEnabled>false</plainAuthEnabled>
> >          </auth>
> > <authorizedAddresses>127.0.0.0/8</authorizedAddresses>
> >          <verifyIdentity>false</verifyIdentity>
> >          <maxmessagesize>52428800</maxmessagesize>
> > <addressBracketsEnforcement>true</addressBracketsEnforcement>
> >          <smtpGreeting>mail.kps-t.ru</smtpGreeting>
> >          <handlerchain>
> >              <handler
> > class=3D"org.apache.james.smtpserver.fastfail.ValidRcptHandler"/>
> >              <handler
> > class=3D"org.apache.james.smtpserver.CoreCmdHandlerLoader"/>
> >          </handlerchain>
> >      </smtpserver>
> >      <smtpserver enabled=3D"true">
> >          <jmxName>smtpserver-TLS</jmxName>
> >          <bind>0.0.0.0:465</bind>
> >          <helloName autodetect=3D"false">mail.kps-t.ru</helloName>
> >          <connectionBacklog>200</connectionBacklog>
> >          <tls socketTLS=3D"true" startTLS=3D"false">
> > <privateKey>file://../cert/mail.kps-t.ru-key.pem</privateKey>
> > <certificates>file://../cert/mail.kps-t.ru-chain.pem</certificates>
> >          </tls>
> >          <connectiontimeout>360</connectiontimeout>
> >          <connectionLimit>0</connectionLimit>
> >          <connectionLimitPerIP>0</connectionLimitPerIP>
> >          <auth>
> >              <announce>always</announce>
> >              <requireSSL>true</requireSSL>
> >              <plainAuthEnabled>true</plainAuthEnabled>
> >          </auth>
> > <authorizedAddresses>127.0.0.0/8</authorizedAddresses>
> >          <verifyIdentity>true</verifyIdentity>
> >          <maxmessagesize>52428800</maxmessagesize>
> > <addressBracketsEnforcement>true</addressBracketsEnforcement>
> >          <smtpGreeting>mail.kps-t.ru</smtpGreeting>
> >          <handlerchain>
> >              <handler
> > class=3D"org.apache.james.smtpserver.fastfail.ValidRcptHandler"/>
> >              <handler
> > class=3D"org.apache.james.smtpserver.CoreCmdHandlerLoader"/>
> >          </handlerchain>
> >      </smtpserver>
> >      <smtpserver enabled=3D"true">
> >          <jmxName>smtpserver-authenticated</jmxName>
> >          <bind>0.0.0.0:587</bind>
> >          <helloName autodetect=3D"false">mail.kps-t.ru</helloName>
> >          <connectionBacklog>200</connectionBacklog>
> >          <tls socketTLS=3D"false" startTLS=3D"true">
> > <privateKey>file://../cert/mail.kps-t.ru-key.pem</privateKey>
> > <certificates>file://../cert/mail.kps-t.ru-chain.pem</certificates>
> >          </tls>
> >          <connectiontimeout>360</connectiontimeout>
> >          <connectionLimit>0</connectionLimit>
> >          <connectionLimitPerIP>0</connectionLimitPerIP>
> >          <auth>
> >              <announce>always</announce>
> >              <requireSSL>true</requireSSL>
> >              <plainAuthEnabled>true</plainAuthEnabled>
> >          </auth>
> > <authorizedAddresses>127.0.0.0/8</authorizedAddresses>
> >          <verifyIdentity>true</verifyIdentity>
> >          <maxmessagesize>52428800</maxmessagesize>
> > <addressBracketsEnforcement>true</addressBracketsEnforcement>
> >          <smtpGreeting>mail.kps-t.ru</smtpGreeting>
> >          <handlerchain>
> >              <handler
> > class=3D"org.apache.james.smtpserver.fastfail.ValidRcptHandler"/>
> >              <handler
> > class=3D"org.apache.james.smtpserver.CoreCmdHandlerLoader"/>
> >          </handlerchain>
> >      </smtpserver>
> > </smtpservers>
> >
> > yeah i get it thats <maxmessagesize>52428800</maxmessagesize> but dont
> > get its KB or just Bytes? so its 50MB or 50 GB? :) and its right place
> > for edit? also is here i set SMTP on 25 port 50 MB for outside mail
> > delivery and for others 465 and 587 for examle 150 MB for local network
> > will it work?
> >
>

--000000000000fbfb3f0633d4dc04--