You can guess this by sending an EHLO
message and seeing if the server is responding with SIZE
:
$ nc -v aspmx.l.google.com. 25 Connection to aspmx.l.google.com. 25 port [tcp/smtp] succeeded! 220 mx.google.com ESMTP gv4si23346623qab.115 EHLO somehost 250-mx.google.com at your service, [YOUR_IP] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250 ENHANCEDSTATUSCODES
In this case, the server reported a limit of 35 MB.
http://cr.yp.to/smtp/size.html
source share