Thanks alot, very users. пн, 28 апр. 2025 г., 17:24 Quan tran hong <quan.tranhong1...@gmail.com>:
> 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/matchers.html#_sizegreaterthan > > Regards, > > Quan > > > > On Mon, Apr 28, 2025 at 12:04 PM Ilya Terskov <prosgar...@gmail.com> > wrote: > > > Hi one more time. > > > > I am also have question about mail limits. > > > > i have now in smtpserver.xml > > > > <smtpservers> > > <smtpserver enabled="true"> > > <jmxName>smtpserver-global</jmxName> > > <bind>0.0.0.0:25</bind> > > <helloName autodetect="false">mail.kps-t.ru</helloName> > > <heloEnforcement>true</heloEnforcement> > > <connectionBacklog>200</connectionBacklog> > > <tls socketTLS="false" startTLS="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="org.apache.james.smtpserver.fastfail.ValidRcptHandler"/> > > <handler > > class="org.apache.james.smtpserver.CoreCmdHandlerLoader"/> > > </handlerchain> > > </smtpserver> > > <smtpserver enabled="true"> > > <jmxName>smtpserver-TLS</jmxName> > > <bind>0.0.0.0:465</bind> > > <helloName autodetect="false">mail.kps-t.ru</helloName> > > <connectionBacklog>200</connectionBacklog> > > <tls socketTLS="true" startTLS="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="org.apache.james.smtpserver.fastfail.ValidRcptHandler"/> > > <handler > > class="org.apache.james.smtpserver.CoreCmdHandlerLoader"/> > > </handlerchain> > > </smtpserver> > > <smtpserver enabled="true"> > > <jmxName>smtpserver-authenticated</jmxName> > > <bind>0.0.0.0:587</bind> > > <helloName autodetect="false">mail.kps-t.ru</helloName> > > <connectionBacklog>200</connectionBacklog> > > <tls socketTLS="false" startTLS="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="org.apache.james.smtpserver.fastfail.ValidRcptHandler"/> > > <handler > > class="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? > > >