I need to ask a fiscal document through sending an e‑mail to
In order to get it received, I need to attach a lot of documents. So when I sent the e‑mail from Gmail, I got an error from
dgfip.finances.gouv.fr stating attachment size of my message is too large.
This means the attachment size limit of
dgfip.finances.gouv.fr is lower than on Gmail.
So how much do I need to shrink my message size? Normally, one would do something like this (which by the way works for this server):
telnet 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 bytes
However, it seems in my case
mail.dgfip.finances.gouv.fr only allows connection from a safe list of smtp servers in order to filter spam :
telnet mail.dgfip.finances.gouv.fr 25 Trying 188.8.131.52... telnet: Unable to connect to remote host: Connection timed out
So how I can know for example if the maximum message size is 200Kb or or 10Mb without taking the risk of sending successfully a message where documents quality would be too low whereas I could send a larger e-mail?