Re: Apache James Limits Message
Quan tran hong <[email protected]> Mon, 28 Apr 2025 17:23:31 +0700
| Newsgroups | gmane.comp.jakarta.james.user |
|---|---|
| Message-ID | <CAFG0j1DWnE3pmwsD6+bVsco7z1iuvEc6xPSWrA1f+-EafUEQwA@mail.gmail.com> |
--00000000000014c0630633d41433 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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/smtp.= 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/match= ers.html#_sizegreaterthan Regards, Quan On Mon, Apr 28, 2025 at 12:04=E2=80=AFPM Ilya Terskov <[email protected]= > 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? > --00000000000014c0630633d41433--